From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Bonow Newsgroups: gmane.emacs.help Subject: Re: Embedding external application in emacs (or using emacs to control exeternal application) Date: Tue, 28 Oct 2008 19:05:05 +0100 Message-ID: <87wsfs7fzi.fsf@post.rwth-aachen.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225219248 11176 80.91.229.12 (28 Oct 2008 18:40:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 18:40:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 28 19:41:49 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KutVk-0006kV-P4 for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Oct 2008 19:41:49 +0100 Original-Received: from localhost ([127.0.0.1]:43378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KutUe-0003yA-Jm for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Oct 2008 14:40:40 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-X-Trace: news.dfncis.de /SBJdf6IZkUG1r018jbE5AeYh681lO3FEQmu/dY96jsElPZJ2XagQ10Wx5 Cancel-Lock: sha1:hrSybisWmAAs0kCp10MBu4h45RU= sha1:BQdqerjGGIpg1t8roW92WauOKug= User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.21 (linux) Original-Xref: news.stanford.edu gnu.emacs.help:163871 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59216 Archived-At: >>>>> "Corey" == Corey Foote 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