[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master e962ff1 39/72: hydra.el: remove no :pre, :post restriction
From: |
Oleh Krehel |
Subject: |
[elpa] master e962ff1 39/72: hydra.el: remove no :pre, :post restriction for Emacs<24.4 |
Date: |
Fri, 06 Mar 2015 13:04:14 +0000 |
branch: master
commit e962ff16a96988edfba45ec8b501f0dc920149ca
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
hydra.el: remove no :pre, :post restriction for Emacs<24.4
---
hydra.el | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/hydra.el b/hydra.el
index 9e81a3f..696157e 100644
--- a/hydra.el
+++ b/hydra.el
@@ -490,9 +490,9 @@ BODY-COLOR, BODY-PRE, BODY-POST, and OTHER-POST are used as
well."
(unless hydra-lv
(sit-for 0.8))
(,hint-name)))))
- (error
- "An %S Hydra must have at least one blue head in order to exit"
- body-color))
+ (error
+ "An %S Hydra must have at least one blue head in order to exit"
+ body-color))
(when hydra-keyboard-quit
(define-key keymap hydra-keyboard-quit
`(lambda ()
@@ -579,9 +579,6 @@ result of `defhydra'."
(method (or (plist-get body :bind)
(car body)))
(doc (hydra--doc body-key body-name heads)))
- (when (and (or body-pre body-post)
- (version< emacs-version "24.4"))
- (error "At least Emacs 24.4 is needed for :pre and :post"))
(when (and body-pre (symbolp body-pre))
(setq body-pre `(funcall #',body-pre)))
(when (and body-post (symbolp body-post))
- [elpa] master 0a3cc60 30/72: Add compat color-less syntax, (continued)
- [elpa] master 0a3cc60 30/72: Add compat color-less syntax, Oleh Krehel, 2015/03/06
- [elpa] master 92e1922 19/72: hydra.el (hydra--hint): Take same arguments as `defhydra', Oleh Krehel, 2015/03/06
- [elpa] master 6f7cef2 22/72: Add teal body color, Oleh Krehel, 2015/03/06
- [elpa] master 7010772 32/72: hydra.el (hydra--head-color): Improve, Oleh Krehel, 2015/03/06
- [elpa] master d0e8d57 33/72: hydra.el (hydra-add-font-lock): Add `defhydradio', Oleh Krehel, 2015/03/06
- [elpa] master 0881733 28/72: hydra.el (defhydra): Fix typo, Oleh Krehel, 2015/03/06
- [elpa] master a4c4eb6 36/72: Add example for `Buffer-menu-mode', Oleh Krehel, 2015/03/06
- [elpa] master 88b32d5 24/72: hydra.el (hydra--hint): Add exception, Oleh Krehel, 2015/03/06
- [elpa] master c41c932 31/72: README.md: fix tables, Oleh Krehel, 2015/03/06
- [elpa] master 1eebfed 34/72: Allow `format'-style width specifiers in docstring, Oleh Krehel, 2015/03/06
- [elpa] master e962ff1 39/72: hydra.el: remove no :pre, :post restriction for Emacs<24.4,
Oleh Krehel <=
- [elpa] master a6c6a55 38/72: Improve compatibility for Emacs <= 24.3, Oleh Krehel, 2015/03/06
- [elpa] master 2c01db0 42/72: hydra.el (hydra--handle-nonhead): Update signature, Oleh Krehel, 2015/03/06
- [elpa] master a71b76e 35/72: Intercept quit signals, Oleh Krehel, 2015/03/06
- [elpa] master ae70e9a 41/72: Fix pink and teal Hydras running :post, Oleh Krehel, 2015/03/06
- [elpa] master 71d70f6 46/72: Add :body-pre switch, Oleh Krehel, 2015/03/06
- [elpa] master cb28124 44/72: Allow sexps in Ruby-style docstrings, Oleh Krehel, 2015/03/06
- [elpa] master ace99b3 51/72: hydra.el (hydra--make-defun): Update signature, Oleh Krehel, 2015/03/06
- [elpa] master efcffc0 45/72: hydra-examples.el: Add example 9, Oleh Krehel, 2015/03/06
- [elpa] master ef1f61d 40/72: hydra.el (hydra--handle-nonhead): Fix bug, Oleh Krehel, 2015/03/06
- [elpa] master 2eddb83 43/72: hydra-test.el (hydra-format): New test, Oleh Krehel, 2015/03/06