Subject: bug#62621: 29.0.60; uniquify can't make buffers unique based on things other than filename

From: Spencer Baugh <[email-masked]>
Date: Fri, 14 Jul 2023 17:30:31 +0000 (UTC)

On Jul 14, 2023 12:31, Juri Linkov <[email-masked]> 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.