diff options
| author | Kim F. Storm | 2005-06-06 13:19:15 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-06-06 13:19:15 +0000 |
| commit | 1e98d199cc4865bd1a508214f5d15007f85b254f (patch) | |
| tree | 3068d3e3bdd375d690d2570be95fb539b35f17a4 /lisp | |
| parent | c7b96d765214ce3b7176f513fc7fe4f8485945d7 (diff) | |
| download | emacs-1e98d199cc4865bd1a508214f5d15007f85b254f.tar.gz emacs-1e98d199cc4865bd1a508214f5d15007f85b254f.zip | |
* emulation/cua-base.el (cua-rectangle, cua-rectangle-noselect)
(cua-global-mark): Remove -face suffix from face names.
* emulation/cua-gmrk.el (cua--init-global-mark): Remove
cua-global-mark face setup.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/emulation/cua-base.el | 6 | ||||
| -rw-r--r-- | lisp/emulation/cua-gmrk.el | 9 | ||||
| -rw-r--r-- | lisp/emulation/cua-rect.el | 2 |
3 files changed, 6 insertions, 11 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index 6ea6bfb7f3d..fe2b0a892a8 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el | |||
| @@ -384,13 +384,13 @@ and after the region marked by the rectangle to search." | |||
| 384 | :type 'boolean | 384 | :type 'boolean |
| 385 | :group 'cua) | 385 | :group 'cua) |
| 386 | 386 | ||
| 387 | (defface cua-rectangle-face | 387 | (defface cua-rectangle |
| 388 | '((default :inherit region) | 388 | '((default :inherit region) |
| 389 | (((class color)) :foreground "white" :background "maroon")) | 389 | (((class color)) :foreground "white" :background "maroon")) |
| 390 | "*Font used by CUA for highlighting the rectangle." | 390 | "*Font used by CUA for highlighting the rectangle." |
| 391 | :group 'cua) | 391 | :group 'cua) |
| 392 | 392 | ||
| 393 | (defface cua-rectangle-noselect-face | 393 | (defface cua-rectangle-noselect |
| 394 | '((default :inherit region) | 394 | '((default :inherit region) |
| 395 | (((class color)) :foreground "white" :background "dimgray")) | 395 | (((class color)) :foreground "white" :background "dimgray")) |
| 396 | "*Font used by CUA for highlighting the non-selected rectangle lines." | 396 | "*Font used by CUA for highlighting the non-selected rectangle lines." |
| @@ -404,7 +404,7 @@ and after the region marked by the rectangle to search." | |||
| 404 | :type 'boolean | 404 | :type 'boolean |
| 405 | :group 'cua) | 405 | :group 'cua) |
| 406 | 406 | ||
| 407 | (defface cua-global-mark-face | 407 | (defface cua-global-mark |
| 408 | '((((min-colors 88)(class color)) :foreground "black" :background "yellow1") | 408 | '((((min-colors 88)(class color)) :foreground "black" :background "yellow1") |
| 409 | (((class color)) :foreground "black" :background "yellow") | 409 | (((class color)) :foreground "black" :background "yellow") |
| 410 | (t :bold t)) | 410 | (t :bold t)) |
diff --git a/lisp/emulation/cua-gmrk.el b/lisp/emulation/cua-gmrk.el index 8280691ae18..b8874df0f34 100644 --- a/lisp/emulation/cua-gmrk.el +++ b/lisp/emulation/cua-gmrk.el | |||
| @@ -74,7 +74,7 @@ | |||
| 74 | (move-overlay cua--global-mark-overlay (point) (1+ (point))) | 74 | (move-overlay cua--global-mark-overlay (point) (1+ (point))) |
| 75 | (setq cua--global-mark-overlay | 75 | (setq cua--global-mark-overlay |
| 76 | (make-overlay (point) (1+ (point)))) | 76 | (make-overlay (point) (1+ (point)))) |
| 77 | (overlay-put cua--global-mark-overlay 'face 'cua-global-mark-face)) | 77 | (overlay-put cua--global-mark-overlay 'face 'cua-global-mark)) |
| 78 | (if (and cua-global-mark-blink-cursor-interval | 78 | (if (and cua-global-mark-blink-cursor-interval |
| 79 | (not cua--orig-blink-cursor-interval)) | 79 | (not cua--orig-blink-cursor-interval)) |
| 80 | (setq cua--orig-blink-cursor-interval blink-cursor-interval | 80 | (setq cua--orig-blink-cursor-interval blink-cursor-interval |
| @@ -218,7 +218,7 @@ With prefix argument, don't jump to global mark when cancelling it." | |||
| 218 | (let ((olist (overlays-at (marker-position cua--global-mark-marker))) | 218 | (let ((olist (overlays-at (marker-position cua--global-mark-marker))) |
| 219 | in-rect) | 219 | in-rect) |
| 220 | (while olist | 220 | (while olist |
| 221 | (if (eq (overlay-get (car olist) 'face) 'cua-rectangle-face) | 221 | (if (eq (overlay-get (car olist) 'face) 'cua-rectangle) |
| 222 | (setq in-rect t olist nil) | 222 | (setq in-rect t olist nil) |
| 223 | (setq olist (cdr olist)))) | 223 | (setq olist (cdr olist)))) |
| 224 | (if in-rect | 224 | (if in-rect |
| @@ -358,11 +358,6 @@ With prefix argument, don't jump to global mark when cancelling it." | |||
| 358 | ;;; Initialization | 358 | ;;; Initialization |
| 359 | 359 | ||
| 360 | (defun cua--init-global-mark () | 360 | (defun cua--init-global-mark () |
| 361 | (unless (face-background 'cua-global-mark-face) | ||
| 362 | (copy-face 'region 'cua-global-mark-face) | ||
| 363 | (set-face-foreground 'cua-global-mark-face "black") | ||
| 364 | (set-face-background 'cua-global-mark-face "cyan")) | ||
| 365 | |||
| 366 | (define-key cua--global-mark-keymap [remap copy-region-as-kill] 'cua-copy-to-global-mark) | 361 | (define-key cua--global-mark-keymap [remap copy-region-as-kill] 'cua-copy-to-global-mark) |
| 367 | (define-key cua--global-mark-keymap [remap kill-ring-save] 'cua-copy-to-global-mark) | 362 | (define-key cua--global-mark-keymap [remap kill-ring-save] 'cua-copy-to-global-mark) |
| 368 | (define-key cua--global-mark-keymap [remap kill-region] 'cua-cut-to-global-mark) | 363 | (define-key cua--global-mark-keymap [remap kill-region] 'cua-cut-to-global-mark) |
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el index 932448079dd..72fd9195850 100644 --- a/lisp/emulation/cua-rect.el +++ b/lisp/emulation/cua-rect.el | |||
| @@ -755,7 +755,7 @@ If command is repeated at same position, delete the rectangle." | |||
| 755 | (sit-for 0) ; make window top/bottom reliable | 755 | (sit-for 0) ; make window top/bottom reliable |
| 756 | (cua--rectangle-operation nil t nil nil nil ; do not tabify | 756 | (cua--rectangle-operation nil t nil nil nil ; do not tabify |
| 757 | '(lambda (s e l r v) | 757 | '(lambda (s e l r v) |
| 758 | (let ((rface (if v 'cua-rectangle-face 'cua-rectangle-noselect-face)) | 758 | (let ((rface (if v 'cua-rectangle 'cua-rectangle-noselect)) |
| 759 | overlay bs ms as) | 759 | overlay bs ms as) |
| 760 | (when (cua--rectangle-virtual-edges) | 760 | (when (cua--rectangle-virtual-edges) |
| 761 | (let ((lb (line-beginning-position)) | 761 | (let ((lb (line-beginning-position)) |