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

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

google search result differ in Opera and w3m


From: Xah
Subject: google search result differ in Opera and w3m
Date: Thu, 14 Aug 2008 05:20:27 -0700 (PDT)
User-agent: G2/1.0

it's kinda odd that it seems google search results shows up
differently when used in Opera and w3m with 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 and w3m.

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 in w3m. This is just one
example. I noticed many other examples when using this command.

Any idea why?

  Xah
∑ http://xahlee.org/

reply via email to

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