diff options
| author | Richard M. Stallman | 2006-05-21 22:56:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-05-21 22:56:44 +0000 |
| commit | 214a3db00c7b79edc53cc1a2a310442ce9e86ffa (patch) | |
| tree | f0b04c83f2cbd293a7ccfb7c6f511ad930359a02 | |
| parent | 3fe358978b87e271cb69d56a93d883d02616507f (diff) | |
| download | emacs-214a3db00c7b79edc53cc1a2a310442ce9e86ffa.tar.gz emacs-214a3db00c7b79edc53cc1a2a310442ce9e86ffa.zip | |
(kill-region): Interactively, pass point, then mark.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/simple.el | 4 |
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 @@ | |||
| 1 | 2006-05-21 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * simple.el (kill-region): Interactively, pass point, then mark. | ||
| 4 | |||
| 1 | 2006-05-22 Thien-Thi Nguyen <ttn@gnu.org> | 5 | 2006-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. | |||
| 2549 | In Lisp code, optional third arg YANK-HANDLER, if non-nil, | 2549 | In Lisp code, optional third arg YANK-HANDLER, if non-nil, |
| 2550 | specifies the yank-handler text property to be set on the killed | 2550 | specifies the yank-handler text property to be set on the killed |
| 2551 | text. See `insert-for-yank'." | 2551 | text. 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 |