]> git.notmuchmail.org Git - notmuch/commit - emacs/notmuch-tree.el
emacs: deal with unused lexical arguments and variables
authorJonas Bernoulli <jonas@bernoul.li>
Sun, 10 Jan 2021 14:00:48 +0000 (15:00 +0100)
committerDavid Bremner <david@tethera.net>
Wed, 13 Jan 2021 11:16:23 +0000 (07:16 -0400)
commit0067a43ea2ee554eafed1e1300a71259cd6b6a6d
tree3434a63a6df67c7da6073ce2c25e2071b28aab9a
parentfc4cda07a9afbbb545dcc6cd835ca697f6ef2a1b
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.
12 files changed:
emacs/notmuch-address.el
emacs/notmuch-crypto.el
emacs/notmuch-hello.el
emacs/notmuch-jump.el
emacs/notmuch-lib.el
emacs/notmuch-maildir-fcc.el
emacs/notmuch-mua.el
emacs/notmuch-print.el
emacs/notmuch-show.el
emacs/notmuch-tree.el
emacs/notmuch-wash.el
emacs/notmuch.el