unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 0/7] emacs: show tag changes in buffer
@ 2014-01-18 23:30 Mark Walters
  2014-01-18 23:30 ` [PATCH 1/7] emacs: tag split customise option for format-tags into a widget Mark Walters
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: Mark Walters @ 2014-01-18 23:30 UTC (permalink / raw)
  To: notmuch

This is a reworked and expanded version of the single patch
id:1387065197-15776-4-git-send-email-markwalters1009@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

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-02-12 17:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-18 23:30 [PATCH 0/7] emacs: show tag changes in buffer Mark Walters
2014-01-18 23:30 ` [PATCH 1/7] emacs: tag split customise option for format-tags into a widget Mark Walters
2014-01-18 23:30 ` [PATCH 2/7] emacs: tag: allow default case in notmuch-tag-formats Mark Walters
2014-02-10 18:19   ` Austin Clements
2014-02-11 10:23     ` Mark Walters
2014-02-11 22:57       ` Austin Clements
2014-02-12 17:32         ` [WIP PATCH] Make keys of notmuch-tag-formats regexps and use caching Austin Clements
2014-01-18 23:30 ` [PATCH 3/7] emacs: tag: add customize for deleted/added tag formats Mark Walters
2014-01-18 23:30 ` [PATCH 4/7] emacs: show: mark tags changed since buffer loaded Mark Walters
2014-02-12  1:21   ` Austin Clements
2014-01-18 23:30 ` [PATCH 5/7] emacs: show: use orig-tags for tag display Mark Walters
2014-01-18 23:30 ` [PATCH 6/7] emacs: search: use orig-tags in search Mark Walters
2014-02-12  1:30   ` Austin Clements
2014-01-18 23:30 ` [PATCH 7/7] emacs: tree: " Mark Walters
2014-01-25 19:35 ` [PATCH 0/7] emacs: show tag changes in buffer Jani Nikula
2014-02-05 22:25 ` Tomi Ollila

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).