all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Drew Adams <drew.adams@oracle.com>, emacs-devel@gnu.org
Subject: Re: separate name uniquification from `generate-new-buffer-name'
Date: Wed, 26 May 2010 02:19:26 +0200	[thread overview]
Message-ID: <AANLkTimN46-5DeHWYojNKFh8kcABsiV5vykcJ6Q2ASb5@mail.gmail.com> (raw)
In-Reply-To: <jwv1vczye7b.fsf-monnier+emacs@gnu.org>

On Tue, May 25, 2010 at 21:30, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> A good way to fix it is to come up with a good
> name-buffer-function variable that holds a function that's run whenever
> a buffer name is chosen or modified.  This variable's default would be
> a function that implements the usual <N> stuff and it could be replaced
> by uniquify to do something more clever.

As the comment in uniquify.el explains, the trouble is that usually
the function to generate a new buffer name gets only the desired
(non-unique) buffer name, not the intended use of the buffer, whether
it is going to visit a file (and its name), etc. That somewhat limits
the kinds of "uniquifyings" that can be done at  buffer-creation time.

    Juanma



      parent reply	other threads:[~2010-05-26  0:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-25 18:07 separate name uniquification from `generate-new-buffer-name' Drew Adams
2010-05-25 19:30 ` Stefan Monnier
2010-05-25 19:52   ` Drew Adams
2021-12-28  3:05     ` Drew Adams
2010-05-26  0:19   ` Juanma Barranquero [this message]

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=AANLkTimN46-5DeHWYojNKFh8kcABsiV5vykcJ6Q2ASb5@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.