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: Emacs - Buffer List - Drop-Down-Menu Date: Thu, 6 Dec 2007 10:53:57 -0800 Message-ID: References: <1b21c8a6-1b00-423a-8a98-4c904c7e1a08@a39g2000pre.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196967401 19896 80.91.229.12 (6 Dec 2007 18:56:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2007 18:56:41 +0000 (UTC) To: "Jason Rumney" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 06 19:56:50 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J0Ltg-0007Ed-0c for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Dec 2007 19:56:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0LtP-0006Ni-Ar for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Dec 2007 13:56:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J0Lt5-0006L5-1f for help-gnu-emacs@gnu.org; Thu, 06 Dec 2007 13:55:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J0Lt2-0006Fh-GV for help-gnu-emacs@gnu.org; Thu, 06 Dec 2007 13:55:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0Lt1-0006F0-PW for help-gnu-emacs@gnu.org; Thu, 06 Dec 2007 13:55:51 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J0Lt1-0000v1-73 for help-gnu-emacs@gnu.org; Thu, 06 Dec 2007 13:55:51 -0500 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id lB6ItbV7010686; Thu, 6 Dec 2007 11:55:37 -0700 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id lB6CXvoo014492; Thu, 6 Dec 2007 11:55:37 -0700 Original-Received: from dhcp-4op11-4op12-west-130-35-178-158.us.oracle.com by acsmt351.oracle.com with ESMTP id 3410791431196967226; Thu, 06 Dec 2007 10:53:46 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <1b21c8a6-1b00-423a-8a98-4c904c7e1a08@a39g2000pre.googlegroups.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:49892 Archived-At: > > BTW, this helps a lot with the organization, but it doesn't > really respond > > to the OP question about justification and alignment. I agree that the > > alignment is not ideal. > > The alignment comes from the second nested format call in mouse-buffer- > menu-alist. I think the intention is to align the flags and file name, > but it also results in the buffer names being left padded, losing > their left alignment. This looks completely messed up when the menus > use a variable width font, as nothing ends up aligned. > > On Windows, the tab character can be used for alignment within the > menu, xmenu.c seems to use spaces to align the key codes though, so it > probably doesn't work cross-platform. Yes. A variable-width font is what I see on Windows, by default - which is good, IMO. I think (so far) that the buffer name should just be flush left, and it should be followed by a single space before the file name. That is, forget about trying to align the file names. That is the best solution for a variable-width font, IMO. Besides, there is no reason to align the file names: they don't constitute a separate field or whatever here.