emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: separate name uniquification from `generate-new-buffer-name'


From: Juanma Barranquero
Subject: Re: separate name uniquification from `generate-new-buffer-name'
Date: Wed, 26 May 2010 02:19:26 +0200

On Tue, May 25, 2010 at 21:30, Stefan Monnier <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]