]> git.cworth.org Git - notmuch/blobdiff - emacs/notmuch-show.el
emacs/show: add optional orig-tags argument to n-s-i-headerline
[notmuch] / emacs / notmuch-show.el
index 765b88b9dd2db7136e874a46ce778eba612ac33c..be68fc3b8c6fc68de3a7562e43856f82958dd335 100644 (file)
@@ -530,7 +530,7 @@ Return unchanged ADDRESS if parsing fails."
          (plist-put msg :height height)
          height))))
 
-(defun notmuch-show-insert-headerline (msg-plist depth tags)
+(defun notmuch-show-insert-headerline (msg-plist depth tags &optional orig-tags)
   "Insert a notmuch style headerline based on HEADERS for a
 message at DEPTH in the current thread."
   (let* ((start (point))
@@ -555,7 +555,7 @@ message at DEPTH in the current thread."
            " ("
            date
            ") ("
-           (notmuch-tag-format-tags tags tags)
+           (notmuch-tag-format-tags tags (or orig-tags tags))
            ")")
     (insert
      (if (> file-count 1)