From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Long buffer names in buffer menu Date: Tue, 20 Oct 2009 16:52:08 -0500 Message-ID: References: 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 1256078718 10863 80.91.229.12 (20 Oct 2009 22:45:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Oct 2009 22:45:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 21 00:45:07 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 1N0NNo-0007YS-R5 for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Oct 2009 00:40:49 +0200 Original-Received: from localhost ([127.0.0.1]:53582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0NNo-0002tb-Bs for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Oct 2009 18:40:48 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 20 Oct 2009 16:52:09 -0500 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-No-Archive: yes Original-Lines: 35 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.132.147 Original-X-Trace: sv3-HjFOgaTe39owPAi4ECwMAH8TXQnvV9MZTBSSRZN5XRioHyEQilN2CmGBAJb3UUFE4ofhVJhSaU8l7VU!g0iuMI4oRY9bRmg1hyNp7fOZgy790G359GOV8sG9F9amlX69HnViZg9+UkYzPJX3rqYDgyx6GHdB!wTyqmCVW437rwgnRHxkblNpavqqoZvM= Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: news.stanford.edu gnu.emacs.help:174026 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 X-Gmane-Expiry: 2009-11-03 Xref: news.gmane.org gmane.emacs.help:69107 Archived-At: Adam Beneschan wrote: > Hi, > > I've just started using EMACS 22 on Ubuntu (previously was using 20 on > another system), and I've run into a frustrating problem... > > When I bring up the electric buffer list, long file names are > truncated (with : at the end of the name). This is a problem for me > since I'm used to using long source file names, and I sometimes work > with multiple files whose names are different only after the point > where EMACS truncates them. So if I'm working with two or more such > files, the names appear the same in the electric buffer list and I > don't know which one to select. I can't find any function that would > display the full, untruncated buffer name somewhere while remanining > in the buffer list so that I can pick the correct one. Is there a > function like that, or could one be written simply? (I'm pretty > experienced at writing my own Lisp functions, so if someone has some > code for something like this I could get it working.) > > Thanks for any help you can provide. > > -- thanks, Adam Look at the uniquify- family of functions (especially the reverse style), or Options > use directory names in buffer names, or buffers-menu-show-directories variable. If you really have buffer names based on very long file names (part after last slash in fully qualified path) then you might want to comment out the truncate-lines setq in ebuff-menu.el I don't know if this is a good idea but Emacs is robust enough that if that doesn't work, you could later set it back by using touch -r on ebuff-menu.el to set its times back to something earlier than ebuff-menu.elc Ed