emacs-devel
[Top][All Lists]
Advanced

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

Re: master 432c1aa: Use `pop-to-buffer-same-window' in `project-eshell'


From: Juri Linkov
Subject: Re: master 432c1aa: Use `pop-to-buffer-same-window' in `project-eshell'
Date: Sun, 21 Mar 2021 00:10:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>>> So... use pop-to-buffer-same-window in both cases, then?
>>>
>> Sure - all four cases, then? shell, eshell, project-shell and project-eshell?
>
> That would be my choice.
>
> Unless someone here wants to voice a strong disagreement.

+1, I customized the same anyway:

(push `(,(rx bos
             "*"
             ;; Handle both "*shell*" and e.g. "*myproject-shell*"
             ;; generated by ‘project-shell’:
             (and (? (* nonl) "-") "shell")
             "*"
             ;; Uniquifed buffer name with optional suffix in angle brackets
             (? (and "<" (+ (not (any ">"))) ">"))
             eos)
        display-buffer-same-window
        (inhibit-same-window . nil))
      display-buffer-alist)

But it's fine also to change the format of uniquify as was discussed
recently to "myproject/*shell*<3>" or "*shell*<myproject><3>",
I don't remember what was the conclusion.



reply via email to

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