]> git.notmuchmail.org Git - notmuch/commit
emacs/show: force notmuch-show-buttonise-links to act on lines
authorDavid Bremner <david@tethera.net>
Sun, 9 Oct 2016 22:30:44 +0000 (19:30 -0300)
committerDavid Bremner <david@tethera.net>
Wed, 12 Oct 2016 01:40:25 +0000 (22:40 -0300)
commitf575a346df09c82691bb9e7c462836d982fe31f7
tree6d11ef6c8d5e5488d2de13035d2bc1f2c4c52167
parentb2d6f07a028a443c2f96e1684be5ec3addb55d96
emacs/show: force notmuch-show-buttonise-links to act on lines

This seems to fix a problem with emacs 25 creating partial buttons by
calling n-s-b-l with a region that does not include the whole button.
I'm not 100% sure it's legit to act outside the region passed by
jit-lock, but goto-address-fontify-region (where I borrowed the code
from) already does this, so this patch to not make things worse.
emacs/notmuch-show.el