Mercurial > emacs
diff lisp/emulation/cua-gmrk.el @ 63073:f1bf3660220e
* 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.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Mon, 06 Jun 2005 13:19:15 +0000 |
parents | 695cf19ef79e |
children | 66f83ad1a264 173dee4e2611 |
line wrap: on
line diff
--- a/lisp/emulation/cua-gmrk.el Mon Jun 06 13:18:36 2005 +0000 +++ b/lisp/emulation/cua-gmrk.el Mon Jun 06 13:19:15 2005 +0000 @@ -74,7 +74,7 @@ (move-overlay cua--global-mark-overlay (point) (1+ (point))) (setq cua--global-mark-overlay (make-overlay (point) (1+ (point)))) - (overlay-put cua--global-mark-overlay 'face 'cua-global-mark-face)) + (overlay-put cua--global-mark-overlay 'face 'cua-global-mark)) (if (and cua-global-mark-blink-cursor-interval (not cua--orig-blink-cursor-interval)) (setq cua--orig-blink-cursor-interval blink-cursor-interval @@ -218,7 +218,7 @@ (let ((olist (overlays-at (marker-position cua--global-mark-marker))) in-rect) (while olist - (if (eq (overlay-get (car olist) 'face) 'cua-rectangle-face) + (if (eq (overlay-get (car olist) 'face) 'cua-rectangle) (setq in-rect t olist nil) (setq olist (cdr olist)))) (if in-rect @@ -358,11 +358,6 @@ ;;; Initialization (defun cua--init-global-mark () - (unless (face-background 'cua-global-mark-face) - (copy-face 'region 'cua-global-mark-face) - (set-face-foreground 'cua-global-mark-face "black") - (set-face-background 'cua-global-mark-face "cyan")) - (define-key cua--global-mark-keymap [remap copy-region-as-kill] 'cua-copy-to-global-mark) (define-key cua--global-mark-keymap [remap kill-ring-save] 'cua-copy-to-global-mark) (define-key cua--global-mark-keymap [remap kill-region] 'cua-cut-to-global-mark)