From f8b38495a5de6a4b158400aa45889c8e632aa587 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Sat, 25 May 2002 00:07:26 +0000 Subject: [PATCH] (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. --- lisp/emulation/cua-gmrk.el | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.39.5