all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.