diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2021-01-10 15:00:48 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-01-13 07:16:23 -0400 |
| commit | 0067a43ea2ee554eafed1e1300a71259cd6b6a6d (patch) | |
| tree | 3434a63a6df67c7da6073ce2c25e2071b28aab9a /emacs/notmuch-address.el | |
| parent | fc4cda07a9afbbb545dcc6cd835ca697f6ef2a1b (diff) | |
emacs: deal with unused lexical arguments and variables
The previous commit switched to lexical-binding but without dealing
with the new warnings about unused lexical arguments and variables.
This commit deals with most of them, in most cases by either removing
leftover bindings that are actually unnecessary, or by marking certain
arguments as "known to be unused" by prefixing their names with "_".
In the case of the functions named `notmuch-show-insert-...' the
amount of silencing that is required is a bit extreme and we might
want to investigate if there is a better way.
In the case of `notmuch-mua-mail', ignoring CONTINUE means that we do
not fully follow the intended behavior described in `compose-mail's
doc-string.
Diffstat (limited to 'emacs/notmuch-address.el')
| -rw-r--r-- | emacs/notmuch-address.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el index 6b117458..1017c3ce 100644 --- a/emacs/notmuch-address.el +++ b/emacs/notmuch-address.el @@ -191,7 +191,7 @@ toggles the setting in this buffer." The candidates are taken from `notmuch-address-completions'." (let ((candidates) (re (regexp-quote substring))) - (maphash (lambda (key val) + (maphash (lambda (key _val) (when (string-match re key) (push key candidates))) notmuch-address-completions) @@ -406,7 +406,7 @@ appear to be an address savefile. Not overwriting." (setq notmuch-address-last-harvest now) (notmuch-address-harvest nil nil - (lambda (proc event) + (lambda (_proc event) ;; If harvest fails, we want to try ;; again when the trigger is next ;; called |
