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

Re: w3m-search-engine-alist thinks the default is Japanese

In [emacs-w3m : No.11305] jidanni@xxxxxxxxxxx wrote:
> That won't help, because it is already nil. defcustom
> w3m-search-engine-alist looks at more that just w3m-language.

Sorry, I seem not to have understood what you wrote.  That you
pointed was the url form for "google news", right?

In [emacs-w3m : No.11301] jidanni@xxxxxxxxxxx wrote:
>  ("google-en" "http://www.google.com/search?q=%s&hl=en&ie=utf-8&oe=utf-8" utf-8)
>  ("google news" "http://news.google.co.jp/news?hl=ja&ie=utf-8&q=%s&oe=utf-8" utf-8)

In your environment the other google entries now should be:

("google" "http://www.google.com/search?q=%s&ie=utf-8&oe=utf-8" utf-8)
("google news-en" "http://news.google.com/news?hl=en&q=%s")

Anyway the url form for the "google news" entry for the non-
Japanese environment is obviously wrong.  It have to be fixed

("google news" "http://news.google.co.jp/news?hl=en&ie=utf-8&q=%s&oe=utf-8" utf-8)

Is it ok?  You can verify it by evaluating the following form to
modify the entry.

(setcar (cdr (assoc "google news" w3m-search-engine-alist))

In addition, the "google news-en" entry for the non-Japanese
environment and the "google news-ja" entry for systems in which
utf-8 is not available seem to be useless, so I'd like to delete
them.  I.e.:
--- w3m-search.el~	2009-09-02 01:32:35 +0000
+++ w3m-search.el	2010-08-17 00:39:09 +0000
@@ -128,16 +128,11 @@
 	  '(("google news"
-	     "http://news.google.co.jp/news?hl=ja&ie=utf-8&q=%s&oe=utf-8"
-	     utf-8)
-	    ("google news-en"
-	     "http://news.google.com/news?hl=en&q=%s")))
+	     "http://news.google.co.jp/news?hl=en&ie=utf-8&q=%s&oe=utf-8"
+	     utf-8)))
 	  '(("google news"
-	     "http://news.google.com/news?q=%s")
-	    ("google news-ja"
-	     "http://news.google.co.jp/news?hl=ja&ie=Shift_JIS&q=%s&oe=Shift_JIS"
-	     shift_jis))))
+	     "http://news.google.com/news?q=%s"))))
       ("google groups"
       ,@(if ja