help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: google search result differ in Opera and w3m


From: Xah
Subject: Re: google search result differ in Opera and w3m
Date: Sat, 16 Aug 2008 13:33:47 -0700 (PDT)
User-agent: G2/1.0

The results from using Opera, Safari, Firefox, in google search seems
to differ from results shown in w3m.

To test, try this url in Firefox and w3m/emacs:

http://www.google.com/search?q=%22The%20computer%20wizards%20at%20Industrial%20Light%20and%20Magic%20help%20alchemize%22

Firefox shows many results, top one is this time mag article:
http://www.time.com/time/magazine/article/0,9171,981238-1,00.html

but in w3m it just shows one vocabulary page on my website that quoted
this phrase.

Anyone reproduce? I'm suspecting this is w3m bug or the w3m-mode bug?

  Xah
∑ http://xahlee.org/

☄

On Aug 14, 5:20 am, Xah <address@hidden> wrote:
> it's kinda odd that it seems google search results shows up
> differently when used in Opera andw3mwith emacs interface.
>
> For example, i've defined this:
>
> (defun lookup-google ()
> "Look up the current word or region in google.\n
> This command generates a url for google search and switches
> you to browser."
>  (interactive)
>  (let (myphrase myurl)
>    (setq myphrase
>          (if (and transient-mark-mode mark-active)
>              (buffer-substring-no-properties (region-beginning)
> (region-end))
>            (thing-at-point 'symbol)))
>   (setq myphrase (replace-regexp-in-string " " "%20" myphrase))
>   (setq myurl (concat "http://www.google.com/search?q=%22"; myphrase
> "%22"))
>   (shell-command (concat "open -a opera " "\""  myurl "\""))
>   (w3m-browse-url myurl)
> ;;    (browse-url myurl)
>    ))
>
> the command send the region text as quoted search in google and shows
> results both in Opera andw3m.
>
> I have the region like this: “but this starts looking like plain hard
> slog.”. Then the command searches with this string “"but this starts
> looking like plain hard slog."”.
>
> but the result is different in Opera and inw3m. This is just one
> example. I noticed many other examples when using this command.
>
> Any idea why?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]