[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 61/77: Optimise easy-kill-thing-forward when n is 0
From: |
Leo Liu |
Subject: |
[elpa] 61/77: Optimise easy-kill-thing-forward when n is 0 |
Date: |
Sat, 05 Apr 2014 04:08:25 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 510b8435710e4895ae0ce8e3b03c32c831ce433f
Author: Leo Liu <address@hidden>
Date: Mon Oct 28 14:42:45 2013 +0800
Optimise easy-kill-thing-forward when n is 0
---
easy-kill.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/easy-kill.el b/easy-kill.el
index a544d8c..ea0aeab 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -255,7 +255,7 @@ candidate property instead."
(direction (if (minusp n) -1 +1))
(start (overlay-start easy-kill-candidate))
(end (overlay-end easy-kill-candidate)))
- (when thing
+ (when (and thing (/= n 0))
(let ((new-end (save-excursion
(goto-char end)
(with-demoted-errors
- [elpa] 55/77: Fix easy-kill-backward-down to handle prefix chars, (continued)
- [elpa] 55/77: Fix easy-kill-backward-down to handle prefix chars, Leo Liu, 2014/04/05
- [elpa] 48/77: Make command easy-kill-append work for easy-mark, Leo Liu, 2014/04/05
- [elpa] 57/77: Fix to always display the string candidate, Leo Liu, 2014/04/05
- [elpa] 58/77: Emacs 24.x compatibility, Leo Liu, 2014/04/05
- [elpa] 53/77: Destroy after-string before goto-char in easy-kill-abort, Leo Liu, 2014/04/05
- [elpa] 54/77: Better control of message emission in an easy-kill session, Leo Liu, 2014/04/05
- [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 <=
- [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, 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