From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "A. Soare" Newsgroups: gmane.emacs.devel Subject: Re: Gtk tabs in emacs, new branch. Date: Sat, 10 Apr 2010 19:33:27 +0200 (CEST) Message-ID: <14345253.704951270920807553.JavaMail.www@wwinf4601> Reply-To: alinsoar@voila.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1270920825 14526 80.91.229.12 (10 Apr 2010 17:33:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Apr 2010 17:33:45 +0000 (UTC) Cc: "Jan D." , Lennart Borgman , Stefan Monnier , "Emacs Dev \[emacs-devel\]" To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 10 19:33:43 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 1O0eYw-0006o4-Ui for ged-emacs-devel@m.gmane.org; Sat, 10 Apr 2010 19:33:43 +0200 Original-Received: from localhost ([127.0.0.1]:36339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0eYw-00010J-EF for ged-emacs-devel@m.gmane.org; Sat, 10 Apr 2010 13:33:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0eYp-00010C-Q4 for emacs-devel@gnu.org; Sat, 10 Apr 2010 13:33:35 -0400 Original-Received: from [140.186.70.92] (port=45744 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0eYn-0000z3-99 for emacs-devel@gnu.org; Sat, 10 Apr 2010 13:33:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0eYk-0005Vn-HA for emacs-devel@gnu.org; Sat, 10 Apr 2010 13:33:31 -0400 Original-Received: from smtp3.voila.fr ([193.252.22.173]:24292 helo=smtp1.voila.fr) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0eYk-0005VZ-9f for emacs-devel@gnu.org; Sat, 10 Apr 2010 13:33:30 -0400 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4913.voila.fr (SMTP Server) with ESMTP id A1D63700008D; Sat, 10 Apr 2010 19:33:27 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4913.voila.fr (SMTP Server) with ESMTP id 954CA700009A; Sat, 10 Apr 2010 19:33:27 +0200 (CEST) Original-Received: from wwinf4601 (wwinf4601 [10.232.13.28]) by mwinf4913.voila.fr (SMTP Server) with ESMTP id 885DE700008D; Sat, 10 Apr 2010 19:33:27 +0200 (CEST) X-ME-UUID: 20100410173327558.885DE700008D@mwinf4913.voila.fr X-Originating-IP: [93.112.112.17] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-CC: |~||~||~||~| X-WUM-REPLYTO: |~| 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:123448 Archived-At: I did understand what he did; I did the same 2 years ago, and gave up, beca= use it is a rude method of implementing tabs for emacs in this manner. I suggest you to do something like that: opening a new tab, a function will initialize the structure of that tab. For example, if you want a tab to represent a window-configuration, it will= need an initialization function like that: (let (new-tab (get-current-window-configuration)) ...) or , if you want the tab to switch to *scratch* buffer, (switch-to-buffer *scratch), etc Every tab should have also a function of hide-event, in which it saves its = old configuration, like (setq new-tab (get-current-conf)) etc. You might need a tab to represent a buffer of a compilation, or to start a = compilation and switch to its buffer. In this case of use of a tab, you nee= d no need of initializing a tab as a win-conf, etc. It will be needed a local environment to a tab, such that the function asso= ciated to close/switch/hide be able to find the same new-tab variable, as i= nitialized by init-function, and be hidden in other tabs, etc I suggest you not to hurry to install the tabs as implemented by Jan D. Onc= e installed, it might be difficult in future to switch to a nice implementa= tion of tabs. I have written the tabs for console, and if they are implemented as I like,= I will send it when I have time. Please, do not hurry to install such an implementation. Please improve it t= o accept lisp function for every gtk event, etc, before installing, and to = suppose nothing about what a tab is. ____________________________________________________ =C2=A0Voila People a retrouv=C3=A9 les photos que les stars aimeraient oubl= ier sur http://people.voila.fr/people/mediatheque/dossiers/ces-stars-pour-q= ui-le-temps-a-bien-fait-les-choses.html