From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Fineman Newsgroups: gmane.emacs.help Subject: Re: w3m browser in Emacs Date: Sat, 20 Jun 2009 18:03:41 -0400 Organization: A noiseless patient Spider Message-ID: References: <8c839f13-1b7b-4f69-b0b2-8749591166e7@y33g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245537646 20487 80.91.229.12 (20 Jun 2009 22:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jun 2009 22:40:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 21 00:40:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MI9Ep-0003pr-SJ for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Jun 2009 00:40:44 +0200 Original-Received: from localhost ([127.0.0.1]:56423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MI9Eo-0004gm-Vu for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Jun 2009 18:40:43 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.esat.net!feeder.news.heanet.ie!feeder.erje.net!feeder.motzarella.org!news.motzarella.org!eternal-september.org!news.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-X-Trace: news.eternal-september.org U2FsdGVkX190K94nXZSSaW41rq4n+Ma6lGfkev8pzdbrS9lq24pBaJvjTXvz7SDwvWW7mfF6gNfJKOJFBomI/hIgp7QXOrpC9WyglUxzJY3IqgRZv9aJbcW0JEz/Md+r1belQHZIq3A= Original-X-Complaints-To: abuse@motzarella.org Original-NNTP-Posting-Date: Sat, 20 Jun 2009 22:03:01 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/52URmmaNyxvWINAb9qfAfdS2APwH8KFA= Cancel-Lock: sha1:vXuNWpTtDfn7QvPy1Ur7OCnaA0k= sha1:mpOl5/cX5S0RgWyFbAdo1pmTpqQ= User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (windows-nt) Original-Xref: news.stanford.edu gnu.emacs.help:170186 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65408 Archived-At: Sean Sieger writes: > Joe Fineman writes: > > I have an Emacs command that, when I type C-c g, prompts for a > word or phrase & looks it up in Google. > > May I have it? (defun google (what) "Use google to search for WHAT." (interactive "sSearch: ") (save-window-excursion (delete-other-windows) (let ((dir default-directory)) (w3m-browse-url (concat "http://www.google.com/search?q=" (w3m-url-encode-string what))) (cd dir) (recursive-edit)))) (global-set-key "\C-Cg" 'google) -- --- Joe Fineman joe_f@verizon.net ||: The bottom line is in hell. :||