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: how to implement xembed in emacs? Date: Sun, 16 Dec 2007 12:24:48 +0100 Message-ID: References: <47650613.9050404@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1197805096 32441 80.91.229.12 (16 Dec 2007 11:38:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2007 11:38:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 16 12:38:28 2007 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.50) id 1J3rpB-00056I-Mv for ged-emacs-devel@m.gmane.org; Sun, 16 Dec 2007 12:38:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J3ros-0006R3-GG for ged-emacs-devel@m.gmane.org; Sun, 16 Dec 2007 06:38:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J3ron-0006Qo-DV for emacs-devel@gnu.org; Sun, 16 Dec 2007 06:38:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J3rok-0006QM-SA for emacs-devel@gnu.org; Sun, 16 Dec 2007 06:37:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J3rok-0006QJ-JW for emacs-devel@gnu.org; Sun, 16 Dec 2007 06:37:58 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J3roj-0004VD-Pc for emacs-devel@gnu.org; Sun, 16 Dec 2007 06:37:58 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1J3roX-00019x-3v for emacs-devel@gnu.org; Sun, 16 Dec 2007 11:37:45 +0000 Original-Received: from ua-83-227-131-3.cust.bredbandsbolaget.se ([83.227.131.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Dec 2007 11:37:45 +0000 Original-Received: from joakim by ua-83-227-131-3.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Dec 2007 11:37:45 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ua-83-227-131-3.cust.bredbandsbolaget.se User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:OAjgHa8J55tke2SnHsMJRlFRwAM= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:85180 Archived-At: Jan Djärv writes: > There already exist a patch for this from Timo Savola. It has not > been installed yet, but will be once unicode2 becomes HEAD. Yes, its the patch I mention below. However, as far as I can determine, the patch implements the case of embedding emacs in other applications, not the case of embedding other applications in emacs. Am I wrong? > > Jan D. > > > joakim@verona.se skrev: >> Hello, >> >> I'm interested in the possibility of using xembed in emacs: >> >> http://standards.freedesktop.org/xembed-spec/xembed-spec-0.5.html> >> There are patches to make emacs embaddable in other applications: >> >> http://timo.stc.cx/tmp/emacs/> >> which seems nice and worthwile of inclusion in emacs, but I'm in this >> case talking about embedding other applications in emacs. >> >> I'm thinking of doing a proof-of-concept hack that would implement a >> new dummy image type. The image would simply not render. Instead it >> would read a window id from a file and call XReparentWindow, with the >> coordinates given by emacs to the image. This scheme might work >> somewhat, but: >> >> How can this be achieved properly in emacs? >> >> -- Joakim Verona