# HG changeset patch # User Richard M. Stallman # Date 779787042 0 # Node ID dff46e860b511dfaf6c42d2ac093454c6ce161e3 # Parent 76dea5c397767128484658b2b208375c8be4f7e9 (describe-variable): Report whether var is local in this buf. diff -r 76dea5c39776 -r dff46e860b51 lisp/help.el --- 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)))