summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2024-10-01 20:22:34 +0200
committerStefan Kangas <stefankangas@gmail.com>2024-10-01 21:31:02 +0200
commite792856b001f260572b4012241748c41e045c638 (patch)
tree3f2100d23e79e390ab0c0b233e2190da64e18aad /lisp/emacs-lisp
parentff87166227b2634e45591e8c73db9b102734ab77 (diff)
downloademacs-e792856b001f260572b4012241748c41e045c638.tar.gz
emacs-e792856b001f260572b4012241748c41e045c638.tar.bz2
emacs-e792856b001f260572b4012241748c41e045c638.zip
Prefer defvar-local where possible
* lisp/editorconfig.el (editorconfig-properties-hash): * lisp/emacs-lisp/comp-run.el (comp-last-scanned-async-output): * lisp/info-look.el (info-lookup-mode): * lisp/mh-e/mh-folder.el (mh-generate-sequence-font-lock): * lisp/net/tramp.el (tramp-temp-buffer-file-name): * lisp/obsolete/iswitchb.el (iswitchb-eoinput): * lisp/obsolete/longlines.el (longlines-wrap-beg, longlines-wrap-end) (longlines-wrap-point, longlines-showing, longlines-decoded): * lisp/obsolete/tpu-edt.el (tpu-newline-and-indent-p) (tpu-newline-and-indent-string, tpu-saved-delete-func) (tpu-buffer-local-map, tpu-mark-flag): * lisp/progmodes/python.el (python-check-custom-command): * lisp/textmodes/reftex.el (reftex-docstruct-symbol) (reftex-isearch-minor-mode): Prefer defvar-local where possible, and the package does not support Emacs 24.3 or earlier.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/comp-run.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/comp-run.el b/lisp/emacs-lisp/comp-run.el
index a659d7f68b7..3c7802c2ee0 100644
--- a/lisp/emacs-lisp/comp-run.el
+++ b/lisp/emacs-lisp/comp-run.el
@@ -186,8 +186,7 @@ processes from `comp-async-compilations'"
(max 1 (/ (num-processors) 2))))
native-comp-async-jobs-number))
-(defvar comp-last-scanned-async-output nil)
-(make-variable-buffer-local 'comp-last-scanned-async-output)
+(defvar-local comp-last-scanned-async-output nil)
;; From warnings.el
(defvar warning-suppress-types)
(defun comp--accept-and-process-async-output (process)