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

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

[elpa] master bb9f582 5/8: When calling `prefix/nil', make sure there's


From: Oleh Krehel
Subject: [elpa] master bb9f582 5/8: When calling `prefix/nil', make sure there's something to disable
Date: Fri, 30 Jan 2015 16:18:51 +0000

branch: master
commit bb9f582c437ad9ca5e36894ea2aac25b92fe2106
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    When calling `prefix/nil', make sure there's something to disable
    
    * hydra.el (defhydra): Update.
    
    Fixes #10.
---
 hydra.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hydra.el b/hydra.el
index e82d95f..6f21215 100644
--- a/hydra.el
+++ b/hydra.el
@@ -170,7 +170,7 @@ HEADS is a list of (KEY CMD &optional HINT)."
                ,(format "%s\n\nCall the head: `%S'." doc (cadr head))
                (interactive)
                ,@(if (null (cadr head))
-                     '((funcall hydra-last))
+                     '((when hydra-last (funcall hydra-last)))
                      `((call-interactively #',(cadr head))
                        (when hydra-is-helpful
                          (message ,hint))



reply via email to

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