From f5733f8759da4d44d72eda19afc36860f32d1217 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Fri, 21 Dec 2012 11:37:02 +0800 Subject: [PATCH] * help-fns.el (describe-variable): Make sure we get the right buffer name. Suggested by Kelly Dean. Fixes: debbugs:13105 --- lisp/ChangeLog | 5 +++++ lisp/help-fns.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9a49ecc49c5..90086b27a5e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-12-21 Chong Yidong + + * help-fns.el (describe-variable): Make sure we get the right + buffer name (Bug#13105). Suggested by Kelly Dean. + 2012-12-20 Michael R. Mauger * comint.el (comint-redirect-previous-input-string): New variable. 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) -- 2.39.5