]> git.eshelyaron.com Git - emacs.git/commit
Fix handling of defcustom :local tag
authorBasil L. Contovounesios <contovob@tcd.ie>
Wed, 18 Nov 2020 12:53:03 +0000 (12:53 +0000)
committerBasil L. Contovounesios <contovob@tcd.ie>
Tue, 24 Nov 2020 16:50:37 +0000 (16:50 +0000)
commitdea3d6aa18e54f0d8d75cd219b511bac5b3c87b1
treef88602aab719cf200a3c265c3a893c415aa23c14
parentb2ee6650243ed2777f3a6c400f194f770f00da6f
Fix handling of defcustom :local tag

For discussion, see the following emacs-devel thread:
https://lists.gnu.org/r/emacs-devel/2020-11/msg00734.html

* lisp/custom.el (custom-declare-variable): Delay call to
make-variable-buffer-local until after user option has been
initialized with a value.  Otherwise the user option may be
initialized to nil.
* test/lisp/custom-tests.el (custom--test-local-option)
(custom--test-permanent-option): New :local user options.
(custom-test-local-option): New test for defcustom :local keyword.
lisp/custom.el
test/lisp/custom-tests.el