mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-22 18:35:09 +00:00
Prefer keymap inheritance in shr-image-map
* lisp/net/shr.el (shr-image-map): Replace copy-keymap with inheritance.
This commit is contained in:
parent
a371298d2a
commit
cbfd959e26
@ -290,11 +290,10 @@ and other things:
|
||||
"O" #'shr-save-contents
|
||||
"RET" #'shr-browse-url)
|
||||
|
||||
(defvar shr-image-map
|
||||
(let ((map (copy-keymap shr-map)))
|
||||
(when (boundp 'image-map)
|
||||
(set-keymap-parent map image-map))
|
||||
map))
|
||||
(defvar-keymap shr-image-map
|
||||
:parent (if (boundp 'image-map)
|
||||
(make-composed-keymap shr-map image-map)
|
||||
shr-map))
|
||||
|
||||
;; Public functions and commands.
|
||||
(declare-function libxml-parse-html-region "xml.c"
|
||||
|
Loading…
Reference in New Issue
Block a user