aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2016-12-05 23:32:36 +0000
committerKatsumi Yamaoka2016-12-05 23:32:36 +0000
commit81059cb970f95362eb52d6f53bbf02c70172048b (patch)
treec13e30ba71391ed6061158f8cc561c774cad929d
parent1b762de16642cd08a7fbc47e2e0c058af2e09a11 (diff)
downloademacs-81059cb970f95362eb52d6f53bbf02c70172048b.tar.gz
emacs-81059cb970f95362eb52d6f53bbf02c70172048b.zip
Make TAB and M-TAB run widget-forward and widget-backward (bug#25091)
* lisp/gnus/mm-decode (mm-convert-shr-links): Avoid `shr-next-link' and `shr-previous-link' so TAB and M-TAB run `widget-forward' and `widget-backward' instead (bug#25091).
-rw-r--r--lisp/gnus/mm-decode.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index 4b3f10c2e19..3127a22e41d 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -1859,6 +1859,10 @@ If RECURSIVE, search recursively."
1859 (dolist (key (where-is-internal #'widget-button-click widget-keymap)) 1859 (dolist (key (where-is-internal #'widget-button-click widget-keymap))
1860 (unless (lookup-key keymap key) 1860 (unless (lookup-key keymap key)
1861 (define-key keymap key #'ignore))) 1861 (define-key keymap key #'ignore)))
1862 ;; Avoid `shr-next-link' and `shr-previous-link' in `keymap' so
1863 ;; TAB and M-TAB run `widget-forward' and `widget-backward' instead.
1864 (substitute-key-definition 'shr-next-link nil keymap)
1865 (substitute-key-definition 'shr-previous-link nil keymap)
1862 (dolist (overlay (overlays-at start)) 1866 (dolist (overlay (overlays-at start))
1863 (overlay-put overlay 'face nil)) 1867 (overlay-put overlay 'face nil))
1864 (setq start end))))) 1868 (setq start end)))))