diff options
| author | Stefan Monnier | 2013-12-08 01:24:54 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2013-12-08 01:24:54 -0500 |
| commit | 6f8dfccfe3ec3e1137e712b49da12c8a9ab4bc85 (patch) | |
| tree | ebe79741b1a81433ff73bd666e07626c1982bfbb /lisp/ChangeLog | |
| parent | 95b3d095f8791c9d0a2007f43fa4731401c64c87 (diff) | |
| download | emacs-6f8dfccfe3ec3e1137e712b49da12c8a9ab4bc85.tar.gz emacs-6f8dfccfe3ec3e1137e712b49da12c8a9ab4bc85.zip | |
Use delete-selection-mode in cua-mode.
* lisp/emulation/cua-base.el (cua--prefix-copy-handler)
(cua--prefix-cut-handler): Rely on region-extract-function rather than
checking cua--rectangle.
(cua-delete-region): Use region-extract-function.
(cua-replace-region): Delete function.
(cua-copy-region, cua-cut-region): Obey region-extract-function.
(cua--pre-command-handler-1): Don't do the delete-selection thing.
(cua--self-insert-char-p): Ignore `self-insert-iso'.
(cua--init-keymaps): Don't remap delete-selection commands.
(cua-mode): Use delete-selection-mode instead of rolling our own.
* lisp/emulation/cua-rect.el (cua--rectangle-region-extract): New function.
(region-extract-function): Use it.
(cua-mouse-save-then-kill-rectangle): Use cua-copy-region.
(cua-copy-rectangle, cua-cut-rectangle, cua-delete-rectangle):
Delete functions.
(cua--init-rectangles): Don't re-remap copy-region-as-kill,
kill-ring-save, kill-region, delete-char, delete-forward-char.
Ignore self-insert-iso.
* lisp/menu-bar.el (clipboard-kill-ring-save, clipboard-kill-region):
Obey region-extract-function.
* lisp/emulation/cua-gmrk.el (cua--init-global-mark):
Ignore `self-insert-iso'.
Fixes: debbugs:16085
Diffstat (limited to 'lisp/ChangeLog')
| -rw-r--r-- | lisp/ChangeLog | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fafeb959d43..1e384f25579 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,32 @@ | |||
| 1 | 2013-12-08 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2013-12-08 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * emulation/cua-rect.el (cua--rectangle-region-extract): New function. | ||
| 4 | (region-extract-function): Use it. | ||
| 5 | (cua-mouse-save-then-kill-rectangle): Use cua-copy-region. | ||
| 6 | (cua-copy-rectangle, cua-cut-rectangle, cua-delete-rectangle): | ||
| 7 | Delete functions. | ||
| 8 | (cua--init-rectangles): Don't re-remap copy-region-as-kill, | ||
| 9 | kill-ring-save, kill-region, delete-char, delete-forward-char. | ||
| 10 | Ignore self-insert-iso. | ||
| 11 | |||
| 12 | * emulation/cua-gmrk.el (cua--init-global-mark): | ||
| 13 | Ignore `self-insert-iso'. | ||
| 14 | |||
| 15 | * emulation/cua-base.el (cua--prefix-copy-handler) | ||
| 16 | (cua--prefix-cut-handler): Rely on region-extract-function rather than | ||
| 17 | checking cua--rectangle. | ||
| 18 | (cua-delete-region): Use region-extract-function. | ||
| 19 | (cua-replace-region): Delete function. | ||
| 20 | (cua-copy-region, cua-cut-region): Obey region-extract-function. | ||
| 21 | (cua--pre-command-handler-1): Don't do the delete-selection thing. | ||
| 22 | (cua--self-insert-char-p): Ignore `self-insert-iso'. | ||
| 23 | (cua--init-keymaps): Don't remap delete-selection commands. | ||
| 24 | (cua-mode): Use delete-selection-mode instead of rolling our own | ||
| 25 | (bug#16085). | ||
| 26 | |||
| 27 | * menu-bar.el (clipboard-kill-ring-save, clipboard-kill-region): | ||
| 28 | Obey region-extract-function. | ||
| 29 | |||
| 3 | Make registers and delete-selection-mode work on rectangles. | 30 | Make registers and delete-selection-mode work on rectangles. |
| 4 | * register.el (describe-register-1): Don't modify the register's value. | 31 | * register.el (describe-register-1): Don't modify the register's value. |
| 5 | (copy-to-register): Obey region-extract-function. | 32 | (copy-to-register): Obey region-extract-function. |