From: Sean McAfee <eefacm@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Possible to hook into Emacs's buffer name generation?
Date: Sun, 20 Feb 2011 15:37:49 -0800 [thread overview]
Message-ID: <m239nil1ki.fsf@gmail.com> (raw)
In-Reply-To: mailman.5.1297993074.2625.help-gnu-emacs@gnu.org
Leo <sdl.web@gmail.com> writes:
> On 2011-02-18 08:28 +0800, Sean McAfee wrote:
>> I thought it might be cool to have Emacs automatically name buffers that
>> are visiting files in my repository with a trailing "<component-x.y.z>"
>> when I open them, where component-x.y.z is simply the closest directory
>> name above the file that matches that pattern.
> Maybe you can build on top of uniquify.el?
I hadn't known of uniquify, but after some experimentation it seems not
to offer everything I'd like. In particular, I want a trailing
component-x.y.z on the buffer name even when I'm not already visiting
the same file in a different directory. uniquify only steps in when
there's a name conflict.
I wrote a short find-file hook to fix the buffer name, so it's not that
big a deal.
next prev parent reply other threads:[~2011-02-20 23:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-18 0:28 Possible to hook into Emacs's buffer name generation? Sean McAfee
2011-02-18 1:37 ` Leo
2011-02-18 9:13 ` Tassilo Horn
2011-02-18 1:37 ` Óscar Fuentes
[not found] ` <mailman.5.1297993074.2625.help-gnu-emacs@gnu.org>
2011-02-20 23:37 ` Sean McAfee [this message]
2011-02-21 1:32 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m239nil1ki.fsf@gmail.com \
--to=eefacm@gmail.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.