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: how to implement xembed in emacs? Date: Sat, 15 Dec 2007 23:59:31 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197777819 6778 80.91.229.12 (16 Dec 2007 04:03:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2007 04:03:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 16 05:03:49 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 1J3kjD-0005sI-B7 for ged-emacs-devel@m.gmane.org; Sun, 16 Dec 2007 05:03:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J3kis-0007GQ-TG for ged-emacs-devel@m.gmane.org; Sat, 15 Dec 2007 23:03:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J3kiT-0006p3-4L for emacs-devel@gnu.org; Sat, 15 Dec 2007 23:03:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J3kiN-0006fz-KV for emacs-devel@gnu.org; Sat, 15 Dec 2007 23:03:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J3kiN-0006fi-98 for emacs-devel@gnu.org; Sat, 15 Dec 2007 23:02:55 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J3j2j-0008Tn-GQ for emacs-devel@gnu.org; Sat, 15 Dec 2007 21:15:49 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J3gFP-00056f-6G for emacs-devel@gnu.org; Sat, 15 Dec 2007 18:16:43 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1J3gB6-0003n6-Kc for emacs-devel@gnu.org; Sat, 15 Dec 2007 23:12:16 +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 ; Sat, 15 Dec 2007 23:12:16 +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 ; Sat, 15 Dec 2007 23:12:16 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 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:NWb/rAs0Y06G1I0WZEJWgyFlHKo= X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:85166 Archived-At: 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