[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33458: 27.0.50; dired loses position when reverted from outside plac
From: |
Juri Linkov |
Subject: |
bug#33458: 27.0.50; dired loses position when reverted from outside place |
Date: |
Tue, 18 Dec 2018 02:25:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
>>> Imagine a scenario where a user (1) displays a buffer in new window,
>>> (2) switches in that window to another buffer and (3) deletes that
>>> window for good. When and how would the buffer-local reference
>>> created in (2) be removed?
>>
>> Another question: When should the buffer-local reference be added?
>>
>> Every time when point is moved to a new file? Too frequent calls especially
>> in cases of e.g. pressing and holding the spacebar to move thru the file
>> list.
>>
>> Or when current-window-configuration is saved to a variable/register
>> or window-state-get is called? I don't know what hook is possible
>> to use at that moment besides advices.
>
> I'm not sure whether my scenario above was entirely clear. The
> "buffer-local reference" I was talking about would be a buffer-local
> list whose cars are all the windows (including dead ones) that showed
> the buffer before. When reverting a buffer, we would traverse that
> list, and for every window in that list (including dead windows) look
> up the buffer reference in that window's previous buffers, calculate
> the new window point position from the old position and store back the
> new position as marker in situ there.
Is it really possible to get a window from the window-configuration
that is currently not displayed and change its window-point, e.g.
to get window reference from the buffer-local list, select with
with-selected-window and call set-window-point? I never tried such thing.
> So the answer to your question "When should the buffer-local reference
> be added?" is the earlier alluded to "in (2) when we unshow that
> buffer in a window". And the problem we have to solve is when to
> remove such a reference because the referenced window is really dead
> and no more referenced by any saved window configuration.
It's clear from you explanation what harm is from zombie windows.
But it's interesting to know is it possible to catch the moment
when we unshow that buffer in a window?
- bug#33458: 27.0.50; dired loses position when reverted from outside place, (continued)
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/10
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/12/10
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/11
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/12/11
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/12
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/12/12
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/13
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/14
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/12/16
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/17
- bug#33458: 27.0.50; dired loses position when reverted from outside place,
Juri Linkov <=
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/18
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/12/20
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/21
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/12/22
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/23
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/23
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/12/23
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/24
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/12/25
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/26