aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorMiles Bader2005-06-09 07:13:03 +0000
committerMiles Bader2005-06-09 07:13:03 +0000
commitd113efea8e0a56aedd60615f5dc6669c72aca77f (patch)
treec51aa1cd5076acfc2391217b0d7dea96552011de /lisp/emulation
parent2435213ba6b74f7425e15b1f799c9ae18467e43d (diff)
parent47600d8e97925ed8816b099267e24f4ab3311e75 (diff)
downloademacs-d113efea8e0a56aedd60615f5dc6669c72aca77f.tar.gz
emacs-d113efea8e0a56aedd60615f5dc6669c72aca77f.zip
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-61
Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 353-357) - Update from CVS
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/cua-base.el6
-rw-r--r--lisp/emulation/cua-gmrk.el9
-rw-r--r--lisp/emulation/cua-rect.el2
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))