]> git.eshelyaron.com Git - emacs.git/commitdiff
(kill-region): Interactively, pass point, then mark.
authorRichard M. Stallman <rms@gnu.org>
Sun, 21 May 2006 22:56:44 +0000 (22:56 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 21 May 2006 22:56:44 +0000 (22:56 +0000)
lisp/ChangeLog
lisp/simple.el

index 2431a0954d85a69a055c8d055e0951dabaf675e5..bf6f64f922747d2c03f0a3d62f5d2dd534ba2da2 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-21  Richard Stallman  <rms@gnu.org>
+
+       * simple.el (kill-region): Interactively, pass point, then mark.
+
 2006-05-22  Thien-Thi Nguyen  <ttn@gnu.org>
 
        * emacs-lisp/ewoc.el (ewoc-create): Add autoload cookie.
index 3efffbce416e57b5c3529fd77491a0aabdc7c332..cee04f4a961b017c855b5652b5e7eb97f62e3c7d 100644 (file)
@@ -2549,7 +2549,9 @@ to make one entry in the kill ring.
 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