]> git.eshelyaron.com Git - emacs.git/commit
New value 'permanent-only' for defcustom :local keyword
authorStefan Kangas <stefankangas@gmail.com>
Tue, 1 Oct 2024 23:03:08 +0000 (01:03 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 3 Oct 2024 06:41:50 +0000 (08:41 +0200)
commit7ef76264930f57e321ecb583099abdf04f62d550
tree6fcbb23970edb31f116c5ef32a5d2c65638d1b25
parentbe04e21b783d94822d1acb8f1cdad88b023dd49b
New value 'permanent-only' for defcustom :local keyword

* lisp/custom.el (custom-declare-variable): Make the :local keyword
accept the symbol 'permanent-local', meaning that the variable is
permanent but not marked as automatically buffer-local.
(defcustom):
* doc/lispref/customize.texi (Variable Definitions): Document the
above change.

* test/lisp/custom-tests.el
(custom-tests-defcustom-:local-keyword): New test.

(cherry picked from commit 9ad73f92617da1286724f9774b34bb7ce6a4299d)
doc/lispref/customize.texi
etc/NEWS
lisp/custom.el
test/lisp/custom-tests.el