GNU bug report logs -
#40975
28.0.50; Variable gets buffer-local unexpectedly
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40975 in the body.
You can then email your comments to 40975 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40975
; Package
emacs
.
(Thu, 30 Apr 2020 02:27:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Michael Heerdegen <michael_heerdegen <at> web.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 30 Apr 2020 02:27:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Maybe there is a problem in this case because the `setq' setting is in
the same lexical scope as the `make-local-variable' call?
TIA,
Michael.
In GNU Emacs 28.0.50 (build 57, x86_64-pc-linux-gnu, GTK+ Version 3.24.18, cairo version 1.16.0)
of 2020-04-29 built on drachen
Repository revision: fe9be663833db1bf99f38c981378255f88ff5d06
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Debian GNU/Linux bullseye/sid
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40975
; Package
emacs
.
(Thu, 22 Oct 2020 14:28:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 40975 <at> debbugs.gnu.org (full text, mbox):
Michael Heerdegen <michael_heerdegen <at> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40975
; Package
emacs
.
(Fri, 23 Oct 2020 18:08:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 40975 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Which is what I'd expect?
Hmm - indeed, I see the same as you.
I have no explanation. Maybe I was just wrong, or it had been an
intermediate issue, or a dynamical vs. lexical binding mode thing. I
guess you can just close.
Thanks,
Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#40975
; Package
emacs
.
(Sat, 24 Oct 2020 19:54:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 40975 <at> debbugs.gnu.org (full text, mbox):
Michael Heerdegen <michael_heerdegen <at> web.de> writes:
> I have no explanation. Maybe I was just wrong, or it had been an
> intermediate issue, or a dynamical vs. lexical binding mode thing. I
> guess you can just close.
Perhaps you just checked in the test buffer and the original buffer and
saw that they were different, and then assumed that was because it was
local to the opposite buffer? Or something?
Anyway, closing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
40975 <at> debbugs.gnu.org and Michael Heerdegen <michael_heerdegen <at> web.de>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 24 Oct 2020 19:54:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 22 Nov 2020 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 127 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.