1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00

Refine the Custom type of generated '*-modes' options

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Refine the Custom type of the '*-modes' option, generated when
this macro is given a ':predicate' argument.  (Bug#70589)
This commit is contained in:
Eshel Yaron 2024-04-26 11:43:29 +02:00
parent 01e0b783bc
commit f5439a9291
No known key found for this signature in database
GPG Key ID: EF3EE9CA35D78618

View File

@ -580,7 +580,20 @@ modes derived from `text-mode'\". An element with value t means \"use\"
and nil means \"don't use\". There's an implicit nil at the end of the
list."
mode)
:type '(repeat sexp)
:type '(choice
(const :tag "Enable in all major modes" t)
(const :tag "Don't enable in any major mode" nil)
(repeat
:tag "Rules (earlier takes precedence)..."
(choice
(const :tag "Enable in all (other) modes" t)
(const :tag "Don't enable in any (other) mode" nil)
(symbol :value fundamental-mode
:tag "Enable in major mode")
(cons :tag "Don't enable in major modes"
(const :tag "Don't enable in..." not)
(repeat (symbol :value fundamental-mode
:tag "Major mode"))))))
,@group))
;; Autoloading define-globalized-minor-mode autoloads everything