summaryrefslogtreecommitdiff
path: root/lisp/emulation/cua-gmrk.el
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2002-05-25 00:07:26 +0000
committerKim F. Storm <storm@cua.dk>2002-05-25 00:07:26 +0000
commitf8b38495a5de6a4b158400aa45889c8e632aa587 (patch)
treee162122febccce389bd1bac692e4215d7d6c54ba /lisp/emulation/cua-gmrk.el
parent20023b9cb448aa6e766a0dc73ab08d1aecf3cbf5 (diff)
downloademacs-f8b38495a5de6a4b158400aa45889c8e632aa587.tar.gz
(cua--init-global-mark): Install default
binding in cua--global-mark-keymap using cua--self-insert-char-p to handle all global self inserting characters in gmark mode.
Diffstat (limited to 'lisp/emulation/cua-gmrk.el')
-rw-r--r--lisp/emulation/cua-gmrk.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/emulation/cua-gmrk.el b/lisp/emulation/cua-gmrk.el
index a1e9d312bdd..5e482ee8d21 100644
--- a/lisp/emulation/cua-gmrk.el
+++ b/lisp/emulation/cua-gmrk.el
@@ -377,6 +377,11 @@ With prefix argument, don't jump to global mark when cancelling it."
(define-key cua--global-mark-keymap [remap backward-delete-char-untabify] 'cua-delete-backward-char-at-global-mark)
(define-key cua--global-mark-keymap [remap self-insert-command] 'cua-insert-char-at-global-mark)
(define-key cua--global-mark-keymap [remap self-insert-iso] 'cua-insert-char-at-global-mark)
+
+ ;; Catch self-inserting characters which are "stolen" by other modes
+ (define-key cua--global-mark-keymap [t]
+ '(menu-item "sic" cua-insert-char-at-global-mark :filter cua--self-insert-char-p))
+
(define-key cua--global-mark-keymap [remap newline] 'cua-insert-newline-at-global-mark)
(define-key cua--global-mark-keymap [remap newline-and-indent] 'cua-insert-newline-at-global-mark)
(define-key cua--global-mark-keymap "\r" 'cua-insert-newline-at-global-mark)