[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 85/287: Keep track of shortcut key prefixes
From: |
Matthew Fidler |
Subject: |
[elpa] 85/287: Keep track of shortcut key prefixes |
Date: |
Wed, 02 Jul 2014 14:44:50 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit fff0262c9fc4cd99682a1e68ae3546c3729c0900
Author: Matthew L. Fidler <address@hidden>
Date: Fri Jun 13 07:44:06 2014 -0500
Keep track of shortcut key prefixes
---
ergoemacs-theme-engine.el | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ergoemacs-theme-engine.el b/ergoemacs-theme-engine.el
index 29ea300..a203b34 100644
--- a/ergoemacs-theme-engine.el
+++ b/ergoemacs-theme-engine.el
@@ -1117,6 +1117,9 @@ FULL-SHORTCUT-MAP-P "
(defvar ergoemacs-original-keys-to-shortcut-keys-regexp ""
"Regular expression of original keys that have shortcuts.")
+(defvar ergoemacs-shortcut-prefix-keys '()
+ "List of prefix keys")
+
(defvar ergoemacs-original-keys-to-shortcut-keys (make-hash-table :test 'equal)
"Hash table of the original maps that `ergoemacs-mode' saves.")
@@ -1220,6 +1223,7 @@ The actual keymap changes are included in
`ergoemacs-emulation-mode-map-alist'."
;; Reset shortcut hash
(setq ergoemacs-command-shortcuts-hash (make-hash-table :test 'equal)
+ ergoemacs-shortcut-prefix-keys '()
ergoemacs-original-keys-to-shortcut-keys-regexp ""
ergoemacs-original-keys-to-shortcut-keys (make-hash-table :test
'equal))
(unless remove-p
@@ -1260,6 +1264,10 @@ The actual keymap changes are included in
`ergoemacs-emulation-mode-map-alist'."
(dolist (c (reverse shortcut-list))
(unless (member (nth 0 c) rm-list)
(puthash (nth 0 c) (nth 1 c) ergoemacs-command-shortcuts-hash)
+ (when (< 1 (length (nth 0 c)))
+ (pushnew (substring (nth 0 c) 0 -1)
+ ergoemacs-shortcut-prefix-keys
+ :test 'equal))
(when (eq (nth 1 (nth 1 c)) 'global)
(dolist (global-key (ergoemacs-shortcut-function-binding (nth
0 (nth 1 c))))
(if (not (gethash global-key
ergoemacs-original-keys-to-shortcut-keys))
- [elpa] 75/287: Only put in shortcut-hash if not removed from keymap., (continued)
- [elpa] 75/287: Only put in shortcut-hash if not removed from keymap., Matthew Fidler, 2014/07/02
- [elpa] 68/287: Make the caching more robust, Matthew Fidler, 2014/07/02
- [elpa] 72/287: Fix copy objects to allow keymap versions., Matthew Fidler, 2014/07/02
- [elpa] 79/287: Fix final map to be a composed keymap that works with ergoemacs-rm-key, Matthew Fidler, 2014/07/02
- [elpa] 76/287: Only Issue 86 still persists., Matthew Fidler, 2014/07/02
- [elpa] 77/287: Ensure ergoemacs-global-override-rm-keys is a list of vectors, Matthew Fidler, 2014/07/02
- [elpa] 80/287: Reverse order to allow <apps> h z processing., Matthew Fidler, 2014/07/02
- [elpa] 82/287: Ignored keys shouldn't be in the shortcut hash, Matthew Fidler, 2014/07/02
- [elpa] 83/287: Allow ergoemacs-rm-key to remove a list, Matthew Fidler, 2014/07/02
- [elpa] 84/287: Break-out sending unread-command events, Matthew Fidler, 2014/07/02
- [elpa] 85/287: Keep track of shortcut key prefixes,
Matthew Fidler <=
- [elpa] 81/287: Added version menu back, Matthew Fidler, 2014/07/02
- [elpa] 87/287: Remove "Z" in theme component, Matthew Fidler, 2014/07/02
- [elpa] 144/287: Generate image based on options, Matthew Fidler, 2014/07/02
- [elpa] 86/287: Always suppress shortcuts in read-key-lookup, Matthew Fidler, 2014/07/02
- [elpa] 88/287: Apply defered variables/modes. Fix Issue #216, Matthew Fidler, 2014/07/02
- [elpa] 147/287: Allow emacs23 to fail., Matthew Fidler, 2014/07/02
- [elpa] 78/287: Faster ignore globally defined key, Matthew Fidler, 2014/07/02
- [elpa] 149/287: Backport `make-composed-keymap'., Matthew Fidler, 2014/07/02
- [elpa] 148/287: Fix more compiler issues and typos, Matthew Fidler, 2014/07/02
- [elpa] 145/287: pushnew instead of add-to-list, Matthew Fidler, 2014/07/02