diff options
author | Austin Clements <amdragon@MIT.EDU> | 2012-07-21 13:37:06 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-07-24 09:04:38 -0300 |
commit | 60ebc84945731e37d6cbec19ce51c08c408b49e8 (patch) | |
tree | 91bfcdc57c1323ca3100370786f99390e5840646 /NEWS | |
parent | ae30f33093ebca63f8a18fff7054ac147898af94 (diff) |
emacs: Use text properties instead of overlays for tag coloring
Previously, tag-based search result highlighting was done by creating
an overlay over each search result. However, overlays have annoying
front- and rear-advancement semantics that make it difficult to
manipulate text at their boundaries, which the next patch will do.
They also have performance problems (creating an overlay is linear in
the number of overlays between point and the new overlay, making
highlighting a search buffer quadratic in the number of results).
Text properties have neither problem. However, text properties make
it more difficult to apply multiple faces since, unlike with overlays,
a given character can only have a single 'face text property. Hence,
we introduce a utility function that combines faces into any existing
'face text properties.
Using this utility function, it's straightforward to apply all of the
appropriate tag faces in notmuch-search-color-line.
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions