changeset 70826:d3fec44f2362

(kill-region): Interactively, pass point, then mark.
author Richard M. Stallman <rms@gnu.org>
date Sun, 21 May 2006 22:56:27 +0000
parents 7cdd7550b8a1
children 723a5a0b39d0
files lisp/simple.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Sun May 21 22:25:22 2006 +0000
+++ b/lisp/simple.el	Sun May 21 22:56:27 2006 +0000
@@ -2549,7 +2549,9 @@
 In Lisp code, optional third arg YANK-HANDLER, if non-nil,
 specifies the yank-handler text property to be set on the killed
 text.  See `insert-for-yank'."
-  (interactive "r")
+  ;; Pass point first, then mark, because the order matters
+  ;; when calling kill-append.
+  (interactive (list (point) (mark)))
   (condition-case nil
       (let ((string (filter-buffer-substring beg end t)))
 	(when string			;STRING is nil if BEG = END