* lisp/emacs-lisp/bytecomp.el (bytecomp--custom-declare): Fix thinko.
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-test-defcustom-local): Update test.
(cherry picked from commit
67e807d897077b7c982104b528e2504591214a29)
;; Check :local
(when-let ((val (and (eq fun 'custom-declare-variable)
(plist-get keyword-args :local)))
- (_ (not (memq val '(t permanent permanent-only)))))
+ (_ (not (member val '(t 'permanent 'permanent-only)))))
(bytecomp--cus-warn form ":local keyword does not accept %S" val))))
(byte-compile-normal-call form))
(rx ":local keyword does not accept 'symbol") (dc 'symbol))
(bytecomp--with-warning-test
(rx ":local keyword does not accept \"string\"") (dc "string"))
+ (bytecomp--without-warning-test (dc t))
+ (bytecomp--without-warning-test (dc 'permanent))
+ (bytecomp--without-warning-test (dc 'permanent-only))
))
(ert-deftest bytecomp-test-defface-spec ()