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

Re: [PATCH] w3m-input-url



On 2017-05-30 17:23, Katsumi Yamaoka wrote:
> In [emacs-w3m : No.12656]
> . . .
> I feel like a better place to modify would be `w3m-canonicalize-url'.
> How about the following setting and the patch?

If it works, I'm happy!

>
> (setq w3m-enable-google-feeling-lucky nil)
>

> --- w3m.el~	2017-05-29 02:40:19.000000000 +0000
> +++ w3m.el	2017-05-30 08:21:42.041291600 +0000
> @@ -4629,7 +4629,8 @@
>  	replaced)
>         ((match-beginning 1)
>  	url)
> -       (feeling-lucky
> +       ((or feeling-lucky
> +	    (string-match " " url))
>  	(concat "\
>  http://www.google.com/search?btnI=I%%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=";
>  		(w3m-url-encode-string url nil t)))

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0