[PATCH 0/7] emacs: show tag changes in buffer

Mark Walters markwalters1009 at gmail.com
Sat Jan 18 15:30:48 PST 2014


This is a reworked and expanded version of the single patch
id:1387065197-15776-4-git-send-email-markwalters1009 at gmail.com

This shows any tags changed in the show buffer since it was loaded or
refreshed. By default a removed tag is displayed with strike-through
in red (if strike-through is not available, eg on a terminal, inverse
video is used instead) and an added tag is displayed underlined in
green. This version works in all three views show, search and tree.

My motivation for this is part of a rework of the unread handling: we
can do a lot more automatically if we make it clear to the user what
we have done (which this does). It also make automatic updating of
buffers on tag-changes such as the search buffer showing tag changes
done in the show buffer a sensible possibility (as the user does not
lose information)

The patch series is large but I have tried to split it up into small pieces

Patches 1-3 are preparation mostly adding defcustoms for the format
for added or deleted tags.

Patch 4 does all the actual logic to allow added and deleted tags to be shown.

Patches 5-7 make show/search and tree keep track of the original tags
to use the functionality in Patch 4.

I have been running this series (with the unread and auto-updating
described above) for about a month and it seems to work well for my use.

Best wishes

Mark



Mark Walters (7):
  emacs: tag split customise option for format-tags into a widget
  emacs: tag: allow default case in notmuch-tag-formats
  emacs: tag: add customize for deleted/added tag formats
  emacs: show: mark tags changed since buffer loaded
  emacs: show: use orig-tags for tag display
  emacs: search: use orig-tags in search
  emacs: tree: use orig-tags in search

 emacs/notmuch-show.el |    6 ++-
 emacs/notmuch-tag.el  |  116 ++++++++++++++++++++++++++++++++++--------------
 emacs/notmuch-tree.el |    9 +++-
 emacs/notmuch.el      |   12 ++++-
 test/test-lib.el      |    4 ++
 5 files changed, 105 insertions(+), 42 deletions(-)

-- 
1.7.9.1



More information about the notmuch mailing list