[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 132/287: Be more careful when redefining maps.
From: |
Matthew Fidler |
Subject: |
[elpa] 132/287: Be more careful when redefining maps. |
Date: |
Wed, 02 Jul 2014 14:45:19 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit dbb55443e24c0350d2728e36176a5475882afd38
Author: Matthew L. Fidler <address@hidden>
Date: Wed Jun 18 09:38:07 2014 -0500
Be more careful when redefining maps.
---
ergoemacs-theme-engine.el | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/ergoemacs-theme-engine.el b/ergoemacs-theme-engine.el
index ed7cf61..a8b0226 100644
--- a/ergoemacs-theme-engine.el
+++ b/ergoemacs-theme-engine.el
@@ -1781,14 +1781,15 @@ DONT-COLLAPSE doesn't collapse empty keymaps"
(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))
- (if (not (integerp lk))
- (setq test-key key)
- (setq test-key (substring key 0 lk))
- (setq lk (lookup-key (symbol-value map) test-key)))
- (when (commandp lk t)
- (set map (ergoemacs-rm-key (symbol-value map) test-key))))
+ (when (symbol-value map)
+ (set map (ergoemacs-rm-key (symbol-value map) key))
+ (setq lk (lookup-key (symbol-value map) key))
+ (if (not (integerp lk))
+ (setq test-key key)
+ (setq test-key (substring key 0 lk))
+ (setq lk (lookup-key (symbol-value map) test-key)))
+ (when (commandp lk t)
+ (set map (ergoemacs-rm-key (symbol-value map) test-key)))))
;; Remove from shortcuts, if present
(remhash key ergoemacs-command-shortcuts-hash)
;; Reset `ergoemacs-shortcut-prefix-keys'
- [elpa] 203/287: Fix the C-e test, (continued)
- [elpa] 203/287: Fix the C-e test, Matthew Fidler, 2014/07/02
- [elpa] 198/287: More flexible redo, Issue #239, Matthew Fidler, 2014/07/02
- [elpa] 96/287: Fix shortcut keys again., Matthew Fidler, 2014/07/02
- [elpa] 199/287: Update ergoemacs-test-layout so it wont parse the function, Matthew Fidler, 2014/07/02
- [elpa] 135/287: Fix defcustom, Matthew Fidler, 2014/07/02
- [elpa] 104/287: Fix many compiler warnings with ergoemacs-advices.el, Matthew Fidler, 2014/07/02
- [elpa] 97/287: First attempt for Cask without Cask (I'm on windows), Matthew Fidler, 2014/07/02
- [elpa] 116/287: Take out compiler warnings from ergoemacs-shortcuts.el, Matthew Fidler, 2014/07/02
- [elpa] 89/287: Fix most keybinding issues, Matthew Fidler, 2014/07/02
- [elpa] 113/287: No more warnings for ergoemacs-modal.el; mapc->dolist, Matthew Fidler, 2014/07/02
- [elpa] 132/287: Be more careful when redefining maps.,
Matthew Fidler <=
- [elpa] 129/287: Fix compiler warnings for ergoemacs-unbind.el, Matthew Fidler, 2014/07/02
- [elpa] 140/287: Fix Byte Compile Warnings, Matthew Fidler, 2014/07/02
- [elpa] 117/287: Take out compiler errors from ergoemacs-test, Matthew Fidler, 2014/07/02
- [elpa] 93/287: Add ergoemacs-shortcut-emulation-mode-map-alist, Matthew Fidler, 2014/07/02
- [elpa] 119/287: Fix byte-compile warnings for ergoemacs-macros.el, Matthew Fidler, 2014/07/02
- [elpa] 67/287: Completely use the object, Matthew Fidler, 2014/07/02
- [elpa] 134/287: Finalize tests; Passes on windows, Matthew Fidler, 2014/07/02
- [elpa] 101/287: Fix Cask setup?, Matthew Fidler, 2014/07/02
- [elpa] 133/287: Remove byte compiled load warning, Matthew Fidler, 2014/07/02
- [elpa] 202/287: Allow hooks in themes; save settings on exit (Issue #234), Matthew Fidler, 2014/07/02