From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: 16792@debbugs.gnu.org
Subject: bug#16792: 24.3.50; wish: following a variable name should show the value from initial buffer
Date: Tue, 18 Feb 2014 16:03:04 +0100 [thread overview]
Message-ID: <8761ocbwxj.fsf@yahoo.fr> (raw)
Hello,
Consider the following~:
(with-current-buffer (get-buffer-create "foo")
;; change a variable locally
(setq-local beginning-of-defun-function #'beginning-of-line)
;; describe a function that references the above variable
(describe-function 'beginning-of-defun)
(switch-to-buffer "*Help*")
;; go to the reference and follow it
(search-forward "beginning-of-defun-functio")
(execute-kbd-macro (kbd "RET")))
The second line is:
: Its value is nil
I somewhat expected to see:
: Its value is beginning-of-line
: Local in buffer foo; global value is nil
If the old buffer is killed before following the reference, I guess I'd
like to be warned about it and see the global value instead.
What do you think ?
--
Nico.
next reply other threads:[~2014-02-18 15:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-18 15:03 Nicolas Richard [this message]
2014-02-18 16:45 ` bug#16792: 24.3.50; wish: following a variable name should show the value from initial buffer Stefan Monnier
2021-05-30 4:48 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8761ocbwxj.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=16792@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).