From: Carl Worth Date: Tue, 1 Dec 2009 06:47:10 +0000 (-0800) Subject: notmuch.el: Make documentation of notmuch-search-mode dynamic. X-Git-Tag: 0.1~281 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e9443aeafc0bdeb0d11fa44ee2ad523fb019281e;p=notmuch.git notmuch.el: Make documentation of notmuch-search-mode dynamic. Previously, we had some hard-coded keybindings mentioned in the introductory paragraphs of the documentation for notmuch-search-mode. Now, we take advantage of the substitute-command-keys functionality to produce the same text by default, but to dynamically generate the correct text in the face of the user customizing the keybindings. --- diff --git a/notmuch.el b/notmuch.el index 72224742..a6b71b77 100644 --- a/notmuch.el +++ b/notmuch.el @@ -1049,15 +1049,15 @@ number of matched messages and total messages in the thread, participants in the thread, a representative subject line, and any tags). -By default, pressing RET on any line displays that thread. The -'+' and '-' keys can be used to add or remove tags from a -thread. The 'a' key is a convenience key for archiving a -thread (removing the \"inbox\" tag). The '*' key can be used to -add or remove a tag from all threads in the current buffer. - -Other useful commands are 'f' for filtering the current search -based on an additional query string, 't' for filtering to include -only messages with a given tag, and 's' to execute a new, global +Pressing \\[notmuch-search-show-thread] on any line displays that thread. The '\\[notmuch-search-add-tag]' and '\\[notmuch-search-remove-tag]' +keys can be used to add or remove tags from a thread. The '\\[notmuch-search-archive-thread]' key +is a convenience for archiving a thread (removing the \"inbox\" +tag). The '\\[notmuch-search-operate-all]' key can be used to add or remove a tag from all +threads in the current buffer. + +Other useful commands are '\\[notmuch-search-filter]' for filtering the current search +based on an additional query string, '\\[notmuch-search-filter-by-tag]' for filtering to include +only messages with a given tag, and '\\[notmuch-search]' to execute a new, global search. Complete list of currently available key bindings: