[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 50/77: Fix last change to easy-kill-backward-up
From: |
Leo Liu |
Subject: |
[elpa] 50/77: Fix last change to easy-kill-backward-up |
Date: |
Sat, 05 Apr 2014 04:08:22 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 4b9c146fc82424e9e90d1632f2c0ff73fe917880
Author: Leo Liu <address@hidden>
Date: Mon Oct 14 16:29:32 2013 +0800
Fix last change to easy-kill-backward-up
---
easy-kill.el | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/easy-kill.el b/easy-kill.el
index 37ee6c8..cb8c70b 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -350,7 +350,9 @@ Temporally activate additional key bindings as follows:
(overlay-put easy-kill-candidate 'thing 'sexp)
(easy-kill-thing 'sexp n))))
-;;; Extended things
+;;;; Extended things
+
+;;; Handler for `buffer-file-name'.
(defun easy-kill-on-buffer-file-name (n)
"Get `buffer-file-name' or `default-directory'.
@@ -365,6 +367,8 @@ party; +, full path."
(_ file))))
(easy-kill-adjust-candidate 'buffer-file-name text)))))
+;;; Handler for `url'.
+
(defun easy-kill-on-url (&optional _n)
"Get url at point or from char properties.
Char properties `help-echo', `shr-url' and `w3m-href-anchor' are
@@ -387,13 +391,15 @@ inspected."
(easy-kill-adjust-candidate 'url url)
(return url)))))))
+;;; Handler for `list'.
+
(defvar up-list-fn) ; Dynamically bound
(defun easy-kill-backward-up ()
(let ((ppss (syntax-ppss)))
(condition-case nil
(progn
- (funcall (or up-list-fn #'up-list) -1)
+ (funcall (or (bound-and-true-p up-list-fn) #'up-list) -1)
;; `up-list' may jump to another string.
(when (and (nth 3 ppss) (< (point) (nth 8 ppss)))
(goto-char (nth 8 ppss))))
- [elpa] 42/77: Must reference the actual object in easy-kill-candidate, (continued)
- [elpa] 42/77: Must reference the actual object in easy-kill-candidate, Leo Liu, 2014/04/05
- [elpa] 43/77: Add new command easy-mark-sexp, Leo Liu, 2014/04/05
- [elpa] 41/77: Tell easy-kill-append to deactivate-mark, Leo Liu, 2014/04/05
- [elpa] 44/77: Fix #7: Add new command easy-kill-abort for key C-g, Leo Liu, 2014/04/05
- [elpa] 45/77: Better origin indicator by easy-kill-indicate-origin, Leo Liu, 2014/04/05
- [elpa] 46/77: Teach easy-kill-abort to deactivate mark immediately, Leo Liu, 2014/04/05
- [elpa] 47/77: Doc fix and small tweaks, Leo Liu, 2014/04/05
- [elpa] 49/77: Work with `sexp' and `list' in nxml mode, Leo Liu, 2014/04/05
- [elpa] 52/77: Use filter-buffer-substring, Leo Liu, 2014/04/05
- [elpa] 51/77: Fix quoting error in face definitions, Leo Liu, 2014/04/05
- [elpa] 50/77: Fix last change to easy-kill-backward-up,
Leo Liu <=
- [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