emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 32b9c7d: Revert "Allow nil initializers in define-minor-mode"


From: Lars Ingebrigtsen
Subject: master 32b9c7d: Revert "Allow nil initializers in define-minor-mode"
Date: Sat, 31 Jul 2021 07:38:07 -0400 (EDT)

branch: master
commit 32b9c7d06f774b420b5d2cfbbdbb447f542fc88e
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Revert "Allow nil initializers in define-minor-mode"
    
    This reverts commit 02cbb37de73d563149389615ee44741322007108.
    
    This was mistakenly commited and doesn't really make much sense.
---
 lisp/emacs-lisp/easy-mmode.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 6530d06..3a00fdb 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]