]> code.delx.au - gnu-emacs/commitdiff
(describe-variable): Use local-variable-p.
authorRichard M. Stallman <rms@gnu.org>
Fri, 27 Jan 1995 23:10:42 +0000 (23:10 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 27 Jan 1995 23:10:42 +0000 (23:10 +0000)
lisp/help.el

index b55edc5e1337751fdcc270388202d563934525b9..2ad915841328502c768c57a84ba2510b9f6e55f7 100644 (file)
@@ -504,15 +504,8 @@ Returns the documentation as a string, also."
         (princ "void.")
       (prin1 (symbol-value variable)))
     (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)))))
+    (if (local-variable-p variable)
+       (princ (format "Local in buffer %s\n" (buffer-name))))
     (terpri)
     (princ "Documentation:")
     (terpri)