From: Adam Beneschan <adam@irvine.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Long buffer names in buffer menu
Date: Wed, 21 Oct 2009 08:38:43 -0700 (PDT) [thread overview]
Message-ID: <80a2c2b9-6a41-4584-8ada-9d37c4577a6e@j9g2000prh.googlegroups.com> (raw)
In-Reply-To: aumdnTpEY--UrEPXnZ2dnUVZ_gednZ2d@sysmatrix.net
On Oct 20, 2:52 pm, "B. T. Raven" <ni...@nihilo.net> 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). 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
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
next prev parent reply other threads:[~2009-10-21 15:38 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
2009-10-20 22:58 ` Drew Adams
2009-10-21 15:38 ` Adam Beneschan [this message]
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=80a2c2b9-6a41-4584-8ada-9d37c4577a6e@j9g2000prh.googlegroups.com \
--to=adam@irvine.com \
--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).