From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alin Soare Newsgroups: gmane.emacs.devel Subject: Re: Tabs are ready? -> Let us give a definition of tabs. Date: Sun, 5 Feb 2012 15:39:18 +0200 Message-ID: References: <4F2E5D33.6020406@gmx.at> <4F2E8185.4080706@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0447875b38f1da04b837acea X-Trace: dough.gmane.org 1328449172 9581 80.91.229.3 (5 Feb 2012 13:39:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2012 13:39:32 +0000 (UTC) Cc: Juri Linkov , Juanma Barranquero , Emacs Dev To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 05 14:39:31 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ru2JR-0008M4-FJ for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 14:39:25 +0100 Original-Received: from localhost ([::1]:33124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru2JQ-0003xk-Ab for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 08:39:24 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru2JN-0003xT-Hq for emacs-devel@gnu.org; Sun, 05 Feb 2012 08:39:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ru2JM-0006cn-HM for emacs-devel@gnu.org; Sun, 05 Feb 2012 08:39:21 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:38391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru2JM-0006cf-6f for emacs-devel@gnu.org; Sun, 05 Feb 2012 08:39:20 -0500 Original-Received: by iagz16 with SMTP id z16so9195942iag.0 for ; Sun, 05 Feb 2012 05:39:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+J2To+T2X8+iIQ4XNfQIKGNy4TLqDFaKL72kPwdgyQQ=; b=bkvkbl+2BUC4QCF+f5wbieo5dw1DcmwJM6NCfCCOtY3EVME/EwZnoR0GTD4E8g9nYU lZoak9nFnx3TPUi4UmqAW+6g7ja5yfcifrAzugGRXrvqU0vJJcqSnIV5+SOtAgye+Ed4 ULDZlZxngmtEBT6HROd0rOygZ4QReDixmVBds= Original-Received: by 10.50.179.8 with SMTP id dc8mr554477igc.19.1328449158967; Sun, 05 Feb 2012 05:39:18 -0800 (PST) Original-Received: by 10.231.42.209 with HTTP; Sun, 5 Feb 2012 05:39:18 -0800 (PST) In-Reply-To: <4F2E8185.4080706@gmx.at> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148183 Archived-At: --f46d0447875b38f1da04b837acea Content-Type: text/plain; charset=UTF-8 > > This makes no sense alone ; it is in connection with the same tab . This > > is just other event for the same tab. > > What are the events you envision for one and the same tab ... > > Almost the same events as the events the notebook widget of GTK responds. Quite so, one cannot attach all events of gtk+. In this case, the 'response' must be defined as a lambda. What is to be done: to insert C code , minimally, that execute the events when needed. For console only, I did myself. For GTK and motif it should be even easier. > > >> In which sense do your tabs differ from menu or toolbar elements? You > >> can easily add a menu element to save the current window configuration > >> or pick one of a list of earlier saved configurations to restore that. > >> > >> > > You cannot at all define menu or toolbar buttons which respond to > standard > > events , at which tab widgets shoud respond. > > ... and what is a "standard event" in this context? And why can a > toolbar button not react to such a standard event in the same way? Initialize tab, hide tab, show tab, kill tab, at least. > > >>From what you say, it is worth seeing how to define the tabs as > > tab-objects, as I said, such that they can be buffue-local when desired. > > And window-local. I think that for two different windows the sets of > buffers you might want to switch to would differ according to the > buffers shown in the respective window before. Ya, right. A tab structure should be added alone , and a ponter to a such tab struct must be present in every structure of frame, buffer, window. --f46d0447875b38f1da04b837acea Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> This makes no sense alone ; it is in connection with the same tab= . =C2=A0This
> is just other event for the same tab.

What are the events you envision for one and the same tab ...


Almost the same events as th= e events the notebook widget of GTK responds.

Quit= e so, one cannot attach all events of gtk+.

In this case, the 'response' must be defined as= a lambda.

What is to be done: to insert C code , = minimally, that execute the events when needed.

For console only, I did myself. For GTK and motif it should be even easier.=

=C2=A0

>> In which sense do your tabs differ from menu or toolbar elements? = =C2=A0You
>> can easily add a menu element to save the current window configura= tion
>> or pick one of a list of earlier saved configurations to restore t= hat.
>>
>>
> You cannot at all define menu or toolbar buttons which respond to stan= dard
> events , at which tab widgets shoud respond.

... and what is a "standard event" in this context? =C2=A0And why= can a
toolbar button not react to such a standard event in the same way?

Initialize tab, hide tab, show tab, kill tab, at le= ast.
=C2=A0


=C2=A0
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">

>>From what you say, it is worth seeing how to define the tabs as
> tab-objects, as I said, such that they can be buffue-local when desire= d.

And window-local. =C2=A0I think that for two different windows the sets of<= br> buffers you might want to switch to would differ according to the
buffers shown in the respective window before.

<= div>
Ya, right. A tab structure should be added alone , and a= ponter to a such tab struct must be present in every structure of frame, b= uffer, window.



--f46d0447875b38f1da04b837acea--