[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 66/77: Fix #9: Work around fixed bug in thingatpt.el
From: |
Leo Liu |
Subject: |
[elpa] 66/77: Fix #9: Work around fixed bug in thingatpt.el |
Date: |
Sat, 05 Apr 2014 04:08:26 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 2a545edf1ea159d052339a2bcbd0cfa858c1523d
Author: Leo Liu <address@hidden>
Date: Wed Nov 6 17:17:25 2013 +0800
Fix #9: Work around fixed bug in thingatpt.el
Upstream bug report http://debbugs.gnu.org/15808
---
easy-kill.el | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/easy-kill.el b/easy-kill.el
index a105777..f8db73f 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -145,11 +145,15 @@ Do nothing if `easy-kill-inhibit-message' is non-nil."
(overlay-put i 'as (propertize " " 'face 'easy-kill-origin))
(overlay-put o 'origin-indicator i)))
(setq easy-kill-candidate o)
- (let ((easy-kill-inhibit-message t))
- (dolist (thing easy-kill-try-things)
- (easy-kill-thing thing n)
- (or (string= (easy-kill-candidate) "")
- (return))))
+ (save-restriction
+ ;; Work around http://debbugs.gnu.org/15808; not needed in 24.4.
+ (narrow-to-region (max (point-min) (- (point) 1000))
+ (min (point-max) (+ (point) 1000)))
+ (let ((easy-kill-inhibit-message t))
+ (dolist (thing easy-kill-try-things)
+ (easy-kill-thing thing n)
+ (or (string= (easy-kill-candidate) "")
+ (return)))))
o))
(defun easy-kill-indicate-origin ()
- [elpa] 63/77: Teach easy-kill-activate-keymap to handle command remapping, (continued)
- [elpa] 63/77: Teach easy-kill-activate-keymap to handle command remapping, Leo Liu, 2014/04/05
- [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 <=
- [elpa] 71/77: In no case should easy-kill-activate-keymap err, Leo Liu, 2014/04/05
- [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