]> git.eshelyaron.com Git - emacs.git/commit
Warn about duplicated :tag strings in defcustom choices
authorMattias Engdegård <mattiase@acm.org>
Tue, 19 Sep 2023 13:18:11 +0000 (15:18 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 19 Sep 2023 13:21:03 +0000 (15:21 +0200)
commitb03338c70d81f2cba9c8a0b4fefbf83ef7a346e0
tree28ebf04f4dbfbf5b021d018216df6fe85b8110f5
parent321f2e1e4d4b2f209b072dc891cc89cbab19f032
Warn about duplicated :tag strings in defcustom choices

It is bad user experience when two menu items have identical labels.

* lisp/emacs-lisp/bytecomp.el (bytecomp--check-cus-type): Add check.
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-test-defcustom-type): Add test case.
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el