diff options
| author | Miles Bader | 2006-03-28 23:08:20 +0000 |
|---|---|---|
| committer | Miles Bader | 2006-03-28 23:08:20 +0000 |
| commit | 1ef7e5599f5aa981399221e657ff34e80cc2c1a3 (patch) | |
| tree | 539ff4cf9ea84af29a4e8628d049f3a4253a51f4 /lisp/emulation | |
| parent | 33bd75ec5fb277e58731c8cbbb942cba4d9a9f19 (diff) | |
| parent | 29314e0fd78063d663bd272787d0ea81cc61e38e (diff) | |
| download | emacs-1ef7e5599f5aa981399221e657ff34e80cc2c1a3.tar.gz emacs-1ef7e5599f5aa981399221e657ff34e80cc2c1a3.zip | |
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-49
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 164-184)
- Update from CVS
- Merge from gnus--rel--5.10
- Update from CVS: man/mh-e.texi (Folders): Various edits.
- Update from erc--emacs--0
* gnus--rel--5.10 (patch 62-70)
- Merge from emacs--devo--0
- Update from CVS
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/cua-base.el | 21 | ||||
| -rw-r--r-- | lisp/emulation/cua-rect.el | 12 |
2 files changed, 25 insertions, 8 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index cdc0cb7fea3..e7888dbdb0e 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el | |||
| @@ -370,6 +370,22 @@ and after the region marked by the rectangle to search." | |||
| 370 | (other :tag "Enabled" t)) | 370 | (other :tag "Enabled" t)) |
| 371 | :group 'cua) | 371 | :group 'cua) |
| 372 | 372 | ||
| 373 | (defcustom cua-rectangle-mark-key [(control return)] | ||
| 374 | "Global key used to toggle the cua rectangle mark." | ||
| 375 | :set #'(lambda (symbol value) | ||
| 376 | (set symbol value) | ||
| 377 | (when (and (boundp 'cua--keymaps-initalized) | ||
| 378 | cua--keymaps-initalized) | ||
| 379 | (define-key cua-global-keymap value | ||
| 380 | 'cua-set-rectangle-mark) | ||
| 381 | (when (boundp 'cua--rectangle-keymap) | ||
| 382 | (define-key cua--rectangle-keymap value | ||
| 383 | 'cua-clear-rectangle-mark) | ||
| 384 | (define-key cua--region-keymap value | ||
| 385 | 'cua-toggle-rectangle-mark)))) | ||
| 386 | :type 'key-sequence | ||
| 387 | :group 'cua) | ||
| 388 | |||
| 373 | (defcustom cua-rectangle-modifier-key 'meta | 389 | (defcustom cua-rectangle-modifier-key 'meta |
| 374 | "*Modifier key used for rectangle commands bindings. | 390 | "*Modifier key used for rectangle commands bindings. |
| 375 | On non-window systems, always use the meta modifier. | 391 | On non-window systems, always use the meta modifier. |
| @@ -1275,7 +1291,7 @@ If ARG is the atom `-', scroll upward by nearly full screen." | |||
| 1275 | cua-rectangle-modifier-key | 1291 | cua-rectangle-modifier-key |
| 1276 | 'meta)) | 1292 | 'meta)) |
| 1277 | ;; C-return always toggles rectangle mark | 1293 | ;; C-return always toggles rectangle mark |
| 1278 | (define-key cua-global-keymap [(control return)] 'cua-set-rectangle-mark) | 1294 | (define-key cua-global-keymap cua-rectangle-mark-key 'cua-set-rectangle-mark) |
| 1279 | (unless (eq cua--rectangle-modifier-key 'meta) | 1295 | (unless (eq cua--rectangle-modifier-key 'meta) |
| 1280 | (cua--M/H-key cua-global-keymap ?\s 'cua-set-rectangle-mark) | 1296 | (cua--M/H-key cua-global-keymap ?\s 'cua-set-rectangle-mark) |
| 1281 | (define-key cua-global-keymap | 1297 | (define-key cua-global-keymap |
| @@ -1401,7 +1417,8 @@ only want to highlight the region when it is selected using a | |||
| 1401 | shifted movement key, set `cua-highlight-region-shift-only'." | 1417 | shifted movement key, set `cua-highlight-region-shift-only'." |
| 1402 | :global t | 1418 | :global t |
| 1403 | :group 'cua | 1419 | :group 'cua |
| 1404 | :set-after '(cua-enable-modeline-indications cua-rectangle-modifier-key) | 1420 | :set-after '(cua-enable-modeline-indications |
| 1421 | cua-rectangle-mark-key cua-rectangle-modifier-key) | ||
| 1405 | :require 'cua-base | 1422 | :require 'cua-base |
| 1406 | :link '(emacs-commentary-link "cua-base.el") | 1423 | :link '(emacs-commentary-link "cua-base.el") |
| 1407 | (setq mark-even-if-inactive t) | 1424 | (setq mark-even-if-inactive t) |
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el index 120866e7925..53056d667fb 100644 --- a/lisp/emulation/cua-rect.el +++ b/lisp/emulation/cua-rect.el | |||
| @@ -799,8 +799,8 @@ If command is repeated at same position, delete the rectangle." | |||
| 799 | (if cua--virtual-edges-debug ?, ?\s)) | 799 | (if cua--virtual-edges-debug ?, ?\s)) |
| 800 | 'face rface)) | 800 | 'face rface)) |
| 801 | (if (cua--rectangle-right-side) | 801 | (if (cua--rectangle-right-side) |
| 802 | (put-text-property (1- (length ms)) (length ms) 'cursor t ms) | 802 | (put-text-property (1- (length ms)) (length ms) 'cursor 2 ms) |
| 803 | (put-text-property 0 1 'cursor t ms)) | 803 | (put-text-property 0 1 'cursor 2 ms)) |
| 804 | (setq bs (concat bs ms)) | 804 | (setq bs (concat bs ms)) |
| 805 | (setq rface nil)) | 805 | (setq rface nil)) |
| 806 | (t | 806 | (t |
| @@ -810,8 +810,8 @@ If command is repeated at same position, delete the rectangle." | |||
| 810 | (if cua--virtual-edges-debug ?~ ?\s)) | 810 | (if cua--virtual-edges-debug ?~ ?\s)) |
| 811 | 'face rface)) | 811 | 'face rface)) |
| 812 | (if (cua--rectangle-right-side) | 812 | (if (cua--rectangle-right-side) |
| 813 | (put-text-property (1- (length as)) (length as) 'cursor t as) | 813 | (put-text-property (1- (length as)) (length as) 'cursor 2 as) |
| 814 | (put-text-property 0 1 'cursor t as)) | 814 | (put-text-property 0 1 'cursor 2 as)) |
| 815 | (if (/= pr le) | 815 | (if (/= pr le) |
| 816 | (setq e (1- e)))))))) | 816 | (setq e (1- e)))))))) |
| 817 | ;; Trim old leading overlays. | 817 | ;; Trim old leading overlays. |
| @@ -1413,8 +1413,8 @@ With prefix arg, indent to that column." | |||
| 1413 | (cua--M/H-key cua--rectangle-keymap key cmd)) | 1413 | (cua--M/H-key cua--rectangle-keymap key cmd)) |
| 1414 | 1414 | ||
| 1415 | (defun cua--init-rectangles () | 1415 | (defun cua--init-rectangles () |
| 1416 | (define-key cua--rectangle-keymap [(control return)] 'cua-clear-rectangle-mark) | 1416 | (define-key cua--rectangle-keymap cua-rectangle-mark-key 'cua-clear-rectangle-mark) |
| 1417 | (define-key cua--region-keymap [(control return)] 'cua-toggle-rectangle-mark) | 1417 | (define-key cua--region-keymap cua-rectangle-mark-key 'cua-toggle-rectangle-mark) |
| 1418 | (unless (eq cua--rectangle-modifier-key 'meta) | 1418 | (unless (eq cua--rectangle-modifier-key 'meta) |
| 1419 | (cua--rect-M/H-key ?\s 'cua-clear-rectangle-mark) | 1419 | (cua--rect-M/H-key ?\s 'cua-clear-rectangle-mark) |
| 1420 | (cua--M/H-key cua--region-keymap ?\s 'cua-toggle-rectangle-mark)) | 1420 | (cua--M/H-key cua--region-keymap ?\s 'cua-toggle-rectangle-mark)) |