From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adam Beneschan Newsgroups: gmane.emacs.help Subject: Re: Long buffer names in buffer menu Date: Wed, 21 Oct 2009 08:38:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: <80a2c2b9-6a41-4584-8ada-9d37c4577a6e@j9g2000prh.googlegroups.com> References: 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: ger.gmane.org 1256141704 22368 80.91.229.12 (21 Oct 2009 16:15:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Oct 2009 16:15:04 +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 18:14:54 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 1N0dpp-0006qC-LU for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Oct 2009 18:14:49 +0200 Original-Received: from localhost ([127.0.0.1]:56779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0dpo-0000CD-To for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Oct 2009 12:14:48 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!j9g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: 66.126.103.122 Original-X-Trace: posting.google.com 1256139523 4668 127.0.0.1 (21 Oct 2009 15:38:43 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 21 Oct 2009 15:38:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j9g2000prh.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:174048 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:69130 Archived-At: On Oct 20, 2:52=A0pm, "B. T. Raven" wrote: > 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). =A0This 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. =A0So 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. =A0I 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. =A0Is there a > > function like that, or could one be written simply? =A0(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. > > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-- thanks, A= dam > > Look at the uniquify- family of functions (especially the reverse > style), or Options > =A0use 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 Thanks to everyone for the suggestions; unfortunately, nothing seems to have worked so far. Yes, the buffer names are based on long file names *after* the last slash (directory names aren't an issue). And using shorter file names is not an option. I tried using '+' and '-' as suggested by Drew but didn't get anywhere. First of all, which + and - did this refer to: the ones on the numeric keypad, or the "normal" ones? Anyway, I tried both and neither worked, but if you can tell me which what functions those are supposed to be bound to, I could set up something to bind those keys (or some other keys) and maybe get it to work. I don't have mouse capability, by the way. I don't have ebuff-menu.el. When I downloaded this via Ubuntu's package manager, it gave me ebuff-menu.elc but not the .el file. I'm now thinking that I'll have to track down ebuff-menu.el myself and take a look at it; if I can do that and figure out how it works, perhaps I can just write a function that does what I need. (Really, just setting up a key that would display the full buffer name in the minibuffer would be sufficient.) Once again, thanks. -- Adam