]> git.eshelyaron.com Git - emacs.git/commit
Avoid add-to-list on local variables
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 4 Jan 2017 05:40:45 +0000 (00:40 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 4 Jan 2017 05:40:45 +0000 (00:40 -0500)
commit2ec41c415f39990561cc9da4c9bad0b69bfad489
tree01a5234df9caa1e9db39d76bf31ba8a3a622298c
parentf49f8c1454e19123572a071bf582271c70d28f01
Avoid add-to-list on local variables

* lisp/gnus/nnir.el: Use lexical-binding and cl-lib.
(nnir-retrieve-headers): Use pcase.
(nnir-search-thread): Avoid add-to-list on local variables.

* lisp/gnus/smime.el: Use lexical-binding and cl-lib.
(smime-verify-region): Avoid add-to-list on local variables.

* lisp/mail/undigest.el: Use lexical-binding and cl-lib.
(rmail-digest-parse-mime, rmail-digest-rfc1153)
(rmail-digest-parse-rfc934): Avoid add-to-list on local variable.

* lisp/net/ldap.el (ldap-search): Move init into declaration.

* lisp/net/newst-backend.el (newsticker--cache-add):
Avoid add-to-list on local variables; Simplify code with `assq'.

* lisp/net/zeroconf.el: Use lexical-binding and cl-lib.
(dbus-debug): Remove declaration, unused.
(zeroconf-service-add-hook, zeroconf-service-remove-hook)
(zeroconf-service-browser-handler, zeroconf-publish-service):
Avoid add-to-list and *-hook on local variables.

* lisp/org/org-archive.el (org-all-archive-files):
* lisp/org/org-agenda.el (org-agenda-get-restriction-and-command):
Avoid add-to-list on local variables.

* lisp/org/ox-publish.el (org-publish--run-functions): New function.
(org-publish-projects): Use it to avoid run-hooks on a local variable.
(org-publish-cache-file-needs-publishing): Avoid add-to-list on
local variables.

* lisp/progmodes/ada-prj.el: Use setq instead of (set '...).
(ada-prj-load-from-file): Avoid add-to-list on local variables.

* lisp/progmodes/ada-xref.el (ada-initialize-runtime-library): Simplify.
(ada-gnat-parse-gpr, ada-parse-prj-file-1)
(ada-xref-find-in-modified-ali): Avoid add-to-list on local variables.

* lisp/progmodes/idlw-shell.el (idlwave-shell-update-bp-overlays):
Avoid add-to-list on local variables.
12 files changed:
lisp/gnus/nnir.el
lisp/gnus/smime.el
lisp/mail/undigest.el
lisp/net/ldap.el
lisp/net/newst-backend.el
lisp/net/zeroconf.el
lisp/org/org-agenda.el
lisp/org/org-archive.el
lisp/org/ox-publish.el
lisp/progmodes/ada-prj.el
lisp/progmodes/ada-xref.el
lisp/progmodes/idlw-shell.el