unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Why does saving a buffer to a new file clear local variables?
@ 2024-12-11  4:05 Patrick Nicodemus
  2024-12-12  7:31 ` Jean Louis
  2024-12-12 12:50 ` Michael Heerdegen
  0 siblings, 2 replies; 7+ messages in thread
From: Patrick Nicodemus @ 2024-12-11  4:05 UTC (permalink / raw)
  To: help-gnu-emacs

If I create a new buffer like (get-buffer-create "tmpbuf"),
switch to the buffer, and execute the commands
(make-variable-buffer-local "abc")
(setq abc 3)
and then save the buffer to, say, "tmpbuf", then abc becomes nil.
Why is this the case?
Is this behavior documented anywhere?
I checked that it doesn't change the major mode. It is "Fundamental" before
and after saving.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-12-12 18:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11  4:05 Why does saving a buffer to a new file clear local variables? Patrick Nicodemus
2024-12-12  7:31 ` Jean Louis
2024-12-12 11:32   ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-12-12 12:41     ` Jean Louis
2024-12-12 13:01       ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-12-12 18:31         ` Jean Louis
2024-12-12 12:50 ` Michael Heerdegen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).