From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Gtk tabs in emacs, new branch. Date: Fri, 09 Apr 2010 13:15:56 +0200 Message-ID: <4BBF0C6C.7000909@swipnet.se> References: <30298845.656931270806476838.JavaMail.www@wwinf4631> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1270811773 9154 80.91.229.12 (9 Apr 2010 11:16:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Apr 2010 11:16:13 +0000 (UTC) Cc: "Emacs Dev \[emacs-devel\]" To: alinsoar@voila.fr Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 09 13:16:10 2010 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 1O0CC1-00053q-Ke for ged-emacs-devel@m.gmane.org; Fri, 09 Apr 2010 13:16:09 +0200 Original-Received: from localhost ([127.0.0.1]:41122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0CC0-0004ab-UF for ged-emacs-devel@m.gmane.org; Fri, 09 Apr 2010 07:16:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0CBv-0004YN-Cl for emacs-devel@gnu.org; Fri, 09 Apr 2010 07:16:03 -0400 Original-Received: from [140.186.70.92] (port=58999 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0CBt-0004WF-Gq for emacs-devel@gnu.org; Fri, 09 Apr 2010 07:16:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0CBs-00047k-4V for emacs-devel@gnu.org; Fri, 09 Apr 2010 07:16:01 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]:44797) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0CBr-00047S-UQ for emacs-devel@gnu.org; Fri, 09 Apr 2010 07:16:00 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id A92C8C09A for ; Fri, 9 Apr 2010 13:15:58 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqxTAE6pvktV4S1uPGdsb2JhbACDEYRSiAmLTgwBAQEBNS2pM5BfgSyCb24E X-IronPort-AV: E=Sophos;i="4.52,176,1270418400"; d="scan'208";a="61670859" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 09 Apr 2010 13:15:58 +0200 Original-Received: from [192.168.77.62] (ns1.operax.com [213.88.244.216]) by coolsville.localdomain (Postfix) with ESMTPSA id 9BB3D7FA01A; Fri, 9 Apr 2010 13:15:57 +0200 (CEST) User-Agent: Thunderbird 2.0.0.24 (X11/20100317) In-Reply-To: <30298845.656931270806476838.JavaMail.www@wwinf4631> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:123388 Archived-At: A. Soare wrote: > > I do not want to add widgets to an implementation based on another > idea , than that of a lisp function for all kinds of events: a lisp > function at the creation, a function when closing, switching, etc. It isn't any "idea" as such, it is practicallity and user experience. For example, I tried having switching in elisp, but it is too slow (causes flicker) and there are race conditions between when the widget does the switching and when Emacs thinks the switch is done. There is nothing in the current implementation that excludes lisp functions for switching, creation, e.t.c, but it doesn't give any advantages, just complications. Also, creation may be by drag and drop from other frames. Due to the way Gtk+ implements this, and how Emacs lisp may interact with GUI callbacks, doing that in lisp isn't possible. Having an idea may be good, but sometimes reality requires other ways. Jan D.