[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 15/77: Some string and comment fixes
From: |
Leo Liu |
Subject: |
[elpa] 15/77: Some string and comment fixes |
Date: |
Sat, 05 Apr 2014 04:08:13 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit fc448fd1efed15078c3b406915ae8ca29b76011d
Author: Leo Liu <address@hidden>
Date: Mon Oct 7 19:37:50 2013 +0800
Some string and comment fixes
---
easy-kill.el | 21 ++++++++++-----------
1 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/easy-kill.el b/easy-kill.el
index 0966b2f..1571ff1 100644
--- a/easy-kill.el
+++ b/easy-kill.el
@@ -73,7 +73,7 @@ CHAR is used immediately following `easy-kill' to select
THING."
(cond ((stringp s)
(if (string-match "[ \t\f\r\n]*\\'" s)
(substring s 0 (match-beginning 0))
- (error "`string-match' failed in `easy-kill-strip'")))
+ (error "`string-match' failed in `easy-kill-strip-trailing'")))
(t s)))
(defvar easy-kill-exit nil
@@ -148,10 +148,10 @@ candidate property instead."
(interactive)
(let ((beg (overlay-start easy-kill-candidate))
(end (overlay-end easy-kill-candidate)))
- (if (/= beg end)
- (kill-region beg end)
- (easy-kill-message-nolog "Region empty")))
- (setq easy-kill-exit t))
+ (if (= beg end)
+ (easy-kill-message-nolog "Empty region")
+ (setq easy-kill-exit t)
+ (kill-region beg end))))
(defun easy-kill-thing (thing &optional n inhibit-handler)
(interactive
@@ -186,7 +186,7 @@ candidate property instead."
(when easy-kill-candidate
;; Do not modify the clipboard here because it will
;; intercept pasting from other programs and
- ;; `easy-kill-remember' already did the work.
+ ;; `easy-kill-adjust-candidate' already did the work.
(let ((interprogram-cut-function nil)
(interprogram-paste-function nil)
(candidate (easy-kill-candidate)))
@@ -199,14 +199,13 @@ candidate property instead."
;;;###autoload
(defun easy-kill (&optional n)
"Kill thing at point in the order of region, url, email and line.
-Immediately following this additional key bindings are temporally
-activated:
+Temporally activate additional key bindings as follows:
- letters => select things (according to `easy-kill-alist');
+ letters => select or enlarge things according to `easy-kill-alist';
0..9 => enlarge current selection by that number;
+,=/- => enlarge or shrink current selection by 1;
- C-w => kill current selection
- others => save current selection to kill ring and exit"
+ C-w => kill current selection;
+ others => save current selection to kill ring and exit."
(interactive "p")
(setq easy-kill-candidate
(let ((o (make-overlay (point) (point))))
- [elpa] 08/77: Give overlay by easy-kill-candidate higher priority, (continued)
- [elpa] 08/77: Give overlay by easy-kill-candidate higher priority, Leo Liu, 2014/04/05
- [elpa] 06/77: Various bug fixes and improvements, Leo Liu, 2014/04/05
- [elpa] 09/77: Restore the ability to inspect char properties for URLs, Leo Liu, 2014/04/05
- [elpa] 04/77: Use overlay for storing kill candidate and change +/-, Leo Liu, 2014/04/05
- [elpa] 11/77: Minor tweaks to easy-kill-on-url, Leo Liu, 2014/04/05
- [elpa] 12/77: Tweak the definition of thing `region', Leo Liu, 2014/04/05
- [elpa] 13/77: New command easy-kill-region to kill current selection, Leo Liu, 2014/04/05
- [elpa] 10/77: New function easy-kill-adjust-candidate and doc fix, Leo Liu, 2014/04/05
- [elpa] 16/77: Make function easy-kill-candidate always return string, Leo Liu, 2014/04/05
- [elpa] 17/77: Fix error: (args-out-of-range 1009 1035), Leo Liu, 2014/04/05
- [elpa] 15/77: Some string and comment fixes,
Leo Liu <=
- [elpa] 23/77: Use parse-partial-sexp in easy-kill-bounds-of-list, Leo Liu, 2014/04/05
- [elpa] 20/77: Replace `enlarge' with `expand' in strings and comments, Leo Liu, 2014/04/05
- [elpa] 19/77: Add lispy treatment for +/- on list and sexp, Leo Liu, 2014/04/05
- [elpa] 14/77: Doc fix and release v0.7.0, Leo Liu, 2014/04/05
- [elpa] 22/77: Handle the case when overlay has already been destroyed, Leo Liu, 2014/04/05
- [elpa] 25/77: Fix thinko in easy-kill-backward-down, Leo Liu, 2014/04/05
- [elpa] 21/77: New command easy-kill-mark-region, Leo Liu, 2014/04/05
- [elpa] 24/77: Improve list expand/shrink support in smie-based modes, Leo Liu, 2014/04/05
- [elpa] 18/77: Consolidate all kill features in easy-kill-thing, Leo Liu, 2014/04/05
- [elpa] 26/77: Fix #2: just call kill-ring-save when region is active, Leo Liu, 2014/04/05