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

[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))



reply via email to

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