From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Refreshing Firefox window from within Emacs? Date: Mon, 16 Jan 2006 10:26:41 -0700 Message-ID: References: <1136058872.274995.18110@g47g2000cwa.googlegroups.com> <20060109103249.3dce6d19@dellap.mousecar.net> <20060114101855.2b0d93fb@dellap.mousecar.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137439601 15127 80.91.229.2 (16 Jan 2006 19:26:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2006 19:26:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 16 20:26:36 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EyZzR-000843-PC for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jan 2006 20:26:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eya1k-00078p-BA for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jan 2006 14:28:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EyYCZ-0002RV-1j for help-gnu-emacs@gnu.org; Mon, 16 Jan 2006 12:31:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EyYB0-0001dD-WE for help-gnu-emacs@gnu.org; Mon, 16 Jan 2006 12:29:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EyYAe-0001Ru-TW for help-gnu-emacs@gnu.org; Mon, 16 Jan 2006 12:29:33 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EyYEC-0001Po-9W for help-gnu-emacs@gnu.org; Mon, 16 Jan 2006 12:33:12 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EyY8C-0005Ov-A5 for help-gnu-emacs@gnu.org; Mon, 16 Jan 2006 18:27:00 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Jan 2006 18:27:00 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Jan 2006 18:27:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 48 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <20060114101855.2b0d93fb@dellap.mousecar.net> 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:32680 Archived-At: ken wrote: > On Mon, 9 Jan 2006 10:32:49 -0500 ken wrote: > > >>.... The dunces among us (e.g., see Sender field) .... > > > Well, that didn't say what I wanted it to say. It seems that the > mailing list software changed my Sender field (should have guessed it > would), so let me amend the above to "see From field". > > > Back to the original issue: Refreshing a browser window from within > emacs. > > When I run "M-x browse-url-of-file" I get an error message in the > minibuffer saying "Searching for program: no such file or directory, > netscape". This is logical because I'm using Firefox and not > netscape. So the obvious next step is to alter how browse-url-of-file > works. So I figured out that this command from the CLI works: > > mozilla -a firefox -remote 'openURL(http://www.domain.tld/file.html)' > > The problem comes when I use Customize in emacs to put in this command. > Trying to do so, Customize gives me the error "Invalid function: > mozilla". It seems it's looking for an elisp expression, something I > have no clue as to how to compose. No, as its doc string states, the value of browse-url-browser-function is a function (see the "What Is a Function" node in the Emacs Lisp manual). I think Emacs 22 (aka CVS Emacs) defines the browse-url-firefox and browse-url-mozilla functions, which would serve as useful values for you. Or you probably could find one of them on the web; try http://www.emacswiki.org/cgi-bin/wiki/BrowseUrl But you might be able to get browse-url-netscape to work for you by tweaking a couple of variables: (setq browse-url-netscape-program "mozilla") (setq browse-url-netscape-arguments '("-a" "firefox")) -- Kevin -- Kevin Rodgers