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
7e76ae23
Commit
7e76ae23
authored
Sep 17, 1994
by
Richard M. Stallman
Browse files
(describe-variable): Report whether var is local in this buf.
parent
5afc7fb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
lisp/help.el
lisp/help.el
+11
-1
No files found.
lisp/help.el
View file @
7e76ae23
...
...
@@ -456,7 +456,17 @@ Returns the documentation as a string, also."
(
if
(
not
(
boundp
variable
))
(
princ
"void."
)
(
prin1
(
symbol-value
variable
)))
(
terpri
)
(
terpri
)
(
terpri
)
(
let
((
locals
(
buffer-local-variables
))
is-local
)
(
while
locals
(
if
(
or
(
eq
variable
(
car
locals
))
(
eq
variable
(
car-safe
(
car
locals
))))
(
setq
is-local
t
locals
nil
))
(
setq
locals
(
cdr
locals
)))
(
if
is-local
(
princ
(
format
"Local in buffer %s\n"
(
buffer-name
)))))
(
terpri
)
(
princ
"Documentation:"
)
(
terpri
)
(
let
((
doc
(
documentation-property
variable
'variable-documentation
)))
...
...
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