branch: master
commit 6d6bbd46ca309c41dc906cef4ee0a6eb3c84761d
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
hydra.el (hydra-key-format-spec): set default to "%s"
* hydra-test.el (hydra-format): Update test.
(hydra-format-with-sexp): Update test.
---
hydra-test.el | 8 ++++----
hydra.el | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hydra-test.el b/hydra-test.el
index b904f2d..c2fb5ab 100644
--- a/hydra-test.el
+++ b/hydra-test.el
@@ -685,9 +685,9 @@ _f_ auto-fill-mode: %`auto-fill-function
("t" toggle-truncate-lines nil)
("w" whitespace-mode nil)
("q" nil "quit"))))
- '(concat (format "% 3s abbrev-mode: %S
-% 3s debug-on-error: %S
-% 3s auto-fill-mode: %S
+ '(concat (format "%s abbrev-mode: %S
+%s debug-on-error: %S
+%s auto-fill-mode: %S
" "{a}" abbrev-mode "{d}" debug-on-error "{f}" auto-fill-function) "[[q]]:
quit"))))
(ert-deftest hydra-format-with-sexp ()
@@ -698,7 +698,7 @@ _f_ auto-fill-mode: %`auto-fill-function
'hydra-toggle nil
"\n_n_ narrow-or-widen-dwim %(progn (message
\"checking\")(buffer-narrowed-p))asdf\n"
'(("n" narrow-to-region nil) ("q" nil "cancel"))))
- '(concat (format "% 3s narrow-or-widen-dwim %Sasdf\n"
+ '(concat (format "%s narrow-or-widen-dwim %Sasdf\n"
"{n}"
(progn
(message "checking")
diff --git a/hydra.el b/hydra.el
index df764cc..35eb716 100644
--- a/hydra.el
+++ b/hydra.el
@@ -121,7 +121,7 @@ It's possible to set this to nil.")
"When non-nil, hydra will issue some non-essential style warnings."
:type 'boolean)
-(defcustom hydra-key-format-spec "% 3s"
+(defcustom hydra-key-format-spec "%s"
"Default `format'-style specifier for _a_ syntax in docstrings.
When nil, you can specify your own at each location like this: _ 5a_.")