]> rtime.felk.cvut.cz Git - notmuch.git/commit
emacs: show: w3m/invisibility workaround
authorMark Walters <markwalters1009@gmail.com>
Sun, 13 Jan 2013 12:43:52 +0000 (12:43 +0000)
committerDavid Bremner <bremner@debian.org>
Mon, 14 Jan 2013 23:46:13 +0000 (19:46 -0400)
commitf1a355febf27de6c2bf5fec1b038af2e96f93263
tree8a3394e1dae29949c08833be3e4533c3c01fe267
parente43e0af920ead3beb17a4a9c821042cfe56a7ab7
emacs: show: w3m/invisibility workaround

There is a bug in the current notmuch code with w3m and invisible
parts. w3m sets a keymap, and if we have a hidden [text/html] point
at the start of the following line still gets this w3m keymap which
causes some strange effects. For example, RET gives an error "No URL
at Point" rather than hiding the message, <down> goes to the next link
rather than just down a line.

These keybinding are also inconvenient when the text/html part is
displayed so we ask w3m not to install a keymap.

This is only likely to be a problem for emacs 23 as shr is preferred
as html renderer on emacs 24 (although the user can set the renderer
to w3m even on emacs 24).

This solution was suggested by Tomi Ollila <tomi.ollila@iki.fi>
emacs/notmuch-show.el