summaryrefslogtreecommitdiff
path: root/lisp/help.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-12-16 02:44:52 +0000
committerRichard M. Stallman <rms@gnu.org>1996-12-16 02:44:52 +0000
commit9b55d7eeac69425c2ddbb1a43a91d1c36060ce6a (patch)
treebdd6744167a61357275e99cd6fb79cf229ff7b8e /lisp/help.el
parent8e15e51de14204916aa7206b68783a8ece18688d (diff)
downloademacs-9b55d7eeac69425c2ddbb1a43a91d1c36060ce6a.tar.gz
(describe-mode): Include minor modes that aren't buffer local.
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el9
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/help.el b/lisp/help.el
index 46c0975dd99..3d44f6ea97a 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -283,17 +283,14 @@ describes the minor mode."
(interactive)
(with-output-to-temp-buffer "*Help*"
(let ((minor-modes minor-mode-alist)
- (first t)
- (locals (buffer-local-variables)))
+ (first t))
(while minor-modes
(let* ((minor-mode (car (car minor-modes)))
- (indicator (car (cdr (car minor-modes))))
- (local-binding (assq minor-mode locals)))
+ (indicator (car (cdr (car minor-modes)))))
;; Document a minor mode if it is listed in minor-mode-alist,
;; bound locally in this buffer, non-nil, and has a function
;; definition.
- (if (and local-binding
- (cdr local-binding)
+ (if (and (symbol-value minor-mode)
(fboundp minor-mode))
(let ((pretty-minor-mode minor-mode))
(if (string-match "-mode$" (symbol-name minor-mode))