]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-variable): Report whether var is local in this buf.
authorRichard M. Stallman <rms@gnu.org>
Sat, 17 Sep 1994 07:30:42 +0000 (07:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 17 Sep 1994 07:30:42 +0000 (07:30 +0000)
lisp/help.el

index 308574cca5cd43bec0170a5d737f09e81dd4e834..80cbdcea6f665ef0044a0dcb32b664cb15cb6188 100644 (file)
@@ -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)))