]> git.eshelyaron.com Git - emacs.git/commit
lisp/subr.el (setq-local): Make local after evaluating the new value
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 13 Apr 2025 03:00:08 +0000 (23:00 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 13 Apr 2025 20:54:06 +0000 (22:54 +0200)
commit287c7697892a260628854cce74b15d651c948516
tree4fb0410cf40ed368951487c1ecfb81d03558aabf
parent92bfe13c7cdf57b71d7ac1c0328e3ec5b1ffb7f0
lisp/subr.el (setq-local): Make local after evaluating the new value

In case the evaluation needs to look at the variable's value,
make sure we make it buffer-local afterwards.

(cherry picked from commit f3e0bdf1b98ceeb055065766db53c0c6218840c4)
lisp/subr.el