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

Re: w3m-view-url-with-external-browser vs. "embed'



From: jidanni@xxxxxxxxxxx said
Subject: [emacs-w3m:11432] w3m-view-url-with-external-browser vs. "embed'
Message-ID: <8739q6xvdc.fsf@xxxxxxxxxxx>
Date: Fri, 10 Dec 2010 09:35:43 +0800

> On http://blog.dreamhost.com/2010/11/04/mod_pagespeed-now-available/ I
> put the cursor upon the link
> embed(http://www.youtube.com/v/8moGR2qf994?fs=1&hl=en_US)
> and hit
> M runs the command w3m-view-url-with-external-browser
> but all does not work smoothly... I end up having to do it by hand.
> 
> w3m-el-snapshot/unstable uptodate 1.4.400+0.20100725-1

Try this patch. In this case, I think correct answer that
execute default web browser on your System.

Index: w3m.el
===================================================================
RCS file: /storage/cvsroot/emacs-w3m/w3m.el,v
retrieving revision 1.1505
diff -u -u -r1.1505 w3m.el
--- w3m.el	9 Dec 2010 04:38:13 -0000	1.1505
+++ w3m.el	12 Dec 2010 10:38:02 -0000
@@ -6906,7 +6906,11 @@
 	  (lexical-let ((method
 			 (or (nth 2 (assoc type w3m-content-type-alist))
 			     (nth 2 (assoc (w3m-prepare-content url type nil)
-					   w3m-content-type-alist)))))
+					   w3m-content-type-alist))))
+			(default
+			  (nth 2 (assoc "text/html" w3m-content-type-alist))))
+	    (when (and (not method) default)
+	      (setq method default))
 	    (cond
 	     ((not method)
 	      (if (w3m-url-local-p url)

-- 
Hideyuki Shirai (mailto:shirai@xxxxxxxxxxx)
日本語で

前からこの挙動は気になっていたのですが、まぁ w3m-process-stop()
で止めればいいや、と思っていましたが、Jidanni さんのいうこともご
もっともだと思います。

面倒くさい?ので default browser 任せで良いと考えますが、どうで
しょうか?