unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* google search result differ in Opera and w3m
@ 2008-08-14 12:20 Xah
  2008-08-16 20:33 ` Xah
  0 siblings, 1 reply; 7+ messages in thread
From: Xah @ 2008-08-14 12:20 UTC (permalink / raw)
  To: help-gnu-emacs

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/^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-08-18  1:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-14 12:20 google search result differ in Opera and w3m Xah
2008-08-16 20:33 ` Xah
2008-08-17 11:51   ` Nikolaj Schumacher
2008-08-17 12:52   ` Thorsten Bonow
2008-08-17 20:16     ` Xah
2008-08-17 21:41       ` Thorsten Bonow
2008-08-18  1:32         ` Xah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).