[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master a179f31 04/27: Unbind hydra's body unconditionally to avoi
From: |
Oleh Krehel |
Subject: |
[elpa] master a179f31 04/27: Unbind hydra's body unconditionally to avoid error |
Date: |
Sat, 24 Jan 2015 20:36:29 +0000 |
branch: master
commit a179f3157c378de073a96bd244499ca85988b327
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Unbind hydra's body unconditionally to avoid error
* hydra.el (hydra-create): Since body will be established as a prefix,
it can't be bound anyway. Unbind it preemptively and unconditionally.
---
hydra.el | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/hydra.el b/hydra.el
index 14b1282..9b65f03 100644
--- a/hydra.el
+++ b/hydra.el
@@ -67,8 +67,7 @@ is broken once any key binding that is not in HEADS is
called."
(intern (format "hydra-%s-%S" body (cdr x)))))
heads)))
`(progn
- (when (global-key-binding ,(kbd body))
- (global-set-key ,(kbd body) nil))
+ (global-set-key ,(kbd body) nil)
,@(cl-mapcar
(lambda (head name)
`(defun ,name ()
- [elpa] master updated (c7f675e -> 7b78b37), Oleh Krehel, 2015/01/24
- [elpa] master 916a130 05/27: Depend on cl-lib v0.5 for `cl-mapcar', Oleh Krehel, 2015/01/24
- [elpa] master a179f31 04/27: Unbind hydra's body unconditionally to avoid error,
Oleh Krehel <=
- [elpa] master abef4bf 02/27: Split away the examples, Oleh Krehel, 2015/01/24
- [elpa] master 2a367fa 03/27: README.md: update doc, Oleh Krehel, 2015/01/24
- [elpa] master f55c1ff 07/27: Add `hydra-is-helpful' custom var, Oleh Krehel, 2015/01/24
- [elpa] master 9b86656 01/27: Initial import, Oleh Krehel, 2015/01/24
- [elpa] master 6966e14 11/27: Fix the bugged `global-set-key' version, Oleh Krehel, 2015/01/24
- [elpa] master 11323ec 06/27: Allow to use minor-mode-maps and more, Oleh Krehel, 2015/01/24
- [elpa] master dbd77f0 09/27: Don't unbind hydra's body, unless using global-set-key, Oleh Krehel, 2015/01/24
- [elpa] master 998b533 10/27: Make sure `windmove-wrap-around' is nil during tests, Oleh Krehel, 2015/01/24
- [elpa] master 5318fc3 08/27: Update `hydra-create' format, Oleh Krehel, 2015/01/24
- [elpa] master e156bf2 12/27: Require cl at compile time, Oleh Krehel, 2015/01/24