bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#41858: 28.0.50; [PATCH]: Make project-shell use universal argument


From: Dmitry Gutov
Subject: bug#41858: 28.0.50; [PATCH]: Make project-shell use universal argument
Date: Sun, 14 Jun 2020 21:46:08 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

Hi!

On 14.06.2020 21:29, Theodor Thornhill wrote:
Attached is a patch to change the default behaviour of 'project-shell'.

My use case is:

- Edit some file in some project.
- 'M-x project-shell'
- Do something, then "C-x 0"
- Oops forgot to read output.
- 'M-x project-shell'
- See the same buffer.

Right now 'project-shell' opens a new buffer every time it is invoked. Now I 
have to find it in the buffer list. Putting previous behaviour on universal 
argument will in addition enable this workflow

- Edit some file in some project.
- 'M-x project-shell'
- 'C-u M-x project-shell'
- Now emacs is split it two, with two separate shell processes


In addition, I let default name be *'project-root-dir'-shell* to signify this 
shell buffer to be unique from other shell buffers invoked by 'M-x shell'.

Sounds good to me.

Juri, will you the review?

NB: It's difficult for me to open the attachment because it has to file extension.





reply via email to

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