|
Subject: Patch to change mouse binding for html view in gnus Newsgroups: gmane.emacs.devel Date: 2007-07-01 20:42:29 GMT (2 years, 3 days, 3 hours and 19 minutes ago) I have w3m installed, and so when Gnus sees an HTML message it is displayed via w3m. This is quite nice. However, if I click on a link in an HTML message rendered this way, the target is displayed using w3m. I generally don't want this; I only use w3m in Emacs for specialized things and in other cases I'd rather use my external web browser. This patch changes Gnus to use browse-url rather than w3m for links in buffers it renders. Tom 2007-07-01 Tom Tromey <tromey <at> redhat.com> * mm-view.el (mm-inline-text-html-render-with-w3m): Locally set w3m-goto-article-function. cvs diff: Diffing . Index: mm-view.el =================================================================== RCS file: /sources/emacs/emacs/lisp/gnus/mm-view.el,v retrieving revision 1.29 diff -u -r1.29 mm-view.el --- mm-view.el 19 Apr 2007 12:08:53 -0000 1.29 +++ mm-view.el 1 Jul 2007 20:58:45 -0000 @@ -252,6 +252,7 @@ (let ((w3m-safe-url-regexp mm-w3m-safe-url-regexp) w3m-force-redisplay) (w3m-region (point-min) (point-max) nil charset)) + (set (make-local-variable 'w3m-goto-article-function) #'browse-url) (when (and mm-inline-text-html-with-w3m-keymap (boundp 'w3m-minor-mode-map) w3m-minor-mode-map) |
|
|