changeset 8858:dff46e860b51

(describe-variable): Report whether var is local in this buf.
author Richard M. Stallman <rms@gnu.org>
date Sat, 17 Sep 1994 07:30:42 +0000
parents 76dea5c39776
children 678a41575de0
files lisp/help.el
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help.el	Sat Sep 17 05:50:17 1994 +0000
+++ b/lisp/help.el	Sat Sep 17 07:30:42 1994 +0000
@@ -456,7 +456,17 @@
     (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)))