notmuch-mutt: lookup notmuch-search-terms(7) when asked for help

When asked for interactive help, lookup notmuch-search-terms(7)
instead of notmuch(1). Syntax of notmuch queries used to be described
in the latter, but has recently been moved to the former.

Closes: #675073 (in the Debian BTS)
This commit is contained in:
Stefano Zacchiroli 2012-05-29 22:44:27 +02:00 committed by David Bremner
parent d99f15d7ee
commit 981a87f735

View file

@ -60,7 +60,7 @@ sub prompt($$) {
while (1) {
chomp($query = $term->readline($text, $default));
if ($query eq "?") {
system("man", "notmuch");
system("man", "notmuch-search-terms");
} else {
$term->WriteHistory($histfile);
return $query;