[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 09/13: Fix last change for the case of no thing at point
From: |
Leo Liu |
Subject: |
[elpa] 09/13: Fix last change for the case of no thing at point |
Date: |
Sun, 13 Apr 2014 07:34:52 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 98a7d5e9189067679fc5b561fd571b5936eece00
Author: Leo Liu <address@hidden>
Date: Sat Apr 12 18:14:16 2014 +0800
Fix last change for the case of no thing at point
---
easy-kill.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/easy-kill.el b/easy-kill.el
index 924ea91..8cb3450 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -157,6 +157,7 @@ The value is the function's symbol if non-nil."
(defun easy-kill-pair-to-list (pair)
(pcase pair
+ (`nil nil)
(`(,beg . ,end) (list beg end))
(_ (signal 'wrong-type-argument (list pair "Not a dot pair")))))
@@ -335,7 +336,8 @@ candidate property instead."
(when (and (easy-kill-get thing) (/= n 0))
(let* ((step (if (cl-minusp n) -1 +1))
(thing (easy-kill-get thing))
- (bounds1 (easy-kill-pair-to-list (bounds-of-thing-at-point thing)))
+ (bounds1 (or (easy-kill-pair-to-list (bounds-of-thing-at-point
thing))
+ (list (point) (point))))
(start (easy-kill-get start))
(end (easy-kill-get end))
(front (or (car (cl-set-difference (list end start) bounds1))
- [elpa] branch master updated (d1dd484 -> 47d5d5b), Leo Liu, 2014/04/13
- [elpa] 01/13: Improve README.rst to include some use examples, Leo Liu, 2014/04/13
- [elpa] 02/13: Provide a universal accessor easy-kill-get and use it, Leo Liu, 2014/04/13
- [elpa] 03/13: New function easy-kill-interprogram-cut, Leo Liu, 2014/04/13
- [elpa] 04/13: Show tooltip describing kill candidate and echo js2 node, Leo Liu, 2014/04/13
- [elpa] 05/13: New format of easy-kill-alist to support append separator, Leo Liu, 2014/04/13
- [elpa] 06/13: New function easy-kill-thing-handler for mode-based dispatch, Leo Liu, 2014/04/13
- [elpa] 07/13: Make js2 dependency optional, Leo Liu, 2014/04/13
- [elpa] 08/13: Implement #10: allow `-' to move before first selection, Leo Liu, 2014/04/13
- [elpa] 09/13: Fix last change for the case of no thing at point,
Leo Liu <=
- [elpa] 10/13: Fix #12: don't silenty change to `list' when +/- on `sexp', Leo Liu, 2014/04/13
- [elpa] 11/13: Fix thinko in last change, Leo Liu, 2014/04/13
- [elpa] 12/13: Fix #11: Work around http://debbugs.gnu.org/17247, Leo Liu, 2014/04/13
- [elpa] 13/13: Merge branch 'master' of https://github.com/leoliu/easy-kill, Leo Liu, 2014/04/13