[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch to change mouse binding for html view in gnus

From: Tom Tromey
Subject: Patch to change mouse binding for html view in gnus
Date: Sun, 01 Jul 2007 14:42:29 -0600
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux)

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.


2007-07-01  Tom Tromey  <address@hidden>

        * mm-view.el (mm-inline-text-html-render-with-w3m): Locally set

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-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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]