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: embedding gtk widgets in a buffer Date: Sat, 10 May 2008 13:55:43 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210420813 17141 80.91.229.12 (10 May 2008 12:00:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 May 2008 12:00:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 10 14:00:49 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 1Junku-0003cm-QA for ged-emacs-devel@m.gmane.org; Sat, 10 May 2008 14:00:49 +0200 Original-Received: from localhost ([127.0.0.1]:53561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JunkC-0001FS-6r for ged-emacs-devel@m.gmane.org; Sat, 10 May 2008 08:00:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Junk6-0001F7-Ne for emacs-devel@gnu.org; Sat, 10 May 2008 07:59:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Junk4-0001Es-WB for emacs-devel@gnu.org; Sat, 10 May 2008 07:59:57 -0400 Original-Received: from [199.232.76.173] (port=42255 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Junk4-0001Ep-TZ for emacs-devel@gnu.org; Sat, 10 May 2008 07:59:56 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:51628 helo=gate.verona.se) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Junk1-0004ur-GR; Sat, 10 May 2008 07:59:53 -0400 Original-Received: from chopper (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id m4ABxn6F028908; Sat, 10 May 2008 13:59:49 +0200 In-Reply-To: (Richard M. Stallman's message of "Sat, 10 May 2008 04:55:08 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:96932 Archived-At: Richard M Stallman writes: > Ok. I was thinking more along having the generic callback interface > solve this too, and also that Id like to create the process in lisp, so > I could bind a sentinel to it, and send commands to it through stdio, > etc. > > You can't call general Lisp code from a GTK callback. > Please design a way to implement the features you want > without running any Lisp code. On Stefans and your suggestion I implemented the gtk callbacks as a new type of Emacs input event. It seems to work well now, I can receive button events, and set up xembed widgets in the input event handler, so thanks for the suggestions! -- Joakim Verona