aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-05-21 22:56:44 +0000
committerRichard M. Stallman2006-05-21 22:56:44 +0000
commit214a3db00c7b79edc53cc1a2a310442ce9e86ffa (patch)
treef0b04c83f2cbd293a7ccfb7c6f511ad930359a02
parent3fe358978b87e271cb69d56a93d883d02616507f (diff)
downloademacs-214a3db00c7b79edc53cc1a2a310442ce9e86ffa.tar.gz
emacs-214a3db00c7b79edc53cc1a2a310442ce9e86ffa.zip
(kill-region): Interactively, pass point, then mark.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/simple.el4
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2431a0954d8..bf6f64f9227 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12006-05-21 Richard Stallman <rms@gnu.org>
2
3 * simple.el (kill-region): Interactively, pass point, then mark.
4
12006-05-22 Thien-Thi Nguyen <ttn@gnu.org> 52006-05-22 Thien-Thi Nguyen <ttn@gnu.org>
2 6
3 * emacs-lisp/ewoc.el (ewoc-create): Add autoload cookie. 7 * emacs-lisp/ewoc.el (ewoc-create): Add autoload cookie.
diff --git a/lisp/simple.el b/lisp/simple.el
index 3efffbce416..cee04f4a961 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2549,7 +2549,9 @@ to make one entry in the kill ring.
2549In Lisp code, optional third arg YANK-HANDLER, if non-nil, 2549In Lisp code, optional third arg YANK-HANDLER, if non-nil,
2550specifies the yank-handler text property to be set on the killed 2550specifies the yank-handler text property to be set on the killed
2551text. See `insert-for-yank'." 2551text. See `insert-for-yank'."
2552 (interactive "r") 2552 ;; Pass point first, then mark, because the order matters
2553 ;; when calling kill-append.
2554 (interactive (list (point) (mark)))
2553 (condition-case nil 2555 (condition-case nil
2554 (let ((string (filter-buffer-substring beg end t))) 2556 (let ((string (filter-buffer-substring beg end t)))
2555 (when string ;STRING is nil if BEG = END 2557 (when string ;STRING is nil if BEG = END