]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: show: use orig-tags for tag display
authorMark Walters <markwalters1009@gmail.com>
Sat, 22 Mar 2014 11:51:10 +0000 (11:51 +0000)
committerDavid Bremner <david@tethera.net>
Mon, 24 Mar 2014 22:48:22 +0000 (19:48 -0300)
This uses the previous patch to show the tag changes that have occured
in the show buffer since it was last loaded/refreshed.

emacs/notmuch-show.el

index 5492be426d731b081f955f4174e25a412efb8985..f6ca827e0525933fa8fc20a0e434f1bf9df58353 100644 (file)
@@ -344,7 +344,7 @@ operation on the contents of the current buffer."
     (if (re-search-forward "(\\([^()]*\\))$" (line-end-position) t)
        (let ((inhibit-read-only t))
          (replace-match (concat "("
-                                (notmuch-tag-format-tags tags tags)
+                                (notmuch-tag-format-tags tags (notmuch-show-get-prop :orig-tags))
                                 ")"))))))
 
 (defun notmuch-clean-address (address)
@@ -1168,6 +1168,8 @@ function is used."
 
       (jit-lock-register #'notmuch-show-buttonise-links)
 
+      (notmuch-show-mapc (lambda () (notmuch-show-set-prop :orig-tags (notmuch-show-get-tags))))
+
       ;; Set the header line to the subject of the first message.
       (setq header-line-format (notmuch-sanitize (notmuch-show-strip-re (notmuch-show-get-subject))))