diff options
author | Austin Clements <amdragon@MIT.EDU> | 2013-10-05 23:22:47 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2013-10-07 20:32:08 -0300 |
commit | c1221dd65a5497057909aeb21d7c50c65090bf6f (patch) | |
tree | bd13b8fddc0beb9c6f0db7baf1c112ca286c19a7 /emacs/notmuch-mua.el | |
parent | fad4f21cb7016f22e496bb92e117382b969f5f09 (diff) |
emacs: Improve interactive use documentation
This improves the function documentation for many interactive
commands, either by improving their documentation string where the
improvement also makes sense for programmatic use or by adding a
'notmuch-doc property where it doesn't.
For nearly all commands that support a prefix argument, this adds a
'notmuch-prefix-doc property to document their prefixed behavior This
omits prefix documentation for a few commands where I thought the
prefixed behavior was too obscure (or too complex to fit in one line).
Diffstat (limited to 'emacs/notmuch-mua.el')
-rw-r--r-- | emacs/notmuch-mua.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index f6006ee0..53802d26 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -313,8 +313,9 @@ the From: header is already filled in by notmuch." (ido-completing-read "Send mail From: " notmuch-identities nil nil nil 'notmuch-mua-sender-history (car notmuch-identities))))) +(put 'notmuch-mua-new-mail 'notmuch-prefix-doc "... and prompt for sender") (defun notmuch-mua-new-mail (&optional prompt-for-sender) - "Invoke the notmuch mail composition window. + "Compose new mail. If PROMPT-FOR-SENDER is non-nil, the user will be prompted for the From: address first." |