which found on google:
(defun search-word ()
(interactive)
(browse-url
(concat "http://foo.bar.foobar/index.php?search="
(thing-at-point 'word))))
but this is only with the word at point, I want ask a word, any help?
thanks
Well, that was an easy one ;)
(defun search-word ()
(interactive)
(browse-url
(concat "http://foo.bar.foobar/index.php?search="
(read-from-minibuffer "Word: "))))
If you really want to store the value into a variable do this:
(defun search-word ()
"Search for a word in foo bar"
(interactive)
(let ((word (read-from-minibuffer "Word: ")))
(browse-url
(concat "http://foo.bar.foobar/index.php?search=" word))))
bye
weber
(defun search-word (word)
(interactive "sWord: ")
(browse-url (concat "http://foo.bar.foobar/index.php?search=" word)))
--
Joost Kremers joostk...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)