From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Embedding Emacs in other apps Date: Wed, 28 Apr 2010 20:06:21 +0200 Message-ID: <201004282006.21710.tassilo@member.fsf.org> References: <201004271800.26807.tassilo@member.fsf.org> <4BD86639.3010702@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272477998 4290 80.91.229.12 (28 Apr 2010 18:06:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2010 18:06:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jan =?iso-8859-1?q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 28 20:06:36 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 1O7Beb-0006Pw-LL for ged-emacs-devel@m.gmane.org; Wed, 28 Apr 2010 20:06:33 +0200 Original-Received: from localhost ([127.0.0.1]:37425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7Beb-0003Oi-5e for ged-emacs-devel@m.gmane.org; Wed, 28 Apr 2010 14:06:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7BeW-0003OW-D5 for emacs-devel@gnu.org; Wed, 28 Apr 2010 14:06:28 -0400 Original-Received: from [140.186.70.92] (port=33899 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7BeV-0003OO-5o for emacs-devel@gnu.org; Wed, 28 Apr 2010 14:06:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7BeT-0000pK-97 for emacs-devel@gnu.org; Wed, 28 Apr 2010 14:06:26 -0400 Original-Received: from out3.smtp.messagingengine.com ([66.111.4.27]:59470) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7BeT-0000pE-5u for emacs-devel@gnu.org; Wed, 28 Apr 2010 14:06:25 -0400 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 4258BEED29; Wed, 28 Apr 2010 14:06:24 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 28 Apr 2010 14:06:24 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:subject:date:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; s=smtpout; bh=4OPJymHpPhDWNVfIY05zpYaDsPY=; b=E1k3SyXT7CTrg/n4XufemwBSpQhQL74tUsbmB3Qy5R031H7U1BwFnMNN1xuiTyFI5AUuFpDc3h87byRwp7sSHSuZfCLHjFLLJOaG6iINDMysJ5Z5YMb+28pVP+Y2ymJKwFY81Z8LZpb3qiknUowf+7zSXSHvieA0eB7oDGnp3Qk= X-Sasl-enc: OzPFEpz0SUioJI7TM4GL00X4HgyvLoENgWB0fcZY0BOB 1272477983 Original-Received: from thinkpad.localnet (p54AF14D2.dip0.t-ipconnect.de [84.175.20.210]) by mail.messagingengine.com (Postfix) with ESMTPSA id A3A7A4BC5A5; Wed, 28 Apr 2010 14:06:23 -0400 (EDT) User-Agent: KMail/1.13.2 (Linux/2.6.33-gentoo-r1; KDE/4.4.2; x86_64; ; ) In-Reply-To: <4BD86639.3010702@swipnet.se> X-Face: `TY6r/ws=N5uqO1E`M=Sups<}n%T[E^o_?MJj< =?iso-8859-1?q?O4j=265ljV6lU=7DcXU7oftH=26/x=5F=7EK=7B=26zv9=7D=0A=09sB?= =?iso-8859-1?q?=7D5/Ea=5BhU=7BCS=23=3F=3F0=3F=3Fn?=@sX+ft]?{(l?, mp"a`u 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:124307 Archived-At: On Wednesday 28 April 2010 18:45:45 Jan Dj=E4rv wrote: Hi Jan, > > Clearly, I wouldn't want to wait 20 secs to start editing some > > textfield, but simply embed a new frame... >=20 > 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. I guess it's only the latter reason. ;-) > > And the other thing: Is there some example code showing how I can > > embed emacs in my own application? >=20 > I have some Gtk+ examples, it is easy there. But maybe you want > straight X examples? I wanted to investigate how much effort it would be to be able to use emacs in all places in KDE where its "text editor kpart" is used. Therefore, emacs (or an emacs frame) would need to implement this kpart interface. Currently, I don't know if and how that relates to XEmbed. Possibly, it is a completely different approach. When googling for emacs kpart, I found some few threads on [x]emacs-devel and kde lists, where people were interested in implementing such a emacs kpart. Unfortunately, except comments like "seems possible" the projects never seemed to get actually tackled. I don't have much experiences with C/C++, and also my knowledge of KDE/Emacs internals is nearby zero. But maybe that would be a good topic for a summer of code project mentored by an emacs as well as a KDE dev. I think I remember that Chong's and Stefan's plans for emacs 24 also include destop integration as a goal. Bye, Tassilo