# HG changeset patch # User Kim F. Storm # Date 1020290589 0 # Node ID d57f600f5b7e898c2885f51f7b3d892b1575fbe6 # Parent c7b6259de115ff4c0afbd26cddbc518eb3a722a3 (cua-inhibit-cua-keys): New buffer-local variable. diff -r c7b6259de115 -r d57f600f5b7e lisp/emulation/cua-base.el --- a/lisp/emulation/cua-base.el Wed May 01 22:01:16 2002 +0000 +++ b/lisp/emulation/cua-base.el Wed May 01 22:03:09 2002 +0000 @@ -460,6 +460,13 @@ (require 'cua-gmrk) ) + +;;; Low-level Interface + +(defvar cua-inhibit-cua-keys nil + "Buffer-local variable that may disable the cua keymappings.") +(make-variable-buffer-local 'cua-inhibit-cua-keys) + ;;; Aux. variables ;; Current region was started using cua-set-mark. @@ -1004,6 +1011,7 @@ (setq cua--ena-prefix-override-keymap (and cua--ena-region-keymap cua-enable-cua-keys + (not cua-inhibit-cua-keys) (or (eq cua-enable-cua-keys t) (not cua--explicit-region-start)) (not executing-kbd-macro) @@ -1013,6 +1021,7 @@ (timerp cua--prefix-override-timer))) (setq cua--ena-cua-keys-keymap (and cua-enable-cua-keys + (not cua-inhibit-cua-keys) (or (eq cua-enable-cua-keys t) cua--last-region-shifted))) (setq cua--ena-global-mark-keymap