diff options
| author | Juri Linkov | 2007-08-21 20:05:14 +0000 |
|---|---|---|
| committer | Juri Linkov | 2007-08-21 20:05:14 +0000 |
| commit | 4bf988000460061ba7a5857fc9ec8d16f48c2870 (patch) | |
| tree | 56713c38ed61b1e25da4d5d3a8673ef313aef3cd | |
| parent | 67755cc4839b19875f9cf8ae5b5c48ea81b6649e (diff) | |
| download | emacs-4bf988000460061ba7a5857fc9ec8d16f48c2870.tar.gz emacs-4bf988000460061ba7a5857fc9ec8d16f48c2870.zip | |
(cua-paste): Use `mouse-region-match' instead of checking last-command.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emulation/cua-base.el | 9 |
2 files changed, 9 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9569de20af0..274533830df 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2007-08-21 Juri Linkov <juri@jurta.org> | 1 | 2007-08-21 Juri Linkov <juri@jurta.org> |
| 2 | 2 | ||
| 3 | * delsel.el (delete-selection-pre-hook): | ||
| 4 | * emulation/cua-base.el (cua-paste): Use `mouse-region-match' | ||
| 5 | instead of checking last-command. | ||
| 6 | |||
| 7 | 2007-08-21 Juri Linkov <juri@jurta.org> | ||
| 8 | |||
| 3 | * loadup.el: Preload "button". | 9 | * loadup.el: Preload "button". |
| 4 | 10 | ||
| 5 | 2007-08-21 Stefan Monnier <monnier@iro.umontreal.ca> | 11 | 2007-08-21 Stefan Monnier <monnier@iro.umontreal.ca> |
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index 6e420b36242..98a9b4d6361 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el | |||
| @@ -907,14 +907,11 @@ If global mark is active, copy from register or one character." | |||
| 907 | (setq paste-lines nil))) ;; paste all | 907 | (setq paste-lines nil))) ;; paste all |
| 908 | ;; Before a yank command, make sure we don't yank the | 908 | ;; Before a yank command, make sure we don't yank the |
| 909 | ;; head of the kill-ring that really comes from the | 909 | ;; head of the kill-ring that really comes from the |
| 910 | ;; currently active region we are going to delete | 910 | ;; currently active region we are going to delete. |
| 911 | ;; (when last-command is one that uses copy-region-as-kill | 911 | ;; That would make yank a no-op. |
| 912 | ;; or kill-new). That would make yank a no-op. | ||
| 913 | (if (and (string= (filter-buffer-substring (point) (mark)) | 912 | (if (and (string= (filter-buffer-substring (point) (mark)) |
| 914 | (car kill-ring)) | 913 | (car kill-ring)) |
| 915 | (memq last-command | 914 | (mouse-region-match)) |
| 916 | '(mouse-set-region mouse-drag-region | ||
| 917 | mouse-save-then-kill mouse-secondary-save-then-kill))) | ||
| 918 | (current-kill 1)) | 915 | (current-kill 1)) |
| 919 | (cua-delete-region))) | 916 | (cua-delete-region))) |
| 920 | (cond | 917 | (cond |