diff options
author | Stefan Kangas <stefan@marxist.se> | 2020-12-06 08:57:54 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2020-12-06 10:06:22 +0100 |
commit | e5c06669b89bd005ec2e5c17f307dbe128019f25 (patch) | |
tree | 789a5d602cf631bfed9338935e94d492a8eda621 /lisp/progmodes/which-func.el | |
parent | 79d287c7b51758542798985e6b1c7b24b0038619 (diff) | |
download | emacs-e5c06669b89bd005ec2e5c17f307dbe128019f25.tar.gz emacs-e5c06669b89bd005ec2e5c17f307dbe128019f25.tar.bz2 emacs-e5c06669b89bd005ec2e5c17f307dbe128019f25.zip |
Prefer setq-local in several progmodes
* lisp/progmodes/executable.el (executable-interpret):
* lisp/progmodes/f90.el (f90-mode):
* lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics):
* lisp/progmodes/fortran.el (fortran-mode):
* lisp/progmodes/gud.el (gud-gdb, sdb, dbx, xdb, perldb, pdb)
(jdb, gud-mode, gud-common-init, gdb-script-mode)
(gud-tooltip-activate-mouse-motions):
* lisp/progmodes/hideshow.el (hs-minor-mode):
* lisp/progmodes/icon.el (icon-mode):
* lisp/progmodes/ld-script.el (ld-script-mode):
* lisp/progmodes/mixal-mode.el (mixal-mode):
* lisp/progmodes/modula2.el (m2-mode):
* lisp/progmodes/simula.el (simula-mode):
* lisp/progmodes/subword.el (subword-setup-buffer):
* lisp/progmodes/which-func.el (which-function): Prefer setq-local.
Diffstat (limited to 'lisp/progmodes/which-func.el')
-rw-r--r-- | lisp/progmodes/which-func.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el index 266f40abbae..a524bbaa223 100644 --- a/lisp/progmodes/which-func.el +++ b/lisp/progmodes/which-func.el @@ -293,7 +293,7 @@ If no function name is found, return nil." (null which-function-imenu-failed)) (ignore-errors (imenu--make-index-alist t)) (unless imenu--index-alist - (set (make-local-variable 'which-function-imenu-failed) t))) + (setq-local which-function-imenu-failed t))) ;; If we have an index alist, use it. (when (and (null name) (boundp 'imenu--index-alist) imenu--index-alist) |