[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master d25e560 03/72: Fix head color for heads with nil as HINT
From: |
Oleh Krehel |
Subject: |
[elpa] master d25e560 03/72: Fix head color for heads with nil as HINT |
Date: |
Fri, 06 Mar 2015 13:03:59 +0000 |
branch: master
commit d25e56045fcd85cdeff735af71a0fd023ba21464
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Fix head color for heads with nil as HINT
hydra.el (hydra--head-property): Fix.
This head should work now:
("1" (text-scale-set 0) nil :bind nil :color blue)
---
hydra.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hydra.el b/hydra.el
index 95a34af..f57c9d3 100644
--- a/hydra.el
+++ b/hydra.el
@@ -190,7 +190,8 @@ should be a single statement. Wrap it in an interactive
lambda."
(defun hydra--head-property (h prop &optional default)
"Return for Hydra head H the value of property PROP.
Return DEFAULT if PROP is not in H."
- (let ((plist (if (stringp (cl-caddr h))
+ (let ((plist (if (or (stringp (cl-caddr h))
+ (null (cl-caddr h)))
(cl-cdddr h)
(cddr h))))
(if (memq prop h)
- [elpa] master bb38641 05/72: hydra.el (hydra--make-defun): simplify, (continued)
- [elpa] master bb38641 05/72: hydra.el (hydra--make-defun): simplify, Oleh Krehel, 2015/03/06
- [elpa] master 614e1f7 07/72: `defhydra' should be indented as `defun', Oleh Krehel, 2015/03/06
- [elpa] master 8bca51b 04/72: Warn about explict red heads on amaranth body, Oleh Krehel, 2015/03/06
- [elpa] master 216550e 06/72: Add option to font-lock `defhydra', Oleh Krehel, 2015/03/06
- [elpa] master f3c4dd7 02/72: hydra.el (hydra--hint): allow duplicate functions in heads, Oleh Krehel, 2015/03/06
- [elpa] master 62f9b05 01/72: Allow some heads with no hints, Oleh Krehel, 2015/03/06
- [elpa] master f04f14c 14/72: hydra.el (defhydra): Update doc, Oleh Krehel, 2015/03/06
- [elpa] master 2086614 10/72: hydra.el (defhydradio): New macro, Oleh Krehel, 2015/03/06
- [elpa] master d04ef9b 12/72: hydra.el (hydra-cleanup): reorder, Oleh Krehel, 2015/03/06
- [elpa] master 926d9a4 15/72: Add pink body color, Oleh Krehel, 2015/03/06
- [elpa] master d25e560 03/72: Fix head color for heads with nil as HINT,
Oleh Krehel <=
- [elpa] master abb76e8 13/72: lv.el (lv-message): Don't deactivate mark, Oleh Krehel, 2015/03/06
- [elpa] master 81ffca0 20/72: Update faces, Oleh Krehel, 2015/03/06
- [elpa] master 9769143 25/72: hydra-examples.el: Add example 7, Oleh Krehel, 2015/03/06
- [elpa] master c049a33 16/72: Allow for Ruby-style Hydra docstrings, Oleh Krehel, 2015/03/06
- [elpa] master 688e8fd 23/72: hydra.el (hydra--head-color): fix for teal color, Oleh Krehel, 2015/03/06
- [elpa] master 0cda4ce 26/72: Fix typos, Oleh Krehel, 2015/03/06
- [elpa] master caf114a 11/72: Fix unintentional recursion in Emacs 25, Oleh Krehel, 2015/03/06
- [elpa] master c7281e9 17/72: Minor refactoring, Oleh Krehel, 2015/03/06
- [elpa] master 06b35f7 08/72: Remove obsoletes, Oleh Krehel, 2015/03/06
- [elpa] master 806e04b 09/72: Don't clutter Echo Area, Oleh Krehel, 2015/03/06