* Re: Embedding external application in emacs (or using emacs to control exeternal application)
2008-10-28 17:32 Embedding external application in emacs (or using emacs to control exeternal application) Corey Foote
@ 2008-10-28 17:12 ` Toby Cubitt
2008-10-28 17:59 ` Drew Adams
1 sibling, 0 replies; 10+ messages in thread
From: Toby Cubitt @ 2008-10-28 17:12 UTC (permalink / raw
To: help-gnu-emacs
Corey Foote wrote:
> Is there a way to embed external application (such as firefox) inside
> an Emacs buffer and use Emacs to control them? If not, would it be
> possible to simply send an external application (again like firefox)
> a command from within emacs without it being embedded. For example,
> say I was working on an HTML page in emacs and wanted to preview my
> changes by refreshing the page in firefox. I would just like to be
> able to say something like M-x refresh-firefox, and not have to click
> over to the firefox window to his refresh myself. What would be
> required to add this feature?
This doesn't answer your general question, but for getting Firefox to
reload the page you're editing, what about setting the browser tab to
reload every few seconds? There are a number of Firefox extensions that
do that (e.g. Tab Mix Plus).
HTH,
Toby
^ permalink raw reply [flat|nested] 10+ messages in thread
* Embedding external application in emacs (or using emacs to control exeternal application)
@ 2008-10-28 17:32 Corey Foote
2008-10-28 17:12 ` Toby Cubitt
2008-10-28 17:59 ` Drew Adams
0 siblings, 2 replies; 10+ messages in thread
From: Corey Foote @ 2008-10-28 17:32 UTC (permalink / raw
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 856 bytes --]
Is there a way to embed external application (such as
firefox) inside an Emacs buffer and use Emacs to control them? If not, would it be possible to simply send an external application (again like firefox) a command from within emacs without it being embedded. For example, say I was working on an HTML page in emacs and wanted to preview my changes by refreshing the page in firefox. I would just like to be able to say something like M-x refresh-firefox, and not have to click over to the firefox window to his refresh myself. What
would be required to add this feature?
_________________________________________________________________
Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008
[-- Attachment #2: Type: text/html, Size: 1051 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Embedding external application in emacs (or using emacs to control exeternal application)
2008-10-28 17:32 Embedding external application in emacs (or using emacs to control exeternal application) Corey Foote
2008-10-28 17:12 ` Toby Cubitt
@ 2008-10-28 17:59 ` Drew Adams
1 sibling, 0 replies; 10+ messages in thread
From: Drew Adams @ 2008-10-28 17:59 UTC (permalink / raw
To: 'Corey Foote', help-gnu-emacs
From: Corey Foote Sent: Tuesday, October 28, 2008 10:32 AM
Is there a way to embed external application (such as firefox)
inside an Emacs buffer and use Emacs to control them? If not,
would it be possible to simply send an external application
(again like firefox) a command from within emacs without it
being embedded. For example, say I was working on an HTML page
in emacs and wanted to preview my changes by refreshing the
page in firefox. I would just like to be able to say something
like M-x refresh-firefox, and not have to click over to the
firefox window to his refresh myself. What would be required
to add this feature?
[Please plain-text email for this mailing list.]
This might (or might not) help:
http://www.emacswiki.org/emacs/SiteMap#ExternalPrograms
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Embedding external application in emacs (or using emacs to control exeternal application)
[not found] <mailman.2283.1225215552.25473.help-gnu-emacs@gnu.org>
@ 2008-10-28 18:05 ` Thorsten Bonow
2008-10-28 18:13 ` Thorsten Bonow
` (2 more replies)
2008-10-29 7:24 ` Tim X
1 sibling, 3 replies; 10+ messages in thread
From: Thorsten Bonow @ 2008-10-28 18:05 UTC (permalink / raw
To: help-gnu-emacs
>>>>> "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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Embedding external application in emacs (or using emacs to control exeternal application)
2008-10-28 18:05 ` Thorsten Bonow
@ 2008-10-28 18:13 ` Thorsten Bonow
2008-10-28 18:47 ` Allan Gottlieb
[not found] ` <mailman.2302.1225219691.25473.help-gnu-emacs@gnu.org>
2008-10-28 18:59 ` Corey Foote
[not found] ` <mailman.2304.1225220395.25473.help-gnu-emacs@gnu.org>
2 siblings, 2 replies; 10+ messages in thread
From: Thorsten Bonow @ 2008-10-28 18:13 UTC (permalink / raw
To: help-gnu-emacs
>>>>> "Toto" == Thorsten Bonow <thorsten.bonow@post.rwth-aachen.de> writes:
>>>>> "Corey" == Corey Foote <coreyfoote@hotmail.com> writes:
[...]
Corey> I would just like to be able to say something like M-x
Corey> refresh-firefox, and not have to click over to the firefox window to
Corey> his refresh myself. What would be required to add this feature?
[...]
Toto> You could look up "browse-url" in the emacs manual: Commands for
Toto> interaction with a browser.
I should have read the manual myself: There is `browse-url-of-file' which
defaults to browsing the url of the current buffer's file.
Toto
--
Contact information and PGP key at
http://www.withouthat.org/~toto/contact.html
You have to work at it if you want to be a good smoker. Especially
today with all the nonsmoking world constantly harassing you.
Friedman, Kinky (1993), A case of Lone Star. New York (Wings Books),
245
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Embedding external application in emacs (or using emacs to control exeternal application)
2008-10-28 18:13 ` Thorsten Bonow
@ 2008-10-28 18:47 ` Allan Gottlieb
[not found] ` <mailman.2302.1225219691.25473.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 10+ messages in thread
From: Allan Gottlieb @ 2008-10-28 18:47 UTC (permalink / raw
To: help-gnu-emacs
At Tue, 28 Oct 2008 19:13:30 +0100 Thorsten Bonow <thorsten.bonow@post.rwth-aachen.de> wrote:
>>>>>> "Toto" == Thorsten Bonow <thorsten.bonow@post.rwth-aachen.de> writes:
>
>>>>>> "Corey" == Corey Foote <coreyfoote@hotmail.com> writes:
>
> [...]
>
> Corey> I would just like to be able to say something like M-x
> Corey> refresh-firefox, and not have to click over to the firefox window to
> Corey> his refresh myself. What would be required to add this feature?
>
> [...]
>
> Toto> You could look up "browse-url" in the emacs manual: Commands for
> Toto> interaction with a browser.
>
> I should have read the manual myself: There is `browse-url-of-file' which
> defaults to browsing the url of the current buffer's file.
Yes, but all these seem to load the file into another tab, not refresh
the current version.
allan
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Embedding external application in emacs (or using emacs to control exeternal application)
2008-10-28 18:05 ` Thorsten Bonow
2008-10-28 18:13 ` Thorsten Bonow
@ 2008-10-28 18:59 ` Corey Foote
[not found] ` <mailman.2304.1225220395.25473.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 10+ messages in thread
From: Corey Foote @ 2008-10-28 18:59 UTC (permalink / raw
To: Thorsten Bonow, help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 443 bytes --]
> 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.
What modifications to Emacs would be necessary to make it possible? (I'm guessing this would have to be done in C.)
_________________________________________________________________
When your life is on the go—take your life with you.
http://clk.atdmt.com/MRT/go/115298558/direct/01/
[-- Attachment #2: Type: text/html, Size: 643 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Embedding external application in emacs (or using emacs to control exeternal application)
[not found] ` <mailman.2302.1225219691.25473.help-gnu-emacs@gnu.org>
@ 2008-10-28 19:13 ` Thorsten Bonow
0 siblings, 0 replies; 10+ messages in thread
From: Thorsten Bonow @ 2008-10-28 19:13 UTC (permalink / raw
To: help-gnu-emacs
>>>>> "Allan" == Allan Gottlieb <gottlieb@nyu.edu> writes:
[...]
>> I should have read the manual myself: There is `browse-url-of-file' which
>> defaults to browsing the url of the current buffer's file.
Allan> Yes, but all these seem to load the file into another tab, not
Allan> refresh the current version.
Yes, but---I checked for Firefox and Epiphany---this is because the browsers
don't have a "refresh tab/window" command line option. Emacs can't do anything
about it.
It would be nice to now if one can trick a browser to refresh a page; Adobe
Acrobat can be tricked to refresh a file, too. Anyone?
But maybe it should be a feature request.
Toto
--
Contact information and PGP key at
http://www.withouthat.org/~toto/contact.html
ET IN ARCADIA EGO
"I HAVE been here before", I said; I had been there before;
first with Sebastian more than twenty years ago on a
cloudless day in June, when the ditches were creamy with
meadowsweet and the air heavy with all the scents of
summer; it was a day of peculiar splendour, and though I
had been there so often, in so many moods, it was to that
first visit that my heart returned on this, my latest.
Evelyn Waugh: Brideshead Revisited
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Embedding external application in emacs (or using emacs to control exeternal application)
[not found] ` <mailman.2304.1225220395.25473.help-gnu-emacs@gnu.org>
@ 2008-10-28 19:19 ` Thorsten Bonow
0 siblings, 0 replies; 10+ messages in thread
From: Thorsten Bonow @ 2008-10-28 19:19 UTC (permalink / raw
To: help-gnu-emacs
>>>>> "Corey" == Corey Foote <coreyfoote@hotmail.com> writes:
>> 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.
Corey> What modifications to Emacs would be necessary to make it possible?
Corey> (I'm guessing this would have to be done in C.)
Uh oh, big ones, I guess ;-)
The (upcoming?) Emacs 23 supports the XEmbed specification. I'm quoting from the
"News file:
"You can embed Emacs in another application on X11. The new command line
option --parent-id is used to pass the parent window id to Emacs. See
http://standards.freedesktop.org/xembed-spec/xembed-spec-latest.html for
details about XEmbed."
But I don't think that this implies the other way round, the case that you want.
This is out of my league, maybe you should post this on the developer mailing
list.
Toto
PS: Please don't eMail me your postings. I have a lot and important work to do,
therefore checking my news on a 5 minute basis ;-)
--
Contact information and PGP key at
http://www.withouthat.org/~toto/contact.html
If two or three people stop smoking as a result of anything I
have ever written then the one of them who would have got cancer
will live and all my scribblings will have been worthwhile.
Ivan Noble, 1967-2005
The closing words of his final column, "Tumour diary".
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Embedding external application in emacs (or using emacs to control exeternal application)
[not found] <mailman.2283.1225215552.25473.help-gnu-emacs@gnu.org>
2008-10-28 18:05 ` Thorsten Bonow
@ 2008-10-29 7:24 ` Tim X
1 sibling, 0 replies; 10+ messages in thread
From: Tim X @ 2008-10-29 7:24 UTC (permalink / raw
To: help-gnu-emacs
Corey Foote <coreyfoote@hotmail.com> writes:
> Is there a way to embed external application (such as firefox) inside an Emacs
> buffer and use Emacs to control them? If not, would it be possible to simply
> send an external application (again like firefox) a command from within emacs
> without it being embedded. For example, say I was working on an HTML page in
> emacs and wanted to preview my changes by refreshing the page in firefox. I
> would just like to be able to say something like M-x refresh-firefox, and not
> have to click over to the firefox window to his refresh myself. What would be
> required to add this feature?
>
There is a firefox package called mozlab that has an emacs
interface. This allows you to interact with firefox via a REPL where
you can perform various operations. may be of use for what you want.
Tim
>
--
tcross (at) rapttech dot com dot au
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-10-29 7:24 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-28 17:32 Embedding external application in emacs (or using emacs to control exeternal application) Corey Foote
2008-10-28 17:12 ` Toby Cubitt
2008-10-28 17:59 ` Drew Adams
[not found] <mailman.2283.1225215552.25473.help-gnu-emacs@gnu.org>
2008-10-28 18:05 ` Thorsten Bonow
2008-10-28 18:13 ` Thorsten Bonow
2008-10-28 18:47 ` Allan Gottlieb
[not found] ` <mailman.2302.1225219691.25473.help-gnu-emacs@gnu.org>
2008-10-28 19:13 ` Thorsten Bonow
2008-10-28 18:59 ` Corey Foote
[not found] ` <mailman.2304.1225220395.25473.help-gnu-emacs@gnu.org>
2008-10-28 19:19 ` Thorsten Bonow
2008-10-29 7:24 ` Tim X
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.