[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52467: 29.0.50; Use pop-to-buffer for shell
From: |
Dmitry Gutov |
Subject: |
bug#52467: 29.0.50; Use pop-to-buffer for shell |
Date: |
Sun, 26 Dec 2021 02:47:59 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 24.12.2021 12:07, Lars Ingebrigtsen wrote:
What is that you propose should change?
Basically what Sam is asking (use pop-to-window for both shell and
eshell), I'm just trying to conceptualize that change. Not a strong
preference, but it seems to make sense.
Or to approach the question from another angle, the difference between
that behavior and the current one is that you can create two windows
that show the same buffer. Do we want that to happen with 'M-x shell'
without prefix?
Overall, pop-to-buffer seems more common than pop-to-buffer-same-window.
The downside of using it, though, is that the current window is unlikely
to be used even if the buffer is not displayed anywhere else (the
algorithm chooses something like LRU window). Maybe we should choose a
mode of operation where it does use the current window, unless the
buffer is displayed somewhere else.
Something like
(pop-to-buffer buffer
'((display-buffer-reuse-window
display-buffer-same-window)
(inhibit-same-window . nil)))
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Steingold, 2021/12/13
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Dmitry Gutov, 2021/12/13
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Theodor Thornhill, 2021/12/14
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Lars Ingebrigtsen, 2021/12/19
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Dmitry Gutov, 2021/12/19
- Message not available
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Lars Ingebrigtsen, 2021/12/20
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Sam Steingold, 2021/12/23
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Dmitry Gutov, 2021/12/23
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Lars Ingebrigtsen, 2021/12/24
- bug#52467: 29.0.50; Use pop-to-buffer for shell,
Dmitry Gutov <=
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Lars Ingebrigtsen, 2021/12/26
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Dmitry Gutov, 2021/12/26
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Sam Steingold, 2021/12/26
- bug#52467: 29.0.50; Use pop-to-buffer for shell, jakanakaevangeli, 2021/12/27
- bug#52467: 29.0.50; Use pop-to-buffer for shell, Lars Ingebrigtsen, 2021/12/27
bug#52467: 29.0.50; Use pop-to-buffer for shell, jakanakaevangeli, 2021/12/14