From: Lars Ingebrigtsen <larsi@gnus.org>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 40975@debbugs.gnu.org
Subject: bug#40975: 28.0.50; Variable gets buffer-local unexpectedly
Date: Thu, 22 Oct 2020 16:27:42 +0200 [thread overview]
Message-ID: <87zh4ejpy9.fsf@gnus.org> (raw)
In-Reply-To: <87368lso8n.fsf@web.de> (Michael Heerdegen's message of "Thu, 30 Apr 2020 04:26:16 +0200")
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Hello,
>
> here is a reproducer:
>
> #+begin_src emacs-lisp
> (defun test ()
> (make-local-variable 'my-test-var)
> (with-current-buffer (get-buffer-create "Testbuffer")
> (setq my-test-var 27)))
> #+end_src
>
> If you eval M-: (test) e.g. in emacs -Q and inspect the binding of
> `my-test-var' in "Testbuffer" and the other buffers, you'll see that the
> variable has become buffer local in "Testbuffer" though it has never
> been made local there. This is the bug.
I'm seeing the opposite -- my-test-var is local to whatever buffer I
said M-: (test) in (but is unbound there), and is bound and has the
value 27 in all other buffers.
Which is what I'd expect?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-10-22 14:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-30 2:26 bug#40975: 28.0.50; Variable gets buffer-local unexpectedly Michael Heerdegen
2020-10-22 14:27 ` Lars Ingebrigtsen [this message]
2020-10-23 18:07 ` Michael Heerdegen
2020-10-24 19:53 ` 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=87zh4ejpy9.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=40975@debbugs.gnu.org \
--cc=michael_heerdegen@web.de \
/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).