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

Emacs-W3m Bug

Hi, I'm use Emacs ( and Emacs-W3m (1.5)

This is little bug about Emacs-W3m that make bemused:

I have a function about Google search for Chinese,

(defun w3m-search-google-cn (what)
  "Use google to search for WHAT."
  (interactive "sGoogle Search (CN): ")
  (w3m-goto-url-new-session (concat "http://www.google.cn/search?q=";
				    (w3m-url-encode-string what))))

So, problem is when is use w3m-search-google-cn search keyboard 'emacs-w3m', all thing is right.
But when i search keyword 'emacs-w3m irc', the Emacs-W3m is dead, and now Emacs can't respond my any
input. So i have to 'killall emacs'.

I have add one patch that Katsumi Yamaoka give me, at blow:

> --8<---------------cut here---------------start------------->8--- 
> --- w3m-cookie.el~      2007-10-17 11:15:57 +0000                                                                                             
> +++ w3m-cookie.el       2008-01-22 08:34:44 +0000
> @@ -50,7 +50,8 @@                                                                                                             
> (defconst w3m-cookie-two-dot-domains-regexp
>    (concat "\\.\\(?:"                                                                                                                   
> -         (mapconcat 'identity (list "com" "edu" "net" "org" "gov" "mil" "int")
> +         (mapconcat 'identity                                                                               
> +                    (list "com" "edu" "net" "org" "gov" "mil" "int" "cn")
>                      "\\|")                                                                                    
>           "\\)$")
>    "A regular expression of top-level domains that only require two matching
> --8<---------------cut here---------------end--------------->8---

So, can you tell me why?
Thanks! ^_^