From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Tabs are ready? -> Let us give a definition of tabs. Date: Tue, 07 Feb 2012 02:53:03 +0900 Message-ID: <871uq7zw5c.fsf@uwakimon.sk.tsukuba.ac.jp> References: <4F2E5D33.6020406@gmx.at> <4F2E8185.4080706@gmx.at> <4F2EC768.4050603@gmx.at> <4F2FAD31.9040702@gmx.at> <877h00yq7z.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: dough.gmane.org 1328550804 19988 80.91.229.3 (6 Feb 2012 17:53:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 17:53:24 +0000 (UTC) Cc: Juri Linkov , martin rudalics , Emacs Dev To: Alin Soare Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 18:53:20 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 1RuSkf-0001eM-1M for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2012 18:53:17 +0100 Original-Received: from localhost ([::1]:55931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuSke-000067-Gg for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2012 12:53:16 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuSkZ-000061-2Z for emacs-devel@gnu.org; Mon, 06 Feb 2012 12:53:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuSkU-00013D-O9 for emacs-devel@gnu.org; Mon, 06 Feb 2012 12:53:11 -0500 Original-Received: from mgmt2.sk.tsukuba.ac.jp ([130.158.97.224]:47824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuSkU-00012m-En for emacs-devel@gnu.org; Mon, 06 Feb 2012 12:53:06 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt2.sk.tsukuba.ac.jp (Postfix) with ESMTP id 6144E9707E4; Tue, 7 Feb 2012 02:53:03 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 2C5FA1A282A; Tue, 7 Feb 2012 02:53:03 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta31) "ginger" e6b5c49f9e13 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.158.97.224 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:148277 Archived-At: Alin Soare writes: > I propose to find a definition of tabs, We already have a definition of tabs: a GUI control containing a linear array of buttons, each of which evokes a different display in a single, fixed region of the screen, adjacent to the linear array. This neither requires nor denies the kind of flexible programmability you want. > such they are programmable, and give whatever default behaviour of > tabs you wish, give the LIBERTY to those programmers who wish to > define other kind of tabs for themselves, to be able to do so. But this does not require all of the junk (events, callbacks, etc) that you've talked about. All that *needs* to be added to Emacs is the very limited API needed to associate tabs with a window or frame, displayable content and a label with each tab, and to query that information. The rest can be implemented with existing Emacs Lisp facilities, such as faces (to change the color of a tab) and process sentinels (one sort of event callback). If you want a GTK-like API, that should be easy to write in Lisp.