mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-01 20:06:00 +00:00
(describe-mode): Include minor modes that aren't buffer local.
This commit is contained in:
parent
99d15a7a70
commit
ddbe99e039
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user