bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#65209: 30.0.50; Unexpected behaviour of setq-local


From: Gerd Möllmann
Subject: bug#65209: 30.0.50; Unexpected behaviour of setq-local
Date: Fri, 11 Aug 2023 10:17:15 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0

:close

On 11.08.23 07:53, Michael Heerdegen wrote:
I don't think this is what is happening.  E.g.

#+begin_src emacs-lisp
(progn
   (defvar my-var :default-value)
   (let ((my-var :let-value))
     (make-local-variable 'my-var)
     (setq my-var :buffer-local-new))
   (list my-var (local-variable-p 'my-var))) ;; (:buffer-local-new t)
#+end_src

`setq' sets the buffer local binding, not the global value the `let'
binding refers to.

Indeed!  I stand corrected, and rest my case.  I guess I'm getting old.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]