fixed #107 - url encoded the google query string

This commit is contained in:
Bozhidar Batsov 2012-03-28 14:40:50 +03:00
parent ab37af433f
commit 072d856621

View file

@ -75,9 +75,9 @@ file of a buffer in an external program."
(browse-url (browse-url
(concat (concat
"http://www.google.com/search?ie=utf-8&oe=utf-8&q=" "http://www.google.com/search?ie=utf-8&oe=utf-8&q="
(if mark-active (url-hexify-string (if mark-active
(buffer-substring (region-beginning) (region-end)) (buffer-substring (region-beginning) (region-end))
(read-string "Google: "))))) (read-string "Google: "))))))
(defun prelude-indent-rigidly-and-copy-to-clipboard (begin end indent) (defun prelude-indent-rigidly-and-copy-to-clipboard (begin end indent)
"Copy the selected code region to the clipboard, indented according "Copy the selected code region to the clipboard, indented according