From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard M Stallman Newsgroups: gmane.emacs.devel Subject: Re: embedding gtk widgets in a buffer Date: Thu, 08 May 2008 18:28:45 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1210285856 23298 80.91.229.12 (8 May 2008 22:30:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 May 2008 22:30:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 09 00:31:32 2008 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 1JuEdp-0005r1-1p for ged-emacs-devel@m.gmane.org; Fri, 09 May 2008 00:31:09 +0200 Original-Received: from localhost ([127.0.0.1]:52957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuEd6-00077V-Tr for ged-emacs-devel@m.gmane.org; Thu, 08 May 2008 18:30:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JuEcG-0006oM-PG for emacs-devel@gnu.org; Thu, 08 May 2008 18:29:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JuEcE-0006nD-JR for emacs-devel@gnu.org; Thu, 08 May 2008 18:29:31 -0400 Original-Received: from [199.232.76.173] (port=56884 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuEcE-0006n7-68 for emacs-devel@gnu.org; Thu, 08 May 2008 18:29:30 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:37659) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JuEcD-00035J-Rv for emacs-devel@gnu.org; Thu, 08 May 2008 18:29:29 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JuEbV-0007iO-GS; Thu, 08 May 2008 18:28:45 -0400 In-reply-to: (joakim@verona.se) 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:96832 Archived-At: - callback interface for the widgets. It would be nice with some ideas how to do this. For instance: - button pressed handler The natural way is for this to generate events, and when those events reach the main loop, they will do whatever it is. - when a xembed widget is ready, a callback to start an external program in the widget would be nice, now it has to be done manually on the cmd line This callback does not need to be visible from Lisp. When you create the widget, you specify the command and args for the command to start the program. In the C code, Emacs can handle the callback by starting it. - 2 windows showing the same buffer doesnt quite work and is probably tricky It would be a pain in the neck to have buffers that are not allowed to appear in more than one window, but this may be necessary for the xembed case. Buttons in the buffer ought to be able to work on more than one Emacs window. The only way I can think of to make the xembed widgets work in more than one Emacs window is if you can tell the other program to display in a pixmap, and then Emacs redisplay would copy that pixmap to the screen.