Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ddbe99e0
Commit
ddbe99e0
authored
Dec 16, 1996
by
Richard M. Stallman
Browse files
(describe-mode): Include minor modes that aren't buffer local.
parent
99d15a7a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
lisp/help.el
lisp/help.el
+3
-6
No files found.
lisp/help.el
View file @
ddbe99e0
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment