diff options
author | Stefan Kangas <stefan@marxist.se> | 2021-01-31 14:17:16 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2021-01-31 14:17:16 +0100 |
commit | 035ef9f5aec01d61ea8b7de353cfbe3d2b15f731 (patch) | |
tree | bf8547cb684171a09617d3124424e92f4f66776e /lisp/emulation/cua-base.el | |
parent | d7405e474b43ba5c4238cc27f2aaa61341b828b4 (diff) | |
download | emacs-035ef9f5aec01d61ea8b7de353cfbe3d2b15f731.tar.gz emacs-035ef9f5aec01d61ea8b7de353cfbe3d2b15f731.tar.bz2 emacs-035ef9f5aec01d61ea8b7de353cfbe3d2b15f731.zip |
Prefer defvar-local in cua
* lisp/emulation/cua-base.el (cua-inhibit-cua-keys)
(cua--status-string):
* lisp/emulation/cua-rect.el (cua--rectangle)
(cua--rectangle-overlays): Prefer defvar-local.
Diffstat (limited to 'lisp/emulation/cua-base.el')
-rw-r--r-- | lisp/emulation/cua-base.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index 881eff7f801..a64274bc0c1 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el @@ -634,9 +634,8 @@ a cons (TYPE . COLOR), then both properties are affected." ;;; Low-level Interface -(defvar cua-inhibit-cua-keys nil +(defvar-local cua-inhibit-cua-keys nil "Buffer-local variable that may disable the CUA keymappings.") -(make-variable-buffer-local 'cua-inhibit-cua-keys) ;;; Aux. variables @@ -644,9 +643,8 @@ a cons (TYPE . COLOR), then both properties are affected." ;; checked in post-command hook to see if point was moved (defvar cua--buffer-and-point-before-command nil) -;; status string for mode line indications -(defvar cua--status-string nil) -(make-variable-buffer-local 'cua--status-string) +(defvar-local cua--status-string nil + "Status string for mode line indications.") (defvar cua--debug nil) |