From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Header windows (was: Gtk tabs in emacs, new branch.) Date: Wed, 14 Apr 2010 02:34:32 +0300 Organization: JURTA Message-ID: <87sk6zrkon.fsf_-_@mail.jurta.org> References: <30298845.656931270806476838.JavaMail.www@wwinf4631> <4BBF0C6C.7000909@swipnet.se> <87ljcwaxfv.fsf@mail.jurta.org> <4BC016DA.60400@swipnet.se> <87d3y63gzt.fsf@mail.jurta.org> <4BC1EAB2.6080900@harpegolden.net> <4BC215A5.6010809@swipnet.se> <87y6gsfadn.fsf@mail.jurta.org> <874ojgdj5c.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271204312 13099 80.91.229.12 (14 Apr 2010 00:18:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Apr 2010 00:18:32 +0000 (UTC) Cc: Emacs Dev To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 14 02:18:31 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 1O1qJK-0004hF-UI for ged-emacs-devel@m.gmane.org; Wed, 14 Apr 2010 02:18:31 +0200 Original-Received: from localhost ([127.0.0.1]:57410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1qJK-0000nB-7b for ged-emacs-devel@m.gmane.org; Tue, 13 Apr 2010 20:18:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1qJF-0000md-R0 for emacs-devel@gnu.org; Tue, 13 Apr 2010 20:18:25 -0400 Original-Received: from [140.186.70.92] (port=33301 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1qJE-0000mI-OE for emacs-devel@gnu.org; Tue, 13 Apr 2010 20:18:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1qJB-0001ph-L8 for emacs-devel@gnu.org; Tue, 13 Apr 2010 20:18:24 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:34689 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1qJB-0001pS-DY for emacs-devel@gnu.org; Tue, 13 Apr 2010 20:18:21 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.68.45.cable.starman.ee [82.131.68.45]) by mx1.starman.ee (Postfix) with ESMTP id F016A3F4138; Wed, 14 Apr 2010 03:18:16 +0300 (EEST) In-Reply-To: (Stefan Monnier's message of "Tue, 13 Apr 2010 09:05:05 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:123603 Archived-At: >> If a tab is just a little rectangle on the screen associated >> with an action, then the tab-bar is indistinguishable from the >> tool-bar, so we might need only tool-bars inserted into the window-tree. > > Pretty much, yes. Actually, maybe a better option is for a tabbar to be > *part* of a toolbar. We already have a mechanism suitable for creating per-window tool bars and tab bars. And the package tabbar.el that switches buffers proves that the header line serves the purpose of the tab bar pretty well. The header line can display a per-window tool-bar or tab-bar when `header-line-format' is set to a propertized string that contains icons with the `display' and `keymap' properties. The only problem with the header line is the limitation of only one instance per window. Since the task of allowing multiple header-lines is necessary to do anyway, it would be better to start with it. But it seems this limitation is hard-coded and not easy to get rid of. Maybe, a better option is to create header windows (i.e. a 1-line window without the mode-line)? -- Juri Linkov http://www.jurta.org/emacs/