aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorKaroly Lorentey2006-04-01 13:24:42 +0000
committerKaroly Lorentey2006-04-01 13:24:42 +0000
commit10a0e6fe87378d0dafb5ce257aa60c8a1b25c708 (patch)
treedb6f6272d381d3ca09c783cea7f5f3aaf8fafc99 /lisp/emulation
parent6bcc8ec7eb185314e1b24f285fdcc1e7093c1bc1 (diff)
parentafc749959d78f5b48b92de877067828d46c915ce (diff)
downloademacs-10a0e6fe87378d0dafb5ce257aa60c8a1b25c708.tar.gz
emacs-10a0e6fe87378d0dafb5ce257aa60c8a1b25c708.zip
Merged from emacs@sv.gnu.org
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-173 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-174 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-175 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-176 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-177 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-178 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-179 Update from erc--emacs--0 * emacs@sv.gnu.org/emacs--devo--0--patch-180 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-181 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-182 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-183 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-184 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-185 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-186 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-187 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/gnus--rel--5.10--patch-65 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-66 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-67 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-68 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-69 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-70 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-71 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-72 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-542
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/cua-base.el21
-rw-r--r--lisp/emulation/cua-rect.el4
2 files changed, 21 insertions, 4 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el
index 594e9617501..e99a280c555 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.
375On non-window systems, always use the meta modifier. 391On 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
1401shifted movement key, set `cua-highlight-region-shift-only'." 1417shifted 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 33b38552595..53056d667fb 100644
--- a/lisp/emulation/cua-rect.el
+++ b/lisp/emulation/cua-rect.el
@@ -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))