[PATCH v2] emacs: Turn id:"" elements into buttons for notmuch searches

2011-10-17 Thread Daniel Schoepe
t in their domain parts. What do you think? Cheers, Daniel -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111017/f3eba8bd/attachment.pgp>

[PATCH v2] emacs: Turn id:"" elements into buttons for notmuch searches

2011-10-17 Thread Thomas Schwinge
g id:"some at thing" Gr??e, Thomas -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 489 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111017/93931cb8/attachment-0001.pgp>

[PATCH v2] emacs: Turn id:"" elements into buttons for notmuch searches

2011-10-17 Thread Daniel Schoepe
tachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111017/2a99f26e/attachment.pgp>

[PATCH v2] emacs: Turn id:"" elements into buttons for notmuch searches

2011-10-17 Thread Thomas Schwinge
e to match on whitespace and line end, as everything else is too ambiguous. Gr??e, Thomas -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 489 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111017/aff3c28e/attachment.pgp>

Re: [PATCH v2] emacs: Turn id:message-id elements into buttons for notmuch searches

2011-10-17 Thread Thomas Schwinge
Hi! Good idea! On Wed, 6 Jul 2011 16:18:01 +0200, Daniel Schoepe daniel.scho...@googlemail.com wrote: +(defun notmuch-show-buttonise-links (start end) + Buttonise URLs and mail addresses between START and END. + +This also turns id:\message id\-parts into buttons for +a corresponding

Re: [PATCH v2] emacs: Turn id:message-id elements into buttons for notmuch searches

2011-10-17 Thread Daniel Schoepe
On Mon, 17 Oct 2011 11:16:45 +0200, Thomas Schwinge tho...@schwinge.name wrote: Is it permissible for message IDs to contain double quotes? If not (and I hope so), might id:\[^\]+\ be a better regexp? (Untested.) As it appears to me, this would allow proper matching in text like this, too:

Re: [PATCH v2] emacs: Turn id:message-id elements into buttons for notmuch searches

2011-10-17 Thread Thomas Schwinge
Hi! On Mon, 17 Oct 2011 14:13:05 +0200, Daniel Schoepe daniel.scho...@googlemail.com wrote: On Mon, 17 Oct 2011 11:16:45 +0200, Thomas Schwinge tho...@schwinge.name wrote: Is it permissible for message IDs to contain double quotes? If not (and I hope so), might id:\[^\]+\ be a better

Re: [PATCH v2] emacs: Turn id:message-id elements into buttons for notmuch searches

2011-10-17 Thread Daniel Schoepe
On Mon, 17 Oct 2011 15:11:47 +0200, Thomas Schwinge tho...@schwinge.name wrote: Ah, of course, right... Yet, won't yours -- id:\[^ ]+\ -- match too much in this example: Bla, bla, see id:some@thing--some famous quote is bla. How about this one? id:\(\?\)[^[:space:]]+\1 You're