emacs-devel
[Top][All Lists]
Advanced

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

Re: Name of buffers created by project-shell


From: Juri Linkov
Subject: Re: Name of buffers created by project-shell
Date: Thu, 04 Mar 2021 19:50:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

> There's one problem, though: when called with C-u, the piece of behavior
> which reads as "create a new inferior shell buffer even if one already
> exists" now creates buffers uniquely named according to uniquify's rules,
> which seems to mean
>
>   *shell*
>   emacs-master/*shell*
>   vc/emacs-master/*shell*
>
> instead of what one might expect, like
>
>   emacs-master/*shell*
>   emacs-master/*shell*<2>
>   emacs-master/*shell*<3>

For consistency with C-x p v (project-vc-dir) that creates buffers named

    *vc-dir*<myproject>

shouldn't C-x p s (project-shell) create buffers with the same style:

    *shell*<myproject><1>
    *shell*<myproject><2>
    *shell*<myproject><3>

> Perhaps the solution is not to go through uniquify for this, but then we
> project-shell can't really be consistent with project-vc-dir.

'project-shell' already constructs buffer names using own style,
so it could switch to another style compatible with
uniquify-buffer-name-style, then construct buffer names
like "*shell*<myproject>" and allow uniquify to append
a numeric suffix <1>, <2>, <3>.



reply via email to

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