emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/macrostep 2d0091bf8f 02/10: Avoid positional arguments to


From: ELPA Syncer
Subject: [nongnu] elpa/macrostep 2d0091bf8f 02/10: Avoid positional arguments to define-minor-mode
Date: Wed, 26 Oct 2022 09:59:21 -0400 (EDT)

branch: elpa/macrostep
commit 2d0091bf8f6512ab49c8258bce934764883af40d
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Avoid positional arguments to define-minor-mode
    
    Back in Emacs-21.1, `define-minor-mode' grew keyword arguments to
    replace its old positional arguments.  Starting with Emacs-28.1
    a warning will be omitted if positional arguments are still used.
    
    For backward compatibility one keyword argument has to be provided
    if a function body is provided (as otherwise the non-keyword value
    argument and the body could not be told apart).
---
 macrostep.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/macrostep.el b/macrostep.el
index b69184e11a..ab186757f2 100644
--- a/macrostep.el
+++ b/macrostep.el
@@ -501,7 +501,8 @@ Use \\[macrostep-collapse-all] or collapse all visible 
expansions to
 quit and return to normal editing.
 
 \\{macrostep-keymap}"
-  nil " Macro-Stepper"
+  :init-value nil
+  :lighter " Macro-Stepper"
   :keymap macrostep-keymap
   :group macrostep
   (if macrostep-mode



reply via email to

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