changeset 10573:ab52927eddad

(describe-variable): Use local-variable-p.
author Richard M. Stallman <rms@gnu.org>
date Fri, 27 Jan 1995 23:10:42 +0000
parents c8717227f621
children 132a846eba8e
files lisp/help.el
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help.el	Fri Jan 27 23:08:49 1995 +0000
+++ b/lisp/help.el	Fri Jan 27 23:10:42 1995 +0000
@@ -504,15 +504,8 @@
         (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)