From: Richard M. Stallman Date: Fri, 27 Jan 1995 23:10:42 +0000 (+0000) Subject: (describe-variable): Use local-variable-p. X-Git-Tag: emacs-19.34~5285 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/b872e1da177ed719ce020a4997bc53a4624f51df (describe-variable): Use local-variable-p. --- diff --git a/lisp/help.el b/lisp/help.el index b55edc5e13..2ad9158413 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -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)