unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Long buffer names in buffer menu
Date: Tue, 20 Oct 2009 16:52:08 -0500	[thread overview]
Message-ID: <aumdnTpEY--UrEPXnZ2dnUVZ_gednZ2d@sysmatrix.net> (raw)
In-Reply-To: <d5bfadeb-e689-44d3-be1d-cd1447acb8a2@2g2000prl.googlegroups.com>

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


  reply	other threads:[~2009-10-20 21:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-20 17:51 Long buffer names in buffer menu Adam Beneschan
2009-10-20 21:52 ` B. T. Raven [this message]
2009-10-20 22:58   ` Drew Adams
2009-10-21 15:38   ` Adam Beneschan
2009-10-21 16:25     ` Drew Adams
2009-10-21 16:33     ` despen
     [not found]     ` <mailman.9220.1256142396.2239.help-gnu-emacs@gnu.org>
2009-10-21 16:39       ` despen
2009-10-21 19:52       ` Adam Beneschan
2009-10-22  1:39         ` Long buffer names in buffer menu [Emacs 22.1 on w32] B. T. Raven
2009-10-22  2:32           ` despen
2009-10-22  6:50             ` Andreas Politz
2009-10-23 22:53             ` Adam Beneschan
2009-10-24  1:05               ` despen
2009-10-20 22:20 ` Long buffer names in buffer menu despen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aumdnTpEY--UrEPXnZ2dnUVZ_gednZ2d@sysmatrix.net \
    --to=nihil@nihilo.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).