Re: Buffer-local defcustom with :set directive

Stefan Monnier via Users list for the GNU Emacs text editor <[email protected]> Sat, 20 Jun 2026 11:16:30 -0400
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
> I want to have the custom variable to be buffer local.

Please clarify what you mean by that.

The usual API available to modify Custom settings doesn't know much
about buffers, and the UI offered around it even less so (e.g. when
`M-x customize-variable` there's no way for the user to say or see to
which buffer the setting would/should apply, and there's similarly no
support to make "per-buffer" settings survive between Emacs sessions).


=== Stefan