diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-31 13:37:42 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-31 13:37:42 +0200 |
commit | 32b9c7d06f774b420b5d2cfbbdbb447f542fc88e (patch) | |
tree | a2d865f4223475fcda32fbf2ac1d845ff7fb9583 /lisp/emacs-lisp | |
parent | 99600ee7b4f7a6b8ab5a25817de21bfadd31c14c (diff) | |
download | emacs-32b9c7d06f774b420b5d2cfbbdbb447f542fc88e.tar.gz emacs-32b9c7d06f774b420b5d2cfbbdbb447f542fc88e.tar.bz2 emacs-32b9c7d06f774b420b5d2cfbbdbb447f542fc88e.zip |
Revert "Allow nil initializers in define-minor-mode"
This reverts commit 02cbb37de73d563149389615ee44741322007108.
This was mistakenly commited and doesn't really make much sense.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/easy-mmode.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index 6530d06b91c..3a00fdb454d 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el @@ -251,9 +251,7 @@ INIT-VALUE LIGHTER KEYMAP. (setq getter `(default-value ',mode)))) (:extra-args (setq extra-args (pop body))) (:set (setq set (list :set (pop body)))) - (:initialize - (when-let ((val (pop body))) - (setq initialize (list :initialize val)))) + (:initialize (setq initialize (list :initialize (pop body)))) (:type (setq type (list :type (pop body)))) (:keymap (setq keymap (pop body))) (:interactive (setq interactive (pop body))) |