]> git.notmuchmail.org Git - notmuch/commit - emacs/notmuch-hello.el
emacs: sanitize dedicated widget action/notify functions
authorJonas Bernoulli <jonas@bernoul.li>
Sun, 10 Jan 2021 14:00:38 +0000 (15:00 +0100)
committerDavid Bremner <david@tethera.net>
Wed, 13 Jan 2021 10:56:50 +0000 (06:56 -0400)
commitd7b83385af20c11730603d351527cb422c82cf0b
tree0423264e667b6b9510e009d8a45b1535c8e45127
parent5b19e6e1b4dc0ef13b5662707e097a740f9dc8a2
emacs: sanitize dedicated widget action/notify functions

These functions are used as action/notify functions.  That dictates
the appropriate function signatures but even though these functions
are not used for anything else they use incompatible signatures,
forcing the callers to use lambda expressions to deal with these
incompatibilities.

Fix that by adjusting the function signatures to the needs of the
only intended callers.

Two of these functions were defined as commands but because the
interactive form did not return the mandatory arguments, we know
that nobody (successfully) used these as commands.

In one case we move the location of a y-or-n-p prompt.
emacs/notmuch-hello.el