[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65209: 30.0.50; Unexpected behaviour of setq-local
From: |
Eli Zaretskii |
Subject: |
bug#65209: 30.0.50; Unexpected behaviour of setq-local |
Date: |
Fri, 11 Aug 2023 14:09:41 +0300 |
> Cc: 65209@debbugs.gnu.org
> Date: Fri, 11 Aug 2023 10:17:15 +0200
> From: Gerd Möllmann <gerd.moellmann@gmail.com>
>
> :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.
Don't we all?
I guess this bug can be closed, then? Or is there anything left to do?
bug#65209: 30.0.50; Unexpected behaviour of setq-local, Stefan Monnier, 2023/08/13