[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3fce2bd 12/45: Try to re-encode the input in the terminal
From: |
Oleh Krehel |
Subject: |
[elpa] master 3fce2bd 12/45: Try to re-encode the input in the terminal |
Date: |
Thu, 16 Apr 2015 12:45:43 +0000 |
branch: master
commit 3fce2bd1cde60017ddce529f353151a51a2106b4
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Try to re-encode the input in the terminal
* hydra.el (hydra--handle-nonhead): Update. Most interesting sequences
start with [27 91] or [27 79]. It's hard to do it for all of them.
Re #90
---
hydra.el | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/hydra.el b/hydra.el
index c817a3f..1cac1f5 100644
--- a/hydra.el
+++ b/hydra.el
@@ -682,10 +682,21 @@ NAME, BODY and HEADS are parameters to `defhydra'."
`(lambda ()
(interactive)
,(cond
- ((memq body-color '(amaranth teal))
- '(message "An amaranth Hydra can only exit through
a blue head"))
- (t
- '(hydra-pink-fallback)))
+ ((memq body-color '(amaranth teal))
+ '(let ((k (or (lookup-key
+ input-decode-map
+ (vconcat [27 91]
+
(this-command-keys-vector)))
+ (lookup-key
+ input-decode-map
+ (vconcat [27 79]
+
(this-command-keys-vector)))))
+ f)
+ (if (and k (setq f (lookup-key test/keymap k)))
+ (funcall f)
+ (message "An amaranth Hydra can only exit
through a blue head"))))
+ (t
+ '(hydra-pink-fallback)))
(hydra-set-transient-map hydra-curr-map t)
(when hydra-is-helpful
(unless hydra-lv
- [elpa] master updated (22139ae -> f972634), Oleh Krehel, 2015/04/16
- [elpa] master cc6accd 04/45: hydra.el (hydra--digit-argument): Fix for Emacs 24.3, Oleh Krehel, 2015/04/16
- [elpa] master e4cae0a 03/45: hydra.el (defhydra): Simplify :cmd-name part, Oleh Krehel, 2015/04/16
- [elpa] master c06c006 02/45: Use set/defvar for keymap, Oleh Krehel, 2015/04/16
- [elpa] master e7aaafb 07/45: hydra.el (hydra-pink-fallback): Allow prefix arguments, Oleh Krehel, 2015/04/16
- [elpa] master d0cc1c5 01/45: Define a keymap var for each hydra and re-use it, Oleh Krehel, 2015/04/16
- [elpa] master 666048c 10/45: Update testing setup, Oleh Krehel, 2015/04/16
- [elpa] master f9bf8fe 08/45: hydra.el (hydra-set-transient-map): Update, Oleh Krehel, 2015/04/16
- [elpa] master 60483cb 09/45: Add integration testing, Oleh Krehel, 2015/04/16
- [elpa] master 4dde4f7 11/45: hydra.el (hydra--format): Add some more symbols, Oleh Krehel, 2015/04/16
- [elpa] master 3fce2bd 12/45: Try to re-encode the input in the terminal,
Oleh Krehel <=
- [elpa] master fa5643f 15/45: Quit Hydra for `handle-switch-frame', Oleh Krehel, 2015/04/16
- [elpa] master af39a98 14/45: Adapt to the new `hydra-set-transient-map', Oleh Krehel, 2015/04/16
- [elpa] master acdec5b 27/45: Add an integration test for digit args in amaranth, Oleh Krehel, 2015/04/16
- [elpa] master 1a54e09 05/45: hydra.el (hydra--make-funcall): Update location, Oleh Krehel, 2015/04/16
- [elpa] master b351b7c 24/45: hydra.el (hydra--body-color): Remove, Oleh Krehel, 2015/04/16
- [elpa] master 5787a4d 13/45: Move away from setting "t" in keymaps, Oleh Krehel, 2015/04/16
- [elpa] master 5379642 06/45: Use `hydra-keyboard-quit' instead of `hydra-cleanup', Oleh Krehel, 2015/04/16
- [elpa] master e88839c 17/45: Don't double-call :post, Oleh Krehel, 2015/04/16
- [elpa] master 2f07e50 26/45: Account for digit argument, Oleh Krehel, 2015/04/16
- [elpa] master 8875bf1 28/45: Make digit and negative arguments work in 24.3, Oleh Krehel, 2015/04/16