[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#32790: 27.0.50; point jumps unexpectedly after delete-window
From: |
Juri Linkov |
Subject: |
bug#32790: 27.0.50; point jumps unexpectedly after delete-window |
Date: |
Thu, 25 Oct 2018 23:48:09 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
>> 2. based on display-buffer-alist, implement some more declarative
>> definitions of window layouts, i.e. allow the user to describe
>> the used windows in which buffers should be displayed in them.
>
> I'd need to see a proposal how that can be done. In a way it's
> orthogonal to how 'window-state-put' tries to reconstruct a window
> configuration and it's no entirely trivial to do that.
I imagine it could be a structure like returned by 'window-state-get'
but instead of a buffer name specify a regexp or a list of possible
buffer names that are allowed to be displayed in the given window.
Then display-buffer could search a buffer in such template and
reconstruct the window state where the buffer will be displayed in
the place specified in the template.
> But I think that putting a function on
> 'window-configuration-change-hook' can be dangerous when a window
> showing the buffer in question already exists and gets reused. In
> such case 'window-configuration-change-hook' is not run and the
> changed value of 'display-buffer-overriding-action' will persist. So
> we probably need a 'display-buffer-functions' hook to remove it
> reliably. Basically, however, I think that using an overriding action
> is justified here.
Please note that in the code posted 3 days ago I used the hook that you
proposed recently window-state-change-functions, so this code is not yet
functional :)
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, (continued)
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, Juri Linkov, 2018/10/17
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, martin rudalics, 2018/10/18
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, Juri Linkov, 2018/10/18
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, martin rudalics, 2018/10/19
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, Juri Linkov, 2018/10/20
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, martin rudalics, 2018/10/21
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, Juri Linkov, 2018/10/21
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, martin rudalics, 2018/10/22
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, Juri Linkov, 2018/10/23
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, martin rudalics, 2018/10/24
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window,
Juri Linkov <=
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, martin rudalics, 2018/10/26
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, Juri Linkov, 2018/10/27
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, martin rudalics, 2018/10/28
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, Juri Linkov, 2018/10/28
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, martin rudalics, 2018/10/29
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, martin rudalics, 2018/10/29
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, Juri Linkov, 2018/10/29
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, martin rudalics, 2018/10/30
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, Juri Linkov, 2018/10/30
- bug#32790: 27.0.50; point jumps unexpectedly after delete-window, martin rudalics, 2018/10/31