From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Fwd: Tabs for console. Date: Fri, 10 Dec 2010 15:13:24 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292012018 1216 80.91.229.12 (10 Dec 2010 20:13:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 20:13:38 +0000 (UTC) Cc: Emacs Dev To: Alin Soare Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 10 21:13:34 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 1PR9LQ-0000fP-QX for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2010 21:13:33 +0100 Original-Received: from localhost ([127.0.0.1]:60769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR9LQ-0008KC-0k for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2010 15:13:32 -0500 Original-Received: from [140.186.70.92] (port=35238 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR9LM-0008Je-0Q for emacs-devel@gnu.org; Fri, 10 Dec 2010 15:13:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PR9LJ-0007x8-T3 for emacs-devel@gnu.org; Fri, 10 Dec 2010 15:13:27 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:60071 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PR9LJ-0007sf-QN for emacs-devel@gnu.org; Fri, 10 Dec 2010 15:13:25 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8LAJsYAk3O+KIs/2dsb2JhbACic4Ebeb9ohUoEhGSOBQ X-IronPort-AV: E=Sophos;i="4.59,325,1288584000"; d="scan'208";a="85132591" Original-Received: from 206-248-162-44.dsl.teksavvy.com (HELO ceviche.home) ([206.248.162.44]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 10 Dec 2010 15:13:24 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 5B7C86616B; Fri, 10 Dec 2010 15:13:24 -0500 (EST) In-Reply-To: (Alin Soare's message of "Fri, 10 Dec 2010 10:15:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) 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:133584 Archived-At: > True. If you keep the variables, you need not to wonder about the order. > With variables you can keep buffer2 on the first position of :data, and > buffer2 on the second, or vice versa. Or you can conceive :data as an > obarray, as I wanted initially. The :data solution still allows that: the data can be a defstruct (hence named slots), a has-table, or an obarray if you so wish. >> >> >> So it will need to change. But does `make-tab' create a new tab or >> >> >> a tabbar? If a tab, then I don't understand any more why the >> init-code >> >> >> is needed. >> >> > Yes, tabs must be separate from frames, and keep indepedent of every >> >> > other thing. A frame/window can subscribe to tabs, and show them when >> >> > it is activated/etc. >> >> That doesn't answer my question: does `make-tab' create a new tab or >> >> a tabbar? >> > Your idea of (make-tab-bar PLACE) was very good. The tab bar existed >> without >> > initialization inside a frame. >> >> Not sure why you don't want to answer the question directly, but IIUC >> you're indirectly here saying that makr-tab indeed creates a tab rather >> than a tabbar. > For me, make-tab adds an element to the list f->tab_bar_items, and > display_tab_bar will display the :name of that element on tab-bar. That's called "adds a tab to the tabbar". Stefan