]> git.notmuchmail.org Git - notmuch/commit
emacs: Use result text properties for search result iteration
authorAustin Clements <amdragon@MIT.EDU>
Sat, 21 Jul 2012 17:37:08 +0000 (13:37 -0400)
committerDavid Bremner <bremner@debian.org>
Tue, 24 Jul 2012 12:21:38 +0000 (09:21 -0300)
commit7ba5c86399f8c479442938dd2cc7ad07edd4d985
tree4fac419f9026e69600a51f797ef2504994c5ff5a
parent2a91f636d8c3d478619c0a5040685aca1ac75842
emacs: Use result text properties for search result iteration

This simplifies the traversal of regions of results and eliminates the
need for save-excursions (which tend to get in the way of maintaining
point when we make changes to the buffer).  It also fixes some strange
corner cases in the old line-based code where results that bordered
the region but were not included in it could be affected by region
commands.  Coincidentally, this also essentially enables multi-line
search result formats; the only remaining non-multi-line-capable
functions are notmuch-search-{next,previous}-thread, which are only
used for interactive navigation.
emacs/notmuch.el