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

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

Re: Open Firefox from Emacs on MacOSX


From: Harald Hanche-Olsen
Subject: Re: Open Firefox from Emacs on MacOSX
Date: Tue, 15 May 2007 23:17:43 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (berkeley-unix)

+ Stefan Nobis <snobis@gmx.de>:

| I'm new to MacOSX and just tried to setup (Carbon) Emacs (22.0.97) to open a
| new Firefox (2.0) tab for e.g. browse-url-at-point:
|
|   (setq browse-url-browser-function 'browse-url-firefox)
|   (setq browse-url-firefox-program 
"/Applications/Firefox.app/Contents/MacOS/firefox")
|
| This doesn't work. I read that Firefox on Windows doesn't support the
| -remote option and it seems, this is the case on MacOSX, too. Is this
| assumption right and has anyone an idea how to workaround this
| inconvenience?

I run emacs 23, so I am not sure this is in emacs 22, but I think it's
likely, in which case something like this works for me:

(defun browse-url-firefox-on-mac (url &rest ignored)
  (do-applescript
   (format "tell application \"Firefox\" to Get URL \"%s\"" url)))
(setq browse-url-browser-function 'browse-url-firefox-on-mac)

Not sure what to do with any extra arguments.

-- 
* Harald Hanche-Olsen     <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
  when there is no ground whatsoever for supposing it is true.
  -- Bertrand Russell


reply via email to

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