From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: Refreshing Firefox window from within Emacs? Date: Mon, 9 Jan 2006 10:32:49 -0500 Message-ID: <20060109103249.3dce6d19@dellap.mousecar.net> References: <1136058872.274995.18110@g47g2000cwa.googlegroups.com> Reply-To: gebser@speakeasy.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137198926 29012 80.91.229.2 (14 Jan 2006 00:35:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2006 00:35:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 14 01:35:19 2006 Return-path: Envelope-to: geh-help-gnu-emacs@GMANE.ORG Original-Received: from mail-relay.eunet.no ([193.71.71.242]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ExZ5g-00024C-E7 for geh-help-gnu-emacs@GMANE.ORG; Sat, 14 Jan 2006 01:16:20 +0100 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by mail-relay.eunet.no (8.13.1/8.13.1/GN) with ESMTP id k09I4tda031257 for ; Mon, 9 Jan 2006 19:05:01 +0100 (CET) (envelope-from help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org) Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ew1N3-0005xE-91 for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jan 2006 13:03:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Evz9S-0003cf-SR for help-gnu-emacs@gnu.org; Mon, 09 Jan 2006 10:41:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Evz9Q-0003bE-LQ for help-gnu-emacs@gnu.org; Mon, 09 Jan 2006 10:41:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Evz38-0001mF-M8 for help-gnu-emacs@gnu.org; Mon, 09 Jan 2006 10:35:11 -0500 Original-Received: from [69.17.117.6] (helo=mail4.sea5.speakeasy.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Evz5Q-0006uf-WC for help-gnu-emacs@gnu.org; Mon, 09 Jan 2006 10:37:33 -0500 Original-Received: (qmail 23722 invoked from network); 9 Jan 2006 15:33:07 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO dellap.mousecar.net) ([66.93.11.17]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 9 Jan 2006 15:33:07 -0000 Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-Mailer: Sylpheed-Claws 1.0.3 (GTK+ 1.2.10; i686-suse-linux) 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:32634 Archived-At: On 04 Jan 2006 16:29:41 -0700 Edward Dodge wrote: > batkins57@gmail.com writes: > > If the "code" you are speaking of is actually .html, you can simply > bind the following function to a handy key-combination: > > browse-url-of-file > > Also, you may have to set your default browser for the > "browse-url..." commands to Firefox in your .emacs. Thanks for the hint. The dunces among us (e.g., see Sender field) need more. It seems that, with my emacs setup anyway, if you're not using netscape, it's necessary to Customize the "Browse Url Browser Function" variable. I already found out that the CLI command to open a URL in Firefox is mozilla -a firefox -remote 'openURL(http://www.domain.tld/file.html)' So a couple brain cells are telling me to do this into Customize: mozilla -a firefox -remote'openURL(buffer-file-name)' But unless this function is smarter than I think I am, I doubt this is going to work... because buffer-file-name returns the name of a file while the "mozilla -a firefox..." command calls for a URL. In fact, I just tried to save the customization and got an error: "Invalid function: mozilla". Any help appreciated. -- "It is not knowable how long that conflict would last, it could last, you know, six days, six weeks. I doubt six months." --Secretary of Defense Donald Rumsfeld, 2/7/03