help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refreshing Firefox window from within Emacs?


From: Kevin Rodgers
Subject: Re: Refreshing Firefox window from within Emacs?
Date: Mon, 16 Jan 2006 10:26:41 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

ken wrote:
On Mon, 9 Jan 2006 10:32:49 -0500 ken <gebser@speakeasy.net> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]