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

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

[nongnu] elpa/reformatter 2c85cd76e5 03/81: Always output :keymap and :l


From: ELPA Syncer
Subject: [nongnu] elpa/reformatter 2c85cd76e5 03/81: Always output :keymap and :lighter minor mode arguments
Date: Tue, 5 Sep 2023 04:03:32 -0400 (EDT)

branch: elpa/reformatter
commit 2c85cd76e53c90e27075a22654c33fdfc85368da
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Always output :keymap and :lighter minor mode arguments
---
 reformatter.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/reformatter.el b/reformatter.el
index 77c31938ee..796ff01fae 100644
--- a/reformatter.el
+++ b/reformatter.el
@@ -109,13 +109,13 @@ The macro accepts the following keyword arguments:
   (cl-assert program)
   (let ((minor-mode-form
          (when mode
-           (let ((on-save-mode-name (intern-soft (format "%s-on-save-mode" 
name))))
+           (let ((on-save-mode-name (intern (format "%s-on-save-mode" name))))
              `(define-minor-mode ,on-save-mode-name
                 ,(format "When enabled, call `%s' when this buffer is saved." 
name)
                 nil
                 :global nil
-                ,@(when keymap (list :keymap keymap))
-                ,@(when lighter (list :lighter lighter))
+                :lighter ,lighter
+                :keymap ,keymap
                 (if ,on-save-mode-name
                     (add-hook 'before-save-hook ',name nil t)
                   (remove-hook 'before-save-hook ',name t)))))))



reply via email to

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