[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#67993: Selecting buffer automatically
From: |
martin rudalics |
Subject: |
bug#67993: Selecting buffer automatically |
Date: |
Sun, 7 Jan 2024 15:56:45 +0100 |
User-agent: |
Mozilla Thunderbird |
> Could you suggest an alternative to 'old-selected-window'
> to select the original window that was selected before
> the current command?
In 'display-buffer' first save the selected window as
old-selected-window, display the buffer and in your code select
old-selected-window instead of (old-selected-window).
Better, rename "select-window" to "window-to-select" so grepping won't
confuse it with a 'select-window' call and allow for an arbitrary window
(or even buffer, but there could be two windows showing the same buffer)
to use as the finally selected window in 'display-buffer'. And maybe
have 'pop-to-buffer' and friends pass (select-window . t) instead of
calling 'select-window' themselves and think of what has to happen when
the window made or used by 'display-buffer' is on another frame that
should be (de-)selected.
martin
- bug#67993: Selecting buffer automatically, Juri Linkov, 2024/01/04
- bug#67993: Selecting buffer automatically, martin rudalics, 2024/01/05
- bug#67993: Selecting buffer automatically, Juri Linkov, 2024/01/06
- bug#67993: Selecting buffer automatically,
martin rudalics <=
- bug#67993: Selecting buffer automatically, Juri Linkov, 2024/01/07
- bug#67993: Selecting buffer automatically, martin rudalics, 2024/01/08
- bug#67993: Selecting buffer automatically, Juri Linkov, 2024/01/09
- bug#67993: Selecting buffer automatically, martin rudalics, 2024/01/10
- bug#67993: Selecting buffer automatically, Juri Linkov, 2024/01/10
- bug#67993: Selecting buffer automatically, martin rudalics, 2024/01/11
- bug#67993: Selecting buffer automatically, Juri Linkov, 2024/01/12
- bug#67993: Selecting buffer automatically, martin rudalics, 2024/01/13
- bug#67993: Selecting buffer automatically, Juri Linkov, 2024/01/14
- bug#67993: Selecting buffer automatically, martin rudalics, 2024/01/15