[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: |
Fri, 30 Nov 2018 00:46:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
> The buffer's point is OK. So we could introduce a variable, say
> 'set-window-point-from-point', and set this to t when reverting a
> buffer reveals that 'get-buffer-window' is nil. Redisplaying the
> buffer would then always go to the buffer's point instead of some
> position stored in the window's list of previous buffers.
>
> I'm not sure when to reset this mechanism though. The first time we
> display the buffer again? Then switching to that buffer in another
> window later would suffer from the initial problem. Keep it for every
> other window until it has seen the buffer again? How would we do
> that?
Maybe until point is moved to another position either by the user or
by any other code that doesn't set 'set-window-point-from-point' again.
> Finally note that this does not fix the dired problem. There we want
> the cursor go to the line showing the file where point previously was
> in that window.
Maybe for dired store meta-information such as dired-filename
in window parameters. Then when a dired buffer is restored in a window,
and dired-revert moved point-marker to the beginning of the dired buffer,
move point to the file from the window parameter.
- 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, Juri Linkov, 2018/11/26
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/11/27
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/11/27
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/11/28
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/11/28
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Eli Zaretskii, 2018/11/29
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/11/29
- bug#33458: 27.0.50; dired loses position when reverted from outside place, v88m, 2018/11/30
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/11/30
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/11/29
- 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, v88m, 2018/11/30
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/11/30
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/11/30