all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Patch to change mouse binding for html view in gnus
@ 2007-07-01 20:42 Tom Tromey
  2007-07-01 21:48 ` Reiner Steib
  0 siblings, 1 reply; 12+ messages in thread
From: Tom Tromey @ 2007-07-01 20:42 UTC (permalink / raw)
  To: Emacs Hackers

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-07-12 22:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-01 20:42 Patch to change mouse binding for html view in gnus Tom Tromey
2007-07-01 21:48 ` Reiner Steib
2007-07-01 21:43   ` Tom Tromey
2007-07-02  2:59     ` Katsumi Yamaoka
2007-07-02 17:29       ` Tom Tromey
2007-07-03  4:33         ` Katsumi Yamaoka
2007-07-03 17:19           ` Tom Tromey
2007-07-03 23:18             ` Katsumi Yamaoka
2007-07-04  6:10               ` Katsumi Yamaoka
2007-07-12 16:05               ` Tom Tromey
2007-07-12 18:19                 ` Stefan Monnier
2007-07-12 22:42                   ` Katsumi Yamaoka

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.