]> git.notmuchmail.org Git - notmuch/commit
emacs: avoid passing around some redundant information
authorJonas Bernoulli <jonas@bernoul.li>
Sun, 10 Jan 2021 14:00:44 +0000 (15:00 +0100)
committerDavid Bremner <david@tethera.net>
Wed, 13 Jan 2021 11:07:59 +0000 (07:07 -0400)
commit904ffbc9256db472abd34aa8e683c40067a42dd0
tree0ba40ff6622430f6ad0ede9877d0cd35d0408e58
parent778950872d699fc0b49c14ee2a2276a0e9a8abe5
emacs: avoid passing around some redundant information

When running "notmuch" we use its full path but when displaying the
command to the user we show just its name for readability reasons.
Avoid passing around both representations because it is very easy
to get the name from the path.

Notmuch itself uses the involved functions just for "notmuch" but
there might be extensions that use them for other executable so we
forgo other potential simplifications.
emacs/notmuch-lib.el