From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Embedding Emacs in other apps Date: Tue, 27 Apr 2010 20:26:42 +0200 Message-ID: References: <201004271800.26807.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272392958 4846 80.91.229.12 (27 Apr 2010 18:29:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2010 18:29:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 27 20:29:16 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O6pX1-0003M4-Jn for ged-emacs-devel@m.gmane.org; Tue, 27 Apr 2010 20:29:15 +0200 Original-Received: from localhost ([127.0.0.1]:42222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6pX0-00081E-V0 for ged-emacs-devel@m.gmane.org; Tue, 27 Apr 2010 14:29:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6pUi-0006hP-Dk for emacs-devel@gnu.org; Tue, 27 Apr 2010 14:26:52 -0400 Original-Received: from [140.186.70.92] (port=50168 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6pUh-0006gF-1v for emacs-devel@gnu.org; Tue, 27 Apr 2010 14:26:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6pUd-0005AW-0m for emacs-devel@gnu.org; Tue, 27 Apr 2010 14:26:49 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:49155 helo=gate.verona.se) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6pUc-0005A6-Ka for emacs-devel@gnu.org; Tue, 27 Apr 2010 14:26:46 -0400 Original-Received: from localhost.localdomain (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id o3RIQhjl012414; Tue, 27 Apr 2010 20:26:43 +0200 In-Reply-To: <201004271800.26807.tassilo@member.fsf.org> (Tassilo Horn's message of "Tue, 27 Apr 2010 18:00:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124255 Archived-At: Tassilo Horn writes: > Hi all, > > I've wondered if it is possible to embed emacs in other applications, so > for example that I can edit textfields in my browser using emacs. I > quickly found this NEWS entry for emacs 23. > > ,---- > | *** Emacs now supports the XEmbed specification. > | 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 this --parent-id option is only available to emacs, not emacsclient. > Is that intended or technically not feasible otherwise? My emacs needs > about 20 seconds to start, but I always have a server instance in the > background. Clearly, I wouldn't want to wait 20 secs to start editing > some textfield, but simply embed a new frame... > > The --parent-id option isn't documented in the texinfo docs, btw... > > And the other thing: Is there some example code showing how I can embed > emacs in my own application? There are some examples in the emacswiki. > > Bye, > Tassilo > -- Joakim Verona