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: Fwd: Tabs for console. Date: Mon, 13 Dec 2010 23:01:07 +0200 Message-ID: References: <54294.130.55.132.100.1292016199.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636426a0bc28d1004975100fa X-Trace: dough.gmane.org 1292274109 5568 80.91.229.12 (13 Dec 2010 21:01:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Dec 2010 21:01:49 +0000 (UTC) Cc: rms@gnu.org, Emacs Dev , martin rudalics , Andreas Schwab , Dimitri Fontaine To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 13 22:01:44 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 1PSFWR-0007s9-SA for ged-emacs-devel@m.gmane.org; Mon, 13 Dec 2010 22:01:28 +0100 Original-Received: from localhost ([127.0.0.1]:50575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSFWR-0005oZ-F2 for ged-emacs-devel@m.gmane.org; Mon, 13 Dec 2010 16:01:27 -0500 Original-Received: from [140.186.70.92] (port=55712 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSFWB-0005jF-JT for emacs-devel@gnu.org; Mon, 13 Dec 2010 16:01:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSFW9-0002Iy-M6 for emacs-devel@gnu.org; Mon, 13 Dec 2010 16:01:11 -0500 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:37873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSFW9-0002Ib-IH; Mon, 13 Dec 2010 16:01:09 -0500 Original-Received: by vws10 with SMTP id 10so3703327vws.0 for ; Mon, 13 Dec 2010 13:01:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=xxzknX7MeJU17cNtrl7jjkFhHulmBANtmBVqRwksWKo=; b=CqrThwf/lXJbjJMfpz2yNcVNYHnaWZe+iBiFT8/ogthXNC7M+g0PsgOb2WwiHRf/0G tg7cIzJqaXiM9DvEbtRzxqkxZhWJCe8WrtriLtZNlgQ8qegaOpxUrkl5cF22dkpA8NKu TC4jnYR6yWl+ka0J84hH2NKy239r/7lXMlq8E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xt2dCQ0H3l32svO7DNfsLUNK88T8CqqhAtIsfdAUq4ozieCLTZX3YmRzeRtveXrrFp KKdks+HZhgiesVhs4SQXX3akHC+zyMLQIjtliIdhWZtrnJp5aDeu4NOm5n1T91ybs70z t8Wx59GUAf+7M5+lGTRPePt0LxQQKVTqubypg= Original-Received: by 10.229.101.206 with SMTP id d14mr4109912qco.146.1292274067737; Mon, 13 Dec 2010 13:01:07 -0800 (PST) Original-Received: by 10.229.216.199 with HTTP; Mon, 13 Dec 2010 13:01:07 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:133661 Archived-At: --001636426a0bc28d1004975100fa Content-Type: text/plain; charset=UTF-8 > > > > Try and figure out how to change your approach and/or theirs so that they > can be made compatible. > > > For me integrating with the work of the others is quite evident. I do not open now the manual of GTK/Xlib/Athena to exress myself in exact terms, but I use generic terms, that I believe all X-windows programmers understand. To integrate my work with the others one does so: 1. keep from the work of the others the graphical representations (of the notebook widget). 2. Every element of a notebook widget represent a tab, that has a pointer to a data structure. I did not look over the code of the others, but I believe that in their code this data structure is a frame. Drop that structure , and replace it with the data structure <> that I explained in my previous messages. I prefer the message passing style, that cannot be implemented in emacs in this moment, apart from using macros, which are not a viable/smart solution. 3. In X windows, every widget generates events. When such an event X comes to a tab, execute the (tab :event-X), which is a lambda-expression. 4. Breef, from the work of the others , 1) keep the graphical representations of notebook widget. 2) drop the data structure that represents a tab and replace it with my data structure. I do not know whether the others well see my solution, but I do not have any other way to see the problem of integration. What the other say ? Thanks. Alin 2010/12/13 Stefan Monnier > > Do my implementation integrate with the others implementations of tabs? > > I don't know, you'll have o investigate. > > --001636426a0bc28d1004975100fa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Try and figure out how to change your approach and/or theirs so that = they
can be made compatible.



For me integrating with the work of the other= s is quite evident.

I do not open now the manual of GTK/Xlib/Athena = to exress myself in exact terms, but I use generic terms, that I believe al= l X-windows programmers understand.

To integrate my work with the others one does so:

1. keep from t= he work of the others the graphical representations (of the notebook widget= ).

2. Every element of a notebook widget represent a tab, that has a= pointer to a data structure. I did not look over the code of the others, b= ut I believe that in their code this data structure is a frame. Drop that s= tructure , and replace it with the data structure <<tab>> that = I explained in my previous messages. I prefer the message passing style, th= at cannot be implemented in emacs in this moment, apart from using macros, = which are not a viable/smart solution.

3. In X windows, every widget generates events. When such an event X co= mes to a tab, execute the (tab :event-X), which is a lambda-expression.
=
4. Breef, from the work of the others , 1) keep the graphical represent= ations of notebook widget. 2) drop the data structure that represents a tab= and replace it with my data structure.

I do not know whether the others well see my solution, but I do not hav= e any other way to see the problem of integration.

What the other sa= y ?

Thanks.


Alin












2010/12/13 Stefan Monnier <monnier@iro.umontr= eal.ca>
> Do my implementation integrate with the others imple= mentations of tabs?

I don't know, you'll have o investigate.

=

--001636426a0bc28d1004975100fa--