[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 39/77: Fix doc and buglets in last change
From: |
Leo Liu |
Subject: |
[elpa] 39/77: Fix doc and buglets in last change |
Date: |
Sat, 05 Apr 2014 04:08:18 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 9752842b9db1cf6f27518a7ed1d67a36259083f3
Author: Leo Liu <address@hidden>
Date: Fri Oct 11 13:09:20 2013 +0800
Fix doc and buglets in last change
---
README.rst | 10 ++++++----
easy-kill.el | 7 ++++---
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/README.rst b/README.rst
index 9192264..0c8b565 100644
--- a/README.rst
+++ b/README.rst
@@ -2,9 +2,11 @@
Kill Things Easily in Emacs
=============================
-``easy-kill`` let users kill things at point without moving point. Its
-goal is to be a drop-in replacement for ``kill-ring-save``. It tries
-in order:
+Commands ``easy-kill`` and ``easy-mark`` let users kill/mark things at
+point easily.
+
+``easy-kill`` is a drop-in replacement for ``kill-ring-save``. It
+tries in order:
#. current region if active
#. url at point (snarf char properties ``help-echo``, ``shr-url``,
@@ -12,7 +14,7 @@ in order:
#. email at point
#. current line
-Keys (customisable) immediately following ``M-w``:
+Keys (customisable) immediately following ``easy-kill``:
#. ``w`` -> word at point
#. ``s`` -> sexp at point
diff --git a/easy-kill.el b/easy-kill.el
index 3f22f17..04cb42c 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -196,8 +196,8 @@ candidate property instead."
(forward-thing thing direction)
(when (<= (point) start)
(forward-thing thing 1)
- (return)))
- (point)))))
+ (return))))
+ (point))))
(when (/= end new-end)
(easy-kill-adjust-candidate thing nil new-end)
t)))))
@@ -298,6 +298,7 @@ Temporally activate additional key bindings as follows:
;;;###autoload
(defun easy-mark (&optional n)
+ "Like `easy-kill' (which see) but for marking."
(interactive "p")
(setq easy-kill-mark t)
(easy-kill-init-candidate n)
@@ -322,7 +323,7 @@ party; +, full path."
"Get url at point or from char properties.
Char properties `help-echo', `shr-url' and `w3m-href-anchor' are
inspected."
- (if (bounds-of-thing-at-point 'url)
+ (if (or easy-kill-mark (bounds-of-thing-at-point 'url))
(easy-kill-thing 'url nil nil t)
(let ((get-url (lambda (text)
(when (stringp text)
- [elpa] 31/77: Simplify the interactive form of easy-kill-thing, (continued)
- [elpa] 31/77: Simplify the interactive form of easy-kill-thing, Leo Liu, 2014/04/05
- [elpa] 28/77: [remap kill-ring-save] should be a better key binding for this feature., Leo Liu, 2014/04/05
- [elpa] 35/77: Doc fix and release v0.8.0, Leo Liu, 2014/04/05
- [elpa] 36/77: New variable easy-kill-base-map for customising key bindings, Leo Liu, 2014/04/05
- [elpa] 33/77: Support append kill for append-next-kill and easy-kill, Leo Liu, 2014/04/05
- [elpa] 34/77: Better support for defining commands that exit easy-kill, Leo Liu, 2014/04/05
- [elpa] 30/77: Merge pull request #6 from knu/usage-remap, Leo Liu, 2014/04/05
- [elpa] 32/77: Improve easy-kill-bounds-of-list, Leo Liu, 2014/04/05
- [elpa] 37/77: Make easy-kill-backward-up work better when in strings, Leo Liu, 2014/04/05
- [elpa] 38/77: Fix #3: Add command easy-mark for marking, Leo Liu, 2014/04/05
- [elpa] 39/77: Fix doc and buglets in last change,
Leo Liu <=
- [elpa] 40/77: Some improvements based on comments in #3, Leo Liu, 2014/04/05
- [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