all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Refreshing Firefox window from within Emacs?
Date: Mon, 16 Jan 2006 10:26:41 -0700	[thread overview]
Message-ID: <dqgl0j$6db$1@sea.gmane.org> (raw)
In-Reply-To: <20060114101855.2b0d93fb@dellap.mousecar.net>

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	other threads:[~2006-01-16 17:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-31 19:54 Refreshing Firefox window from within Emacs? batkins57
2005-12-31 22:51 ` Thorsten Bonow
2006-01-01 11:56   ` Lennart Borgman
2006-01-04 11:30     ` ken
2006-01-04 23:29 ` Edward Dodge
2006-01-09 15:32   ` ken
2006-01-14 15:18     ` ken
2006-01-16 17:26       ` Kevin Rodgers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dqgl0j$6db$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.