[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 131/287: Be more careful in error checking for ergoemacs-rm-key
From: |
Matthew Fidler |
Subject: |
[elpa] 131/287: Be more careful in error checking for ergoemacs-rm-key |
Date: |
Wed, 02 Jul 2014 14:45:18 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit d17bc71b49586d1a3357d08274c2bdd7660cbc47
Author: Matthew L. Fidler <address@hidden>
Date: Wed Jun 18 09:30:01 2014 -0500
Be more careful in error checking for ergoemacs-rm-key
---
ergoemacs-theme-engine.el | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/ergoemacs-theme-engine.el b/ergoemacs-theme-engine.el
index 5d8ab6b..ed7cf61 100644
--- a/ergoemacs-theme-engine.el
+++ b/ergoemacs-theme-engine.el
@@ -2256,15 +2256,16 @@ Returns new keymap."
(setq new-keymap
(mapcar
(lambda(map)
- (let ((lk (lookup-key map key)) lk2 lk3)
- (cond
- ((integerp lk)
- (setq lk2 (lookup-key (current-global-map) key))
- (setq lk3 (lookup-key map (substring key 0 lk)))
- (when (and (or (commandp lk2) (keymapp lk2)) (not
lk3))
- (define-key map key lk2)))
- (lk
- (define-key map key nil))))
+ (if (not (ignore-errors (keymapp map))) map
+ (let ((lk (lookup-key map key)) lk2 lk3)
+ (cond
+ ((integerp lk)
+ (setq lk2 (lookup-key (current-global-map) key))
+ (setq lk3 (lookup-key map (substring key 0 lk)))
+ (when (and (or (commandp lk2) (keymapp lk2)) (not
lk3))
+ (define-key map key lk2)))
+ (lk
+ (define-key map key nil)))))
map)
new-keymap))
(push 'keymap new-keymap)
- [elpa] 272/287: Merge pull request #252 from akfoss/master, (continued)
- [elpa] 272/287: Merge pull request #252 from akfoss/master, Matthew Fidler, 2014/07/02
- [elpa] 282/287: Fix Extra Quote in Issue #255, Matthew Fidler, 2014/07/02
- [elpa] 283/287: Fix Extra Quotes in Issue #255, Matthew Fidler, 2014/07/02
- [elpa] 277/287: Fix Issue #257 while maintining icicle compatability, Matthew Fidler, 2014/07/02
- [elpa] 284/287: Fix another quote issue for #255, Matthew Fidler, 2014/07/02
- [elpa] 285/287: Change to M-o, Matthew Fidler, 2014/07/02
- [elpa] 275/287: fix a typo in esperanto variable, Matthew Fidler, 2014/07/02
- [elpa] 286/287: Another issue With #255, Matthew Fidler, 2014/07/02
- [elpa] 287/287: v5.14.07 - Changed theme definitions - Allow variables to be set in theme definitions, will be changed when variable exists. - Add Esperanto Layouts (Thanks to akfoss) - Fixed many menu issues (thanks to akfoss for pointing out) - Added travis support - Fixed ergoemacs-layout-programmer-dv (Thanks to bmalhorn) - Dropped support for Emacs 23 - Dropped various themes, plan on repackaging them separately. - Added support for locate-mode in `ergoemacs-open-in-external-app` (thanks to guoci) - Added standard Norweigian QWERTY layout (Thanks to oegly) - Changed ergoemacs-style key translation to be more ubiquitous by changing substitute-command-keys and other advices, Matthew Fidler, 2014/07/02
- [elpa] 103/287: Attempt to restore last test engine and make cask use it, Matthew Fidler, 2014/07/02
- [elpa] 131/287: Be more careful in error checking for ergoemacs-rm-key,
Matthew Fidler <=
- [elpa] 126/287: Documentation update., Matthew Fidler, 2014/07/02
- [elpa] 108/287: Removed stray saved variables, Matthew Fidler, 2014/07/02
- [elpa] 136/287: Fix Makefile to have test-dir, Matthew Fidler, 2014/07/02
- [elpa] 102/287: Require the libraries that may be needed..., Matthew Fidler, 2014/07/02
- [elpa] 128/287: Fix byte compile issues and remove gaia., Matthew Fidler, 2014/07/02
- [elpa] 139/287: Make TEST_DIR first, Matthew Fidler, 2014/07/02
- [elpa] 204/287: Allow ergoemacs-key to work outside of themes again, Matthew Fidler, 2014/07/02
- [elpa] 141/287: Add back ergoemacs-fixed-key and ergoemacs-key compatability., Matthew Fidler, 2014/07/02
- [elpa] 200/287: Declare undo-tree, Matthew Fidler, 2014/07/02
- [elpa] 111/287: No compiler warnings for ergoemacs-menus.el, Matthew Fidler, 2014/07/02