]> git.eshelyaron.com Git - emacs.git/commit
* lisp/mail/: Use lexical-binding
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 11 Mar 2021 19:32:42 +0000 (14:32 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 11 Mar 2021 19:32:42 +0000 (14:32 -0500)
commitd9c94e93b7013d575aeb2a8e8077564a80b04f7c
tree0eb0b9d2c5263c1d6a1665e17774b846a802405a
parentb90c658492a2548f183bf072be50f4a57a2b5f0b
* lisp/mail/: Use lexical-binding

Remove some redundant `:group` args as well.

* lisp/mail/supercite.el: Use lexical-binding.
(completer-disable): Declare var.
(sc-set-variable): Don't rely on dynbind to access `help` variable.

* lisp/mail/mail-extr.el: Use lexical-binding.
(mail-extract-address-components): Avoid use of dynamic scoping to
refer to local vars.

* lisp/mail/mailabbrev.el: Use lexical-binding.
(mail-abbrev-make-syntax-table): Rename `_` variable to `syntax-_`.

* lisp/mail/mailheader.el: Use lexical-binding.
(headers): Don't declare as dynbound globally.
(mail-header-set, mail-header-merge): Declare `headers` as dynbound
locally, instead.  Mark those functions as obsolete.
(mail-header-format): Use `alist-get` instead of `mail-header`.

* lisp/mail/binhex.el (binhex-decode-region-external): Remove always-nil
var `firstline`.

* lisp/mail/emacsbug.el: Use lexical-binding.
(report-emacs-bug): Remove always-nil var `message-end-point`.

* lisp/mail/rmail-spam-filter.el: Use lexical-binding.
(bbdb/mail_auto_create_p): Declare variable.

* lisp/mail/rmail.el (rmail-get-new-mail): Remove always-nil var
`delete-files`.

* lisp/mail/rmailout.el: Use lexical-binding.
(rmail-output-read-file-name): Remove unused var `err`.
(rmail-convert-to-babyl-format): Remove unused var `count`.
(rmail-output-as-mbox): Remove unused vars `from` and `date`.

* lisp/mail/rmailsort.el: Use lexical-binding.
(rmail-sort-messages): Remove unused var `msginfo`.

* lisp/mail/rfc822.el: Use lexical-binding.
* lisp/mail/rmailedit.el: Use lexical-binding.
* lisp/mail/mailclient.el: Use lexical-binding.
* lisp/mail/blessmail.el: Use lexical-binding.
* lisp/mail/mail-hist.el: Use lexical-binding.
* lisp/mail/rmailkwd.el: Use lexical-binding.
* lisp/mail/rmailmsc.el: Use lexical-binding.
* lisp/mail/uce.el: Use lexical-binding.
* lisp/mail/unrmail.el: Use lexical-binding.
25 files changed:
lisp/mail/binhex.el
lisp/mail/blessmail.el
lisp/mail/emacsbug.el
lisp/mail/feedmail.el
lisp/mail/flow-fill.el
lisp/mail/ietf-drums.el
lisp/mail/mail-extr.el
lisp/mail/mail-hist.el
lisp/mail/mail-utils.el
lisp/mail/mailabbrev.el
lisp/mail/mailclient.el
lisp/mail/mailheader.el
lisp/mail/mspools.el
lisp/mail/rfc822.el
lisp/mail/rmail-spam-filter.el
lisp/mail/rmail.el
lisp/mail/rmailedit.el
lisp/mail/rmailkwd.el
lisp/mail/rmailmsc.el
lisp/mail/rmailout.el
lisp/mail/rmailsort.el
lisp/mail/smtpmail.el
lisp/mail/supercite.el
lisp/mail/uce.el
lisp/mail/unrmail.el