From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Columns don't align in buffer-list Date: Fri, 11 Aug 2006 21:12:30 -0700 Message-ID: References: <5771938.post@talk.nabble.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155355991 340 80.91.229.2 (12 Aug 2006 04:13:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2006 04:13:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 12 06:13:10 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GBkrv-0000E5-8B for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Aug 2006 06:13:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBkrt-0005Kt-0L for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Aug 2006 00:13:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GBkrg-0005KW-V4 for help-gnu-emacs@gnu.org; Sat, 12 Aug 2006 00:12:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GBkre-0005I0-8k for Help-gnu-emacs@gnu.org; Sat, 12 Aug 2006 00:12:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBkre-0005Hd-0P for Help-gnu-emacs@gnu.org; Sat, 12 Aug 2006 00:12:46 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GBkwv-0004yU-DA for Help-gnu-emacs@gnu.org; Sat, 12 Aug 2006 00:18:13 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k7C4ChuK021108; Fri, 11 Aug 2006 22:12:43 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw2-141-144-75-49.vpn.oracle.com [141.144.75.49]) by rgmgw2.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k7C4CgGb007655; Fri, 11 Aug 2006 22:12:42 -0600 Original-To: "mlathe" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <5771938.post@talk.nabble.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36619 Archived-At: > is there an easy way to adjust the width of the columns in the > buffer-list? Currently long buffer names screw up how the > columns line up. Any answer? or is this not easily done? I don't know the answer to your question, but I think it is "not easily done". I suspect that you are using a version of Emacs that produces a buffer list such as this (this one is Emacs 20): . A Long Buffer Name With Lots Of Words 0 Fundamental icicles-cmd.el 228546 Emacs-Lisp c:/somedir/icicles-cmd.el files.el 134157 Emacs-Lisp c:/Emacs-20.7/lisp/files.el % *Help* 993 Help *scratch* 0 Lisp Interaction * *Messages* 246 Fundamental *% *Buffer List* 359 Buffer Menu This problem has been addressed in Emacs 22 (CVS Emacs). Here is what I see in Emacs 22. To counter mailer wrapping, I've truncated the File entries here (using ...). . A Long Buffer Name Wi: 0 Fundamental icicles-cmd.el 228546 Emacs-Lisp c:/dre... files.el 209193 Emacs-Lisp c:/Ema... % *Help* 993 Help *scratch* 0 Lisp Interaction * *Messages* 399 Fundamental The long buffer name is truncated, so it doesn't affect the alignment of the Size column. The name is allowed to intrude into the Size column, but only because the size in this case is small. Inserting some text into the buffer leads to this - the buffer name is truncated more, to accommodate the larger size (291757). . * A Long Buffer Name: 291757 Fundamental icicles-cmd.el 228546 Emacs-Lisp c:/dre... files.el 209193 Emacs-Lisp c:/Ema... % *Help* 993 Help *scratch* 0 Lisp Interaction * *Messages* 418 Fundamental I think this is a pretty good feature, since it provides the maximum length for the buffer name, given fixed available column lengths. However, I agree that it might be useful to easily be able to change the column widths - e.g. drag them to widen or shorten them, and perhaps have Emacs save the resulting setting. AFAIK, there is no easy way to change the column widths. I'll bet that Emacs developers would welcome such a direct-manipulation feature (patch), however ;-).