Don't bind image commands on non-image links in Gnus
commit4575ae5a9c5589ac903362486951f0d36c8ff8ee
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 13 Apr 2018 21:49:58 +0000 (13 23:49 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 13 Apr 2018 21:49:58 +0000 (13 23:49 +0200)
tree116fdcc81ca8b803d9bd6d5b2d21fc0737ea71ad
parent52a5bc89c92cb4be88d9ec6eb2df178560559320
Don't bind image commands on non-image links in Gnus

* lisp/gnus/mm-decode.el (mm--images-in-region-p): New utility
function.
(mm-convert-shr-links): Only use the shr image map on links that
contain images.  This avoids binding commands like `r' on links
that don't need it.
lisp/gnus/mm-decode.el