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: Gtk tabs in emacs, new branch Date: Fri, 02 Apr 2010 11:06:05 +0900 Message-ID: <87oci2r4ky.fsf@uwakimon.sk.tsukuba.ac.jp> References: <4BB4CF6B.2000007@alice.it> <4BB4DBCD.4090807@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 1270175753 31780 80.91.229.12 (2 Apr 2010 02:35:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Apr 2010 02:35:53 +0000 (UTC) Cc: Emacs , Angelo Graziosi To: Jan =?iso-8859-1?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 02 04:35:48 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 1NxWjb-0001Xd-OI for ged-emacs-devel@m.gmane.org; Fri, 02 Apr 2010 04:35:48 +0200 Original-Received: from localhost ([127.0.0.1]:49655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxWjb-0008EG-07 for ged-emacs-devel@m.gmane.org; Thu, 01 Apr 2010 22:35:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxWjV-0008E1-Rl for emacs-devel@gnu.org; Thu, 01 Apr 2010 22:35:41 -0400 Original-Received: from [140.186.70.92] (port=59148 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxWjU-0008Dt-G4 for emacs-devel@gnu.org; Thu, 01 Apr 2010 22:35:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxWjT-0005M2-1b for emacs-devel@gnu.org; Thu, 01 Apr 2010 22:35:40 -0400 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:40411) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxWjS-0005Lp-NW for emacs-devel@gnu.org; Thu, 01 Apr 2010 22:35:38 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id 5C8F3820E; Fri, 2 Apr 2010 11:06:09 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id E5E461A38CA; Fri, 2 Apr 2010 11:06:05 +0900 (JST) In-Reply-To: <4BB4DBCD.4090807@swipnet.se> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta29) "garbanzo" a03421eb562b XEmacs Lucid (x86_64-unknown-linux) 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:123044 Archived-At: Jan Dj=E4rv writes: > > I have build that, but when I start Emacs, I don't 'see' any tabs. How > > can we enable those? I have a desktop file which opens several file wh= en > > I start Emacs, so I would expect to see them in tabs! :-) >=20 > I don't think that is a good idea in general. I have desktopfiles with = over=20 > 50 files. 50 tabs isn't manageable. XEmacs's tabs by default group files by mode (cc-mode, make-mode, LaTeX-mode), and the tabs list the top N according to "buffer-list". I *do not* think this is optimal, and wrote a proof-of-concept "group-by-project" mode. Nobody uses that, everybody uses the default mode, and nobody complains (although people typically respond enthusiastically when somebody suggests alternative uses of the tabs, that itch has for some reason never been scratched despite availability of proof-of-concept). In XEmacs, buffer-list gives a frame-specific grouping, which works well. Bottom line: put a limit on the number of tabs, and use the first N in buffer-list (perhaps filtered by mode). This is good enough to start with (Jan himself might opt to turn them off, but I bet most users will find this mode a usability improvement). You do need a way to turn off tabs, some people don't like them, some app-specific frames shouldn't have them.