From: Luc Teirlinck <teirllm@dms.auburn.edu>
Subject: Bug in buffer-local-value
Date: Thu, 26 May 2005 22:13:18 -0500 (CDT) [thread overview]
Message-ID: <200505270313.j4R3DIQ05157@raven.dms.auburn.edu> (raw)
There is a bug in buffer-local-value, when used in connection with
defvaralias. I believe that the ielm run below is self-explanatory.
The bug affects `C-h v" in a very confusing way. I am insufficiently
familiar with the involved C code to fix this myself.
*** Welcome to IELM *** Type (describe-mode) for help.
ELISP> (defvar aa 1)
aa
ELISP> (make-variable-buffer-local 'aa)
aa
ELISP> (defvaralias 'bb 'aa)
aa
ELISP> (setq bb 2)
2
ELISP> bb
2
ELISP> aa
2
ELISP> (buffer-local-value 'bb (current-buffer))
1 ;; Bug: should be 2
ELISP> (buffer-local-value 'aa (current-buffer))
2
ELISP> (local-variable-p 'bb)
t
next reply other threads:[~2005-05-27 3:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-27 3:13 Luc Teirlinck [this message]
2005-05-28 11:53 ` Bug in buffer-local-value Richard Stallman
2005-05-28 18:18 ` Luc Teirlinck
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=200505270313.j4R3DIQ05157@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
/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).