[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames
From: |
Tom Gillespie |
Subject: |
Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames |
Date: |
Sun, 29 Jan 2023 14:02:42 -0500 |
Here is an updated patch to address Martin's comments.
More responses in line. Best!
Tom
> + (window (get-buffer-window buffer reusable-frames)))))
>
> Here the last line gets me
Argh. Yep, a copy/paste error out of a let form. Given your question
below I've rethought the issue, and now pass reusable-frames to
get-lru-window instead, which produces the expected lru behavior
when searching for a window over multiple frames.
> Now if this frame contains more than one window, 'get-lru-window' will
> usually (barring not fullwidth, dedicated ... windows) always succeed in
> finding a window. This is probably not the intended behavior if this
> frame contains a reusable window - one that shows BUFFER already. Maybe
> you think that some other action function would handle that. But then
> why would you want to handle 'reusable-frames' here at all?
The reason I handle reusable-frames here is so that if a user wants to search
other frames for the least recently used window (e.g. they have 3
visible frames,
one for each monitor, and they want the lru window to be selected from any of
those visible frames). The implementation of this in that old patch
was completely
incorrect. In the new version reusable-frames is passed to get-lru-window, which
produces the expected results.
> Also 'display-buffer-pop-up-window' is an action function which returns
> a window _and_ displays the buffer in it.
Resolved so that we don't try to display the buffer twice.
> This
>
> + (prog1
>
> has been cargo-culted from 'display-buffer-use-some-window'. It's of no
> use here because you return the window used below.
Now gone.
> Finally, please fix the doc-string so it tells what this function really
> does (and please leave two spaces between sentences).
Done
0001-Fix-display-buffer-use-least-recent-window-to-split-.patch
Description: Text Data
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, (continued)
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Tom Gillespie, 2023/01/29
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, martin rudalics, 2023/01/30
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Eli Zaretskii, 2023/01/30
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, martin rudalics, 2023/01/30
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Eli Zaretskii, 2023/01/30
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, martin rudalics, 2023/01/31
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Eli Zaretskii, 2023/01/31
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Tom Gillespie, 2023/01/28
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Tom Gillespie, 2023/01/28
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, martin rudalics, 2023/01/29
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames,
Tom Gillespie <=
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, martin rudalics, 2023/01/30
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Tom Gillespie, 2023/01/30
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, martin rudalics, 2023/01/30
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Tom Gillespie, 2023/01/30
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Tom Gillespie, 2023/01/30
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, martin rudalics, 2023/01/31
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Tom Gillespie, 2023/01/31
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, martin rudalics, 2023/01/31
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Juri Linkov, 2023/01/29
- Re: [PATCH] Fix display-buffer-use-some-window to honor reusable-frames, Eli Zaretskii, 2023/01/29