From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Embedding Emacs in other apps Date: Wed, 28 Apr 2010 18:45:45 +0200 Message-ID: <4BD86639.3010702@swipnet.se> References: <201004271800.26807.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272473190 17109 80.91.229.12 (28 Apr 2010 16:46:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2010 16:46:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 28 18:46:29 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 1O7AP5-000288-EF for ged-emacs-devel@m.gmane.org; Wed, 28 Apr 2010 18:46:27 +0200 Original-Received: from localhost ([127.0.0.1]:38235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7AP4-00020u-V4 for ged-emacs-devel@m.gmane.org; Wed, 28 Apr 2010 12:46:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7AOf-0001mH-Ei for emacs-devel@gnu.org; Wed, 28 Apr 2010 12:46:01 -0400 Original-Received: from [140.186.70.92] (port=58690 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7AOd-0001kl-W7 for emacs-devel@gnu.org; Wed, 28 Apr 2010 12:46:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7AOc-0004TM-BH for emacs-devel@gnu.org; Wed, 28 Apr 2010 12:45:59 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]:47720) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7AOc-0004T5-4v for emacs-devel@gnu.org; Wed, 28 Apr 2010 12:45:58 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 236FBEB265 for ; Wed, 28 Apr 2010 18:45:55 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiFDAH4C2EtV4S1uPGdsb2JhbACHaZUKDAEBAQE1Lb5ehQ4Eg1c X-IronPort-AV: E=Sophos;i="4.52,289,1270418400"; d="scan'208";a="68699499" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb2.telenor.se with ESMTP; 28 Apr 2010 18:45:54 +0200 Original-Received: from anon-72-151.ipredate.net (anon-72-151.ipredate.net [93.182.151.72]) by coolsville.localdomain (Postfix) with ESMTPSA id 1E7FE7FA05A; Wed, 28 Apr 2010 18:45:50 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: <201004271800.26807.tassilo@member.fsf.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:124301 Archived-At: Tassilo Horn skrev 2010-04-27 18.00: > 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... It should be possible to pass it along to an emacs daemon. Parent id is just another frame parameter, that --parent-id sets in initial-frame-alist. Nobody saw the need, or did the code yet, thats all. > > The --parent-id option isn't documented in the texinfo docs, btw... There are some out of date documentation, but its within an @ignore: @ignore @item parent-id @c ??? Not yet working. The X window number of the window that should be the parent of this one. Specifying this lets you create an Emacs window inside some other application's window. (It is not certain this will be implemented; try it and see if it works.) @end ignore > > And the other thing: Is there some example code showing how I can embed > emacs in my own application? > I have some Gtk+ examples, it is easy there. But maybe you want straight X examples? Jan D.