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

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

[nongnu] elpa/reformatter 6484d45a87 07/81: Only support string mode lig


From: ELPA Syncer
Subject: [nongnu] elpa/reformatter 6484d45a87 07/81: Only support string mode lighters
Date: Tue, 5 Sep 2023 04:03:32 -0400 (EDT)

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

    Only support string mode lighters
    
    Minor modes don't seem to allow symbols.
---
 reformatter.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/reformatter.el b/reformatter.el
index d0fe2df679..5ce09ed8ee 100644
--- a/reformatter.el
+++ b/reformatter.el
@@ -100,8 +100,9 @@ The macro accepts the following keyword arguments:
 
 :lighter
 
-  If provided, this is a mode lighter symbol or string which will be used
-  for the \"-on-save\" minor mode.  Default is to use no lighter.
+  If provided, this is a mode lighter string which will be used
+  for the \"-on-save\" minor mode.  It should have a leading
+  space.  Default is to use no lighter.
 
 :keymap
 
@@ -118,7 +119,7 @@ The macro accepts the following keyword arguments:
              `(progn
                 (defcustom ,lighter-name ,lighter
                   ,(format "Mode lighter for `%s'." on-save-mode-name)
-                  :type '(choice symbol string))
+                  :type 'string)
                 (define-minor-mode ,on-save-mode-name
                   ,(format "When enabled, call `%s' when this buffer is 
saved." name)
                   nil



reply via email to

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