notmuch-mutt: lookup notmuch-search-terms(7) when asked for help
authorStefano Zacchiroli <zack@upsilon.cc>
Tue, 29 May 2012 20:44:27 +0000 (22:44 +0200)
committerDavid Bremner <bremner@debian.org>
Tue, 29 May 2012 21:18:07 +0000 (18:18 -0300)
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)

contrib/notmuch-mutt/notmuch-mutt

index 71206c35269be8d221bbb038f4a00fa0cff26102..fee165d6604f7162172908d7d7c6869df8ba21a3 100755 (executable)
@@ -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;