[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Embedding external application in emacs (or using emacs to control e
From: |
Thorsten Bonow |
Subject: |
Re: Embedding external application in emacs (or using emacs to control exeternal application) |
Date: |
Tue, 28 Oct 2008 19:05:05 +0100 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.21 (linux) |
>>>>> "Corey" == Corey Foote <coreyfoote@hotmail.com> writes:
Corey> Is there a way to embed external application (such as firefox) inside
Corey> an Emacs buffer and use Emacs to control them? If not, would it be
Corey> possible to simply send an external application (again like firefox)
Corey> a command from within emacs without it being embedded. For example,
Corey> say I was working on an HTML page in emacs and wanted to preview my
Corey> changes by refreshing the page in firefox. I would just like to be
Corey> able to say something like M-x refresh-firefox, and not have to click
Corey> over to the firefox window to his refresh myself. What would be
Corey> required to add this feature?
Corey>
Hi,
I don't think your first scenario is possible, but here I'm way out of my
depth. Just guessing because I don't know of any other "embedded" app.
Case two is possible.
You could look up "browse-url" in the emacs manual: Commands for interaction
with a browser.
But Emacs is able to start (a)synchronous subprocesses with or without a shell,
so calling another app with the current file-name as option should be
possible. All this is documented in the GNU Emacs Lisp Reference Manual. Search
for `start-process'.
Hope this helps
Toto
Contact information and PGP key at
http://www.withouthat.org/~toto/contact.html
It wasn't a healthy attitude, but it wasn't really a healthy world.
Friedman, Kinky (1993), A case of Lone Star. New York (Wings Books),
391