]> git.notmuchmail.org Git - notmuch/commit
emacs: use the originating buffer's working directory for pipe
authorJani Nikula <jani@nikula.org>
Sat, 1 Mar 2014 13:17:50 +0000 (15:17 +0200)
committerDavid Bremner <david@tethera.net>
Wed, 5 Mar 2014 00:00:50 +0000 (20:00 -0400)
commitec13bd12e3335d0ceb878d403d11004bbe330c8e
treef2bf70a46cd2d8744d068f26e20655fc1d864824
parented720f4e6d18c80381e0e84ff3b5571474c92512
emacs: use the originating buffer's working directory for pipe

Currently notmuch-show-pipe-message runs the command in the working
directory of the *notmuch-pipe* buffer if it exists, and the current
buffer's working directory (which is inherited to the new
*notmuch-pipe* buffer) otherwise. This is all very surprising to the
user, and it's difficult to know or change where the command will be
run.

Always use the current show buffer's working directory for piping. The
user can check that with M-x pwd and change it with M-x cd. This is
consistent with notmuch-show-pipe-part.
emacs/notmuch-show.el