]> git.eshelyaron.com Git - emacs.git/commitdiff
(cua--init-global-mark): Install default
authorKim F. Storm <storm@cua.dk>
Sat, 25 May 2002 00:07:26 +0000 (00:07 +0000)
committerKim F. Storm <storm@cua.dk>
Sat, 25 May 2002 00:07:26 +0000 (00:07 +0000)
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

index a1e9d312bdd51087c9410c7d4a6a68f25765c41b..5e482ee8d210123ddc81c126ff089e36cb29c49a 100644 (file)
@@ -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)