From: Kim F. Storm Date: Sat, 25 May 2002 00:07:26 +0000 (+0000) Subject: (cua--init-global-mark): Install default X-Git-Tag: ttn-vms-21-2-B4~14885 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f8b38495a5de6a4b158400aa45889c8e632aa587;p=emacs.git (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. --- 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)