]> git.notmuchmail.org Git - notmuch/commit
emacs: View the output of pipe command when it fails
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 23 Jan 2011 10:45:50 +0000 (11:45 +0100)
committerCarl Worth <cworth@cworth.org>
Wed, 26 Jan 2011 12:39:36 +0000 (22:39 +1000)
commit74cb76a69d4fb47bb1c03f2d688807793d39ab73
tree1ffa75fb1f4a3e530e424838499ea25cf31415e1
parentcb6411e29135217aaf4abb0615a8ca730c5f2bc2
emacs: View the output of pipe command when it fails

Previously, the user didn't know whether the pipe command succeeded or
not. It was only possible to find it out by manually inspecting
the work done (or not done) by the command or by manually switching to
*notmuch-pipe* buffer and determine it from command output. For this
the user had to first find the text corresponding to the last run of
pipe command as the buffer accumulated the output from all pipe commands.

This patch changes the following. The *notmuch-pipe* buffer is erased
before every pipe command so it contains only the output from the last
command. Additionally, when the command failed, the *notmuch-pipe* buffer
is shown and an error message is displayed.
with the output of pipe command.
emacs/notmuch-show.el