X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-lib.el;h=d315f7656e9bc4a004575faa14be386a858cdb83;hb=61fa5c0bb88fd3cd4a52d5a5b93a12bed58c063e;hp=241fe8c445d2c96c07f3efc80262df022666e3f1;hpb=37dec7d7b37afd281f23c0ec7ed9111c24965126;p=notmuch diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 241fe8c4..d315f765 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -69,6 +69,9 @@ ;; +(defvar notmuch-search-history nil + "Variable to store notmuch searches history.") + (defcustom notmuch-saved-searches nil "A list of saved searches to display." :type '(alist :key-type string :value-type string) @@ -130,6 +133,15 @@ the user hasn't set this variable with the old or new value." (interactive) (kill-buffer (current-buffer))) +(defun notmuch-prettify-subject (subject) + ;; This function is used by `notmuch-search-process-filter' which + ;; requires that we not disrupt its' matching state. + (save-match-data + (if (and subject + (string-match "^[ \t]*$" subject)) + "[No Subject]" + subject))) + ;; (defun notmuch-common-do-stash (text)