[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 90/287: Allow unset keys to work too
From: |
Matthew Fidler |
Subject: |
[elpa] 90/287: Allow unset keys to work too |
Date: |
Wed, 02 Jul 2014 14:44:53 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 62ab14d0a0d992477eecdf291bf57ebeaf25b6f1
Author: Matthew L. Fidler <address@hidden>
Date: Fri Jun 13 09:48:34 2014 -0500
Allow unset keys to work too
---
ergoemacs-theme-engine.el | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/ergoemacs-theme-engine.el b/ergoemacs-theme-engine.el
index fc5feef..9125da4 100644
--- a/ergoemacs-theme-engine.el
+++ b/ergoemacs-theme-engine.el
@@ -1911,18 +1911,18 @@ DONT-COLLAPSE doesn't collapse empty keymaps"
(catch 'found-global-command
(while (>= (length key) 1)
(setq lk (lookup-key (current-global-map) key))
- (when (and (ergoemacs-global-changed-p key)
- (or (commandp lk t)
- (keymapp lk)))
+ (when (ergoemacs-global-changed-p key)
(when reset ;; Reset keymaps
;; Reset keymaps.
(dolist (map '(ergoemacs-shortcut-keymap
ergoemacs-read-input-keymap ergoemacs-keymap ergoemacs-unbind-keymap))
(set map (ergoemacs-rm-key (symbol-value map) key))
(setq lk (lookup-key (symbol-value map) key))
+ (message "%s;%s" map lk)
(if (not (integerp lk))
(setq test-key key)
(setq test-key (substring key 0 lk))
(setq lk (lookup-key (symbol-value map) test-key)))
+ (message "%s#2;%s" map lk)
(when (commandp lk t)
(set map (ergoemacs-rm-key (symbol-value map) test-key))))
;; Remove from shortcuts, if present
@@ -1935,7 +1935,7 @@ DONT-COLLAPSE doesn't collapse empty keymaps"
(pushnew (substring key 0 -1)
ergoemacs-shortcut-prefix-keys
:test 'equal)))
- ergoemacs-command-shortcuts-hash)
+ ergoemacs-command-shortcuts-hash)
;; Setup emulation maps.
(setq ergoemacs-read-emulation-mode-map-alist
(list (cons 'ergoemacs-read-input-keys
ergoemacs-read-input-keymap))
@@ -1944,8 +1944,10 @@ DONT-COLLAPSE doesn't collapse empty keymaps"
(list (cons 'ergoemacs-shortcut-keys
ergoemacs-shortcut-keymap))))
;;Put maps in `minor-mode-map-alist'
(ergoemacs-shuffle-keys t))
- (push key ergoemacs-global-override-rm-keys)
- (throw 'found-global-command t))
+ (when (and (or (commandp lk t)
+ (keymapp lk)))
+ (push key ergoemacs-global-override-rm-keys)
+ (throw 'found-global-command t)))
(setq key (substring key 0 (- (length key) 1)))))))
- [elpa] 91/287: All tests pass; ido-vertical doesn't have right keys, (continued)
- [elpa] 91/287: All tests pass; ido-vertical doesn't have right keys, Matthew Fidler, 2014/07/02
- [elpa] 118/287: Move macros from ergoemacs-theme-engine, Matthew Fidler, 2014/07/02
- [elpa] 124/287: Refactor ergoemacs-open-in-external-app, Matthew Fidler, 2014/07/02
- [elpa] 138/287: Make the test directory., Matthew Fidler, 2014/07/02
- [elpa] 109/287: Add ergoemacs-macros for all macros., Matthew Fidler, 2014/07/02
- [elpa] 121/287: Remove cl dependence for ergoemacs-theme-engine.el, Matthew Fidler, 2014/07/02
- [elpa] 107/287: Remove save-variable-state, Matthew Fidler, 2014/07/02
- [elpa] 197/287: Merge branch 'master' of github.com:ergoemacs/ergoemacs-mode, Matthew Fidler, 2014/07/02
- [elpa] 106/287: Fix many byte-compile warnings in ergoemacs-extras.el, Matthew Fidler, 2014/07/02
- [elpa] 95/287: Revert "Fixed shortcut keys.", Matthew Fidler, 2014/07/02
- [elpa] 90/287: Allow unset keys to work too,
Matthew Fidler <=
- [elpa] 115/287: Take away warnings from ergoemacs-mode.el, Matthew Fidler, 2014/07/02
- [elpa] 192/287: Add ergoemacs-test-layout, Matthew Fidler, 2014/07/02
- [elpa] 114/287: condition-case->ignore-errors ergoemacs-translate.el, Matthew Fidler, 2014/07/02
- [elpa] 92/287: Fix keys, Matthew Fidler, 2014/07/02
- [elpa] 125/287: Added documentation and always respect file in ergoemacs-open-in-external-app, Matthew Fidler, 2014/07/02
- [elpa] 195/287: Merge pull request #240 from akfoss/master, Matthew Fidler, 2014/07/02
- [elpa] 130/287: Advice key-binding to look at global keys without ergoemacs-mode, Matthew Fidler, 2014/07/02
- [elpa] 142/287: Makefile fixes, Matthew Fidler, 2014/07/02
- [elpa] 194/287: Fix Issue #238, Matthew Fidler, 2014/07/02
- [elpa] 201/287: Modify apps-copy test to use ert should instead of shoud ret, Matthew Fidler, 2014/07/02