unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [WIP Patch 0/7] emacs: show tag changes in buffer
@ 2014-02-14  9:15 Mark Walters
  2014-02-14  9:15 ` [WIP Patch 1/7] Make keys of notmuch-tag-formats regexps and use caching Mark Walters
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Mark Walters @ 2014-02-14  9:15 UTC (permalink / raw)
  To: notmuch, Austin Clements

This verson is not intended for general use/review but so Austin can
see my attempt at integrating his regexp tag matching code into the
added/deleted code. However, of course, comments from anyone else are
gratefully received.

Patch 1/7 is basically Austin's patch
id:1392226351-31440-1-git-send-email-amdragon@mit.edu with a small
bugfix. Patches 2-7 are the updated version of
id:1390087855-26194-1-git-send-email-markwalters1009@gmail.com

There are three comments for Patch 4 (the key one of 2-7). First I use
(cons 'deleted/'added/nil tag) as the key for the hashtable
lookup. Secondly the deleted/added tag formatting is now applied on
top of the normal tag formatting (as suggested by Austin). Thirdly:
this has one slightly tricky corner case: a user could hide the tag
normally but want it shown when deleted. This has to be special cased
in the code the avoid applying e.g. propertize to the output of the
first stage formatting: namely nil. A possible alternative would be to
treat all empty-strings as "omit this tag" but I am not sure what
things like images look like to emacs.


Best wishes

Mark




Austin Clements (1):
  Make keys of notmuch-tag-formats regexps and use caching

Mark Walters (6):
  emacs: tag split customise option for format-tags into a widget
  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  |  186 ++++++++++++++++++++++++++++++++++++++-----------
 emacs/notmuch-tree.el |    9 ++-
 emacs/notmuch.el      |   40 ++++++----
 test/test-lib.el      |    5 ++
 5 files changed, 184 insertions(+), 62 deletions(-)

-- 
1.7.9.1

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

end of thread, other threads:[~2014-02-14  9:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-14  9:15 [WIP Patch 0/7] emacs: show tag changes in buffer Mark Walters
2014-02-14  9:15 ` [WIP Patch 1/7] Make keys of notmuch-tag-formats regexps and use caching Mark Walters
2014-02-14  9:15 ` [WIP Patch 2/7] emacs: tag split customise option for format-tags into a widget Mark Walters
2014-02-14  9:15 ` [WIP Patch 3/7] emacs: tag: add customize for deleted/added tag formats Mark Walters
2014-02-14  9:15 ` [WIP Patch 4/7] emacs: show: mark tags changed since buffer loaded Mark Walters
2014-02-14  9:15 ` [WIP Patch 5/7] emacs: show: use orig-tags for tag display Mark Walters
2014-02-14  9:15 ` [WIP Patch 6/7] emacs: search: use orig-tags in search Mark Walters
2014-02-14  9:15 ` [WIP Patch 7/7] emacs: tree: " Mark Walters

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).