(menu-bar-options-menu): Added toggle for cua-mode. Disable
toggle for transient-mark-mode if cua-mode is enabled.
+ * emulation/cua-base.el (cua-inhibit-cua-keys): New buffer-local
+ variable.
+
2002-05-01 Richard M. Stallman <rms@gnu.org>
* help.el (view-todo): New function.
(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.
(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)
(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