[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69093: window-state-put doesn't update current buffer
From: |
Eli Zaretskii |
Subject: |
bug#69093: window-state-put doesn't update current buffer |
Date: |
Fri, 16 Feb 2024 13:46:24 +0200 |
> Cc: 69093@debbugs.gnu.org
> Date: Fri, 16 Feb 2024 10:39:36 +0100
> From: martin rudalics via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> > Thanks for explanations. I see this line in 'set-window-configuration':
> >
> > Fset_buffer (new_current_buffer);
> >
> > Do you think this is the right fix?
>
> No. I think the right fix would be to remove the above line from
> 'set-window-configuration'. We can't do that because some applications
> might depend on the current behavior. But I am quite confident that
> nobody fully understands 'set-window-configuration' anyway and can
> predict what it does when selected frame, current buffer and the buffer
> and frame stored in the CONFIGURATION argument mismatch.
A more worrisome aspect of such a change would be the gazillion uses
of save-window-excursion.
> I'd say that any code run in a state where the buffer of the selected
> window and the current buffer are not the same - regardless of whether
> this happens when a state/configuration is saved or restored - should
> simply report an error.
Some do, others don't. Still others silently correct the mismatch.
- bug#69093: window-state-put doesn't update current buffer, Juri Linkov, 2024/02/13
- bug#69093: window-state-put doesn't update current buffer, martin rudalics, 2024/02/14
- bug#69093: window-state-put doesn't update current buffer, Juri Linkov, 2024/02/15
- bug#69093: window-state-put doesn't update current buffer, martin rudalics, 2024/02/16
- bug#69093: window-state-put doesn't update current buffer,
Eli Zaretskii <=
- bug#69093: window-state-put doesn't update current buffer, Juri Linkov, 2024/02/18
- bug#69093: window-state-put doesn't update current buffer, martin rudalics, 2024/02/19
- bug#69093: window-state-put doesn't update current buffer, Drew Adams, 2024/02/19
- bug#69093: window-state-put doesn't update current buffer, Juri Linkov, 2024/02/20
- bug#69093: window-state-put doesn't update current buffer, martin rudalics, 2024/02/21
- bug#69093: window-state-put doesn't update current buffer, Juri Linkov, 2024/02/21
- bug#69093: window-state-put doesn't update current buffer, martin rudalics, 2024/02/22
- bug#69093: window-state-put doesn't update current buffer, Juri Linkov, 2024/02/22
- bug#69093: window-state-put doesn't update current buffer, martin rudalics, 2024/02/23
- bug#69093: window-state-put doesn't update current buffer, Juri Linkov, 2024/02/24