Re: [PATCH v2 4/7] emacs: Use result text properties for search result iteration

2012-07-14 Thread Jameson Graef Rollins
On Fri, Jul 13 2012, Austin Clements amdra...@mit.edu wrote: 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 interactively. So I tried to

Re: [PATCH v2 4/7] emacs: Use result text properties for search result iteration

2012-07-14 Thread Austin Clements
Quoth Jameson Graef Rollins on Jul 14 at 12:31 pm: On Fri, Jul 13 2012, Austin Clements amdra...@mit.edu wrote: Coincidentally, this also essentially enables multi-line search result formats; the only remaining non-multi-line-capable functions are notmuch-search-{next,previous}-thread,

Re: [PATCH v2 4/7] emacs: Use result text properties for search result iteration

2012-07-14 Thread Austin Clements
Quoth myself on Jul 14 at 3:50 pm: Quoth Jameson Graef Rollins on Jul 14 at 12:31 pm: On Fri, Jul 13 2012, Austin Clements amdra...@mit.edu wrote: +(defmacro notmuch-search-do-results (beg end pos-sym rest body) + Invoke BODY for each result between BEG and END. + +POS-SYM will be

Re: [PATCH v2 4/7] emacs: Use result text properties for search result iteration

2012-07-14 Thread Jameson Graef Rollins
On Sat, Jul 14 2012, Austin Clements amdra...@mit.edu wrote: That's strange. What was the error? I've been testing with ((date . %12s ) (count . %-7s ) (authors . %-20s ) (subject . \n%s ) (tags . (%s))) But maybe there are other cases it doesn't handle correctly?

Re: [PATCH v2 4/7] emacs: Use result text properties for search result iteration

2012-07-14 Thread Mark Walters
On Sat, 14 Jul 2012, Austin Clements amdra...@mit.edu wrote: 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

Re: [PATCH v2 4/7] emacs: Use result text properties for search result iteration

2012-07-14 Thread Austin Clements
Quoth Jameson Graef Rollins on Jul 14 at 2:13 pm: On Sat, Jul 14 2012, Austin Clements amdra...@mit.edu wrote: That's strange. What was the error? I've been testing with ((date . %12s ) (count . %-7s ) (authors . %-20s ) (subject . \n%s ) (tags . (%s))) But

Re: [PATCH v2 4/7] emacs: Use result text properties for search result iteration

2012-07-14 Thread Jameson Graef Rollins
On Sat, Jul 14 2012, Austin Clements amdra...@mit.edu wrote: I think this is just a sharp corner in customize and there's notmuch we can do about it. I believe the proper way to enter the newline directly in customize is to hit C-q C-j (same way you get a raw newline in any other buffer).