On Jul 14, 2023 12:31, Juri Linkov <juri@linkov.net> wrote:

> The fact that uniquify doesn't use default-directory also means it's
> unable to uniquify buffers which aren't visiting files, which can be
> annoying.  For example, if uniquify used default-directory then it could
> uniquify *compilation* buffers for different projects, renaming them
> based on the directory.  But because it can't, every package has to come
> up with their own special buffer-renaming scheme... include project.el.

Why couldn't uniquify use default-directory?  It would be nice to have
such buffer names based on default-directory:

  *compilation*<project-1>
  *compilation*<project-2>

I'll give it a try soon, that would indeed be very nice.