[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30148: 26.0.91; EWW binding for `r'
From: |
Lars Ingebrigtsen |
Subject: |
bug#30148: 26.0.91; EWW binding for `r' |
Date: |
Sat, 14 Apr 2018 00:17:59 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
>> Also, I do not understand why eww-link-keymap is a copy of
>> shr-image-map, when so many commands that could apply to images do not
>> apply to links:
>>
>> (defvar eww-link-keymap
>> (let ((map (copy-keymap shr-image-map)))
>> (define-key map "\r" 'eww-follow-link)
>> map))
>
> It's presumably to have the image commands not disappear if there's an
> image in a link. Too bad Emacs doesn't have a way to add several local
> keymaps using text properties...
I've now tweaked this to make the image commands go away on non-image
links in eww.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no