[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 12/13: Fix #11: Work around http://debbugs.gnu.org/17247
From: |
Leo Liu |
Subject: |
[elpa] 12/13: Fix #11: Work around http://debbugs.gnu.org/17247 |
Date: |
Sun, 13 Apr 2014 07:35:28 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 254bda0603c7613a9fa5f3c4ff0ccd2ae7c60cb6
Author: Leo Liu <address@hidden>
Date: Sun Apr 13 11:42:51 2014 +0800
Fix #11: Work around http://debbugs.gnu.org/17247
---
easy-kill.el | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/easy-kill.el b/easy-kill.el
index c91bd4c..8195bfc 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -349,8 +349,15 @@ candidate property instead."
(new-front (save-excursion
(goto-char front)
(with-demoted-errors
- (cl-dotimes (_ (abs n))
- (forward-thing thing step)))
+ (cl-labels ((forward-defun (s)
+ (pcase s
+ (`-1
(beginning-of-defun 1))
+ (`+1 (end-of-defun
1)))))
+ (dotimes (_ (abs n))
+ ;; Work around http://debbugs.gnu.org/17247
+ (if (eq thing 'defun)
+ (forward-defun step)
+ (forward-thing thing step)))))
(point))))
(pcase (and (/= front new-front)
(sort (cons new-front bounds1) #'<))
- [elpa] 02/13: Provide a universal accessor easy-kill-get and use it, (continued)
- [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, 2014/04/13
- [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 <=
- [elpa] 13/13: Merge branch 'master' of https://github.com/leoliu/easy-kill, Leo Liu, 2014/04/13