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

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

bug#60643: 29.0.50; set-buffer-major-mode resets buffer local variables


From: Joseph Turner
Subject: bug#60643: 29.0.50; set-buffer-major-mode resets buffer local variables
Date: Sun, 08 Jan 2023 01:09:55 -0800

Hello!

Eli Zaretskii <eliz@gnu.org> writes:

> Changing the major mode kills all buffer-local variables. If you don't
> want some variable to be killed, give it the permanent-local property.

Ruijie Yu <ruijie@netyu.xyz> writes:

> There is another concept called "permanent local variables" which you
> might be thinking about when looking at "local variables", see info node
> `(elisp) Standard Properties' for more information.

Thank you both for your help!! This solves it:

(put 'test-var 'permanent-local t)

Joseph





reply via email to

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