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.
This commit is contained in:
Carl Worth 2009-11-30 22:47:10 -08:00
parent 86992aeb85
commit e9443aeafc

View file

@ -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.
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 '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
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: