branch: master commit e962ff16a96988edfba45ec8b501f0dc920149ca Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
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))