diff options
author | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2013-06-17 09:19:50 +0000 |
---|---|---|
committer | Katsumi Yamaoka <yamaoka@jpl.org> | 2013-06-17 09:19:50 +0000 |
commit | 7304e4dd67bb88abadf198f47e75cea971aaa5cc (patch) | |
tree | 183bd9a84da52497ce1a012ab3ee0b6bdf3ccfb2 /lisp/gnus/eww.el | |
parent | d363bffbedce7027288fbe7f05040e4ff71ff4bc (diff) | |
download | emacs-7304e4dd67bb88abadf198f47e75cea971aaa5cc.tar.gz emacs-7304e4dd67bb88abadf198f47e75cea971aaa5cc.tar.bz2 emacs-7304e4dd67bb88abadf198f47e75cea971aaa5cc.zip |
Convert shr.el from using overlays into using text properties
* eww.el (eww-mode-map): Use `shr-next-link' (etc) instead of the
widget commands, since we're no longer using widgets for links.
* mm-decode.el (mm-convert-shr-links): New function to convert
new-style shr URL links into widgets.
(mm-shr): Use it.
* shr.el (shr-next-link): New command.
(shr-previous-link): New command.
(shr-urlify): Don't use `widget-convert', because that's slow.
(shr-put-color-1): Use `add-face-text-property' instead of overlays,
because collecting the overlays and reapplying them when generating
tables is slow.
(shr-insert-table): Ditto.
Diffstat (limited to 'lisp/gnus/eww.el')
-rw-r--r-- | lisp/gnus/eww.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/gnus/eww.el b/lisp/gnus/eww.el index a79738a283f..6460ee79604 100644 --- a/lisp/gnus/eww.el +++ b/lisp/gnus/eww.el @@ -206,8 +206,8 @@ (suppress-keymap map) (define-key map "q" 'eww-quit) (define-key map "g" 'eww-reload) - (define-key map [tab] 'widget-forward) - (define-key map [backtab] 'widget-backward) + (define-key map [tab] 'shr-next-link) + (define-key map [backtab] 'shr-previous-link) (define-key map [delete] 'scroll-down-command) (define-key map "\177" 'scroll-down-command) (define-key map " " 'scroll-up-command) |