From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.help Subject: Re: Long buffer names in buffer menu [Emacs 22.1 on w32] Date: Thu, 22 Oct 2009 08:50:55 +0200 Message-ID: <878wf3ncq8.fsf@fh-trier.de> References: <80a2c2b9-6a41-4584-8ada-9d37c4577a6e@j9g2000prh.googlegroups.com> <67f25ccb-004b-49c5-87d1-13b120df6f94@t11g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256194347 1172 80.91.229.12 (22 Oct 2009 06:52:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2009 06:52:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 22 08:52:20 2009 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 1N0rX2-0006WH-1v for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Oct 2009 08:52:20 +0200 Original-Received: from localhost ([127.0.0.1]:57592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0rX1-00042T-KM for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Oct 2009 02:52:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0rWD-0003yM-0a for help-gnu-emacs@gnu.org; Thu, 22 Oct 2009 02:51:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0rW9-0003x7-1s for help-gnu-emacs@gnu.org; Thu, 22 Oct 2009 02:51:28 -0400 Original-Received: from [199.232.76.173] (port=37437 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0rW8-0003wz-Qz for help-gnu-emacs@gnu.org; Thu, 22 Oct 2009 02:51:24 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:5848) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N0rW8-0000mp-1f for help-gnu-emacs@gnu.org; Thu, 22 Oct 2009 02:51:24 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0rW7-0004BN-9H for help-gnu-emacs@gnu.org; Thu, 22 Oct 2009 02:51:23 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N0rW2-00064o-Pk for help-gnu-emacs@gnu.org; Thu, 22 Oct 2009 08:51:18 +0200 Original-Received: from dslb-084-059-105-204.pools.arcor-ip.net ([84.59.105.204]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Oct 2009 08:51:18 +0200 Original-Received: from politza by dslb-084-059-105-204.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Oct 2009 08:51:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-059-105-204.pools.arcor-ip.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:QI+XgpbpHyYuP8Z6Po8EvV5erSM= X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:69151 Archived-At: despen@verizon.net writes: > "B. T. Raven" writes: > >> Adam Beneschan wrote: >>> On Oct 21, 9:25 am, "Drew Adams" wrote: >>> >>>> So there is some confusion as to what you are using. Your initial mail spoke of >>>> buff-menu.el, but it also spoke about "electric" buffer list. Those are two >>>> different things. >>> >>> Actually, my initial post didn't mention any .el files. Just for the >>> record.... >>> >>> -- Adam > .... >> (setq truncate-lines t) > > Okay, so this sort of works: > > (add-hook 'electric-buffer-menu-mode-hook > '(lambda () > (setq truncate-lines nil))) > > The long names are shown continued on the next line. > The only problem is that cursor movement moves through > the extended file name. Not a big problem. You could try to flet-bind `abbreviate-file-name' around `electric-buffer-list' and shorten the filename in which ever way you like. -ap