summaryrefslogtreecommitdiff
path: root/lisp/gnus/eww.el
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2013-06-17 09:19:50 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2013-06-17 09:19:50 +0000
commit7304e4dd67bb88abadf198f47e75cea971aaa5cc (patch)
tree183bd9a84da52497ce1a012ab3ee0b6bdf3ccfb2 /lisp/gnus/eww.el
parentd363bffbedce7027288fbe7f05040e4ff71ff4bc (diff)
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.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/gnus/eww.el b/lisp/gnus/eww.el
index a79738a283..6460ee7960 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)