]> git.eshelyaron.com Git - emacs.git/commit
Replace add-to-list to lexical variable with push (bug#39373)
authorMattias Engdegård <mattiase@acm.org>
Sat, 1 Feb 2020 17:07:32 +0000 (18:07 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 1 Feb 2020 21:27:23 +0000 (22:27 +0100)
commit32763dac46e61cc34e8fe4d19df4905d09c1a27f
treee7f831860af5d3a412dc3dcfbdb958fa23cbd5b3
parentd07f177382b24945e1f579744702908b33605c3e
Replace add-to-list to lexical variable with push (bug#39373)

Since 'add-to-list', being a plain function, cannot access lexical
variables, such use must be rewritten for correctness.
(Some instances actually do work thanks to a compiler macro,
but it's not something code should rely on.)

* lisp/autoinsert.el (auto-insert-alist):
* lisp/cedet/mode-local.el (mode-local-print-bindings):
* lisp/net/tramp-cache.el (tramp-flush-connection-properties)
(tramp-list-connections):
* lisp/net/zeroconf.el (zeroconf-list-service-names)
(zeroconf-list-service-types, zeroconf-list-services):
* lisp/org/org.el (org-reload):
* lisp/whitespace.el (whitespace-report-region):
* test/lisp/emacs-lisp/map-tests.el (test-map-do):
Replace add-to-list with push.
lisp/autoinsert.el
lisp/cedet/mode-local.el
lisp/net/tramp-cache.el
lisp/net/zeroconf.el
lisp/org/org.el
lisp/whitespace.el
test/lisp/emacs-lisp/map-tests.el