summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2012-12-21 11:37:02 +0800
committerChong Yidong <cyd@gnu.org>2012-12-21 11:37:02 +0800
commitf5733f8759da4d44d72eda19afc36860f32d1217 (patch)
treea1fe791e6ef53760910f4ff91a310404b7e1cdc9 /lisp/help-fns.el
parentfab6916d0c0e5c0f8a942ed040fe7f5d0013b145 (diff)
downloademacs-f5733f8759da4d44d72eda19afc36860f32d1217.tar.gz
* help-fns.el (describe-variable): Make sure we get the right buffer name.
Suggested by Kelly Dean. Fixes: debbugs:13105
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index b552d8c1357..bb3695abcc2 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -789,7 +789,7 @@ it is displayed along with the global value."
(cond
((bufferp locus)
(princ (format "Local in buffer %s; "
- (buffer-name))))
+ (buffer-name buffer))))
((framep locus)
(princ (format "It is a frame-local variable; ")))
((terminal-live-p locus)