[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 71/77: In no case should easy-kill-activate-keymap err
From: |
Leo Liu |
Subject: |
[elpa] 71/77: In no case should easy-kill-activate-keymap err |
Date: |
Sat, 05 Apr 2014 04:08:27 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 81d7ca20db812d7ddd6716119bcae36c3bc4cbb6
Author: Leo Liu <address@hidden>
Date: Thu Dec 12 17:55:55 2013 +0800
In no case should easy-kill-activate-keymap err
---
easy-kill.el | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/easy-kill.el b/easy-kill.el
index cdb78c9..a42e2a4 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -345,18 +345,22 @@ candidate property instead."
map
(lambda ()
;; Prevent any error from activating the keymap forever.
- (with-demoted-errors
- (or (and (not (and (symbolp this-command)
- (get this-command 'easy-kill-exit)))
- (or (eq this-command (lookup-key map
(this-single-command-keys)))
- (let ((cmd (key-binding (this-single-command-keys) nil
t)))
- (command-remapping cmd nil (list map)))))
- (ignore
- (easy-kill-destroy-candidate)
- (unless (or easy-kill-mark
- (and (symbolp this-command)
- (get this-command 'easy-kill-exit)))
- (easy-kill-save-candidate)))))))))
+ (condition-case err
+ (or (and (not (and (symbolp this-command)
+ (get this-command 'easy-kill-exit)))
+ (or (eq this-command
+ (lookup-key map (this-single-command-keys)))
+ (let ((cmd (key-binding
+ (this-single-command-keys) nil t)))
+ (command-remapping cmd nil (list map)))))
+ (ignore
+ (easy-kill-destroy-candidate)
+ (unless (or easy-kill-mark
+ (and (symbolp this-command)
+ (get this-command 'easy-kill-exit)))
+ (easy-kill-save-candidate))))
+ (error (message "%s:%s" this-command (error-message-string err))
+ nil))))))
;;;###autoload
(defun easy-kill (&optional n)
- [elpa] 59/77: Doc fix, (continued)
- [elpa] 59/77: Doc fix, Leo Liu, 2014/04/05
- [elpa] 64/77: Teach easy-kill to handle rectangle-mark from Emacs trunk, Leo Liu, 2014/04/05
- [elpa] 56/77: Doc fix and release v0.9.0, Leo Liu, 2014/04/05
- [elpa] 61/77: Optimise easy-kill-thing-forward when n is 0, Leo Liu, 2014/04/05
- [elpa] 62/77: Small tweak to easy-kill-on-nxml-element, Leo Liu, 2014/04/05
- [elpa] 60/77: Make easy-kill-on-buffer-file-name do nothing in easy-mark, Leo Liu, 2014/04/05
- [elpa] 68/77: Fix easy-kill-append to update clipboard, Leo Liu, 2014/04/05
- [elpa] 65/77: Fix #8: Don't strip trailing blank chars, Leo Liu, 2014/04/05
- [elpa] 67/77: New handler for defun-name and bind it to `D', Leo Liu, 2014/04/05
- [elpa] 66/77: Fix #9: Work around fixed bug in thingatpt.el, Leo Liu, 2014/04/05
- [elpa] 71/77: In no case should easy-kill-activate-keymap err,
Leo Liu <=
- [elpa] 70/77: Adapt to upstream change, Leo Liu, 2014/04/05
- [elpa] 72/77: Rename easy-kill-backward-down to easy-kill-forward-down, Leo Liu, 2014/04/05
- [elpa] 73/77: Support list expand/shrink on js2 nodes, Leo Liu, 2014/04/05
- [elpa] 74/77: Require cl-lib, Leo Liu, 2014/04/05
- [elpa] 76/77: Add easy-kill to externals-list, Leo Liu, 2014/04/05
- [elpa] 77/77: Merge easy-kill as packages/easy-kill, Leo Liu, 2014/04/05
- [elpa] 75/77: Cleanup and preparation for inclusion in GNU ELPA, Leo Liu, 2014/04/05
- [elpa] 69/77: Consolidate easy-mark and easy-mark-sexp into one command, Leo Liu, 2014/04/05