From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Ren=E9_Kyllingstad?= Newsgroups: gmane.emacs.devel Subject: Re: Gtk tabs in emacs, new branch. Date: Tue, 13 Apr 2010 17:08:29 +0200 Message-ID: References: <30298845.656931270806476838.JavaMail.www@wwinf4631> <4BBF0C6C.7000909@swipnet.se> <4BC011F5.9010505@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1271171416 22849 80.91.229.12 (13 Apr 2010 15:10:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Apr 2010 15:10:16 +0000 (UTC) To: Stefan Monnier , =?ISO-8859-1?Q?Jan_Dj=E4rv?= , "Emacs Dev [emacs-devel]" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 13 17:10:14 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 1O1hkh-0006PV-E3 for ged-emacs-devel@m.gmane.org; Tue, 13 Apr 2010 17:10:11 +0200 Original-Received: from localhost ([127.0.0.1]:41517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1hkg-0004kQ-NC for ged-emacs-devel@m.gmane.org; Tue, 13 Apr 2010 11:10:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1hjS-00046N-D0 for emacs-devel@gnu.org; Tue, 13 Apr 2010 11:08:54 -0400 Original-Received: from [140.186.70.92] (port=34769 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1hjQ-00045C-Sl for emacs-devel@gnu.org; Tue, 13 Apr 2010 11:08:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1hjP-0004nU-2q for emacs-devel@gnu.org; Tue, 13 Apr 2010 11:08:52 -0400 Original-Received: from mail-bw0-f223.google.com ([209.85.218.223]:41833) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1hjO-0004kG-OM for emacs-devel@gnu.org; Tue, 13 Apr 2010 11:08:51 -0400 Original-Received: by mail-bw0-f223.google.com with SMTP id 23so3750823bwz.26 for ; Tue, 13 Apr 2010 08:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:received:message-id :subject:to:content-type:content-transfer-encoding; bh=dvXNMEG12zUx8DSZ+dF/hTNldG8qaDLiIWHDe4v9/tM=; b=xguaFv4FJ4FyfwcssTxkb2xMkroLxKAL+fpAOaEZ/sSCnThEB3ty9T2Ds7C/apdRrb 502IZFmp1NSxAPEcAaPbjff8n4IL/+16ReVSmM+CGNKV+SLc/jqYaO9M1m18KDzyeQWA Khu5nqIMVyDBMS9+yzbkw98o65iYz6hmOyRV8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=MCLxrYVwldOMR9WHKub0/B2Ck6f95gBWAnDWxf5Cj01pLJzk/PvBXXYBZmeIvyvcej UYeBe94Lu5JQr5c8JLHfz5Sh9ZBNJqYypmbXF9CmiGtUEmPmGsYsOkkH/AW5YKse1HQe bQhmci4dix/Tvc3HCGy005uLDlZ2b0AMKkoFQ= Original-Received: by 10.204.51.2 with HTTP; Tue, 13 Apr 2010 08:08:29 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: a083d2060cba7bdd Original-Received: by 10.204.74.77 with SMTP id t13mr6576057bkj.7.1271171329273; Tue, 13 Apr 2010 08:08:49 -0700 (PDT) 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:123572 Archived-At: On Sat, Apr 10, 2010 at 5:19 PM, Stefan Monnier wrote: >> Are there any concrete examples of other uses? > > I can imagine switching the buffer of one of the windows (in an ECB-style > frame, for example). Let's call that window the editor window. This means having the tabs as part of the frame instead of as part of the editor window. The appeal is clear: it affords more space for the tabs for an ECB-style frame. However, it breaks the expectation that the tab changes the display of the attached pane. Eclipse provides a ECB style frame, but uses tabs-per-pane rather than tabs at the frame level. This allows one to later add tabs to the individual windows in ECB, and it makes the interface consistent wrt tabs. In Eclipse this is put to good use, most of the ECB-style windows have tabs on them. It would be great if an Eclipse-like setup could be achieved in Emacs. This would mean: - a window-set-tabs function taking a list of (icon, text, tooltip, buffe= r). clicking on the tab displays the buffer. That would take care of the non-editor windows. There are other features needed (other-window shouldn't switch to the non-editor windows, switch-buffer shouldn't suggest the buffers in the non-editor windows, persistence of window configurations), but it would be useful by itself. For the editor windows another mechanism is needed to create the tabs, as the list of tabs should be some subset of the open buffers. A related item: many Eclipse panes have tool-bars as well as tabs. If there is space for both the list of open tabs and the tool-bar on one line, they are displayed with the tabs to the left, tool-bar buttons to the right, otherwise they are broken up into two lines with the tabs above the tool-bar. The tool-bar is related to the current tab (displayed buffer), so switching tabs may remove the tool-bar or change its content. -- Ren=E9