[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: |
martin rudalics |
Subject: |
bug#33458: 27.0.50; dired loses position when reverted from outside place |
Date: |
Tue, 04 Dec 2018 09:33:26 +0100 |
> If dired buffer reverted from outside it, cursor jumps to begin of the
> buffer once this buffer becomes current again.
>
> How to reproduce:
>
> 0. emacs -Q
>
> 1. Open some directory, say "DIR-A" in dired.
>
> 2. Move cursor to subdirectory, say "DIR-B", M-: (point) ;=> e.g. 225.
>
> 3. Dive into subdirectory "DIR-B".
>
> 4. Let's check position: M-: (with-current-buffer "DIR-A" (point)) ;=> 225,
so cursor in the right place.
>
> 5. Revert original buffer: M-: (with-current-buffer "DIR-A" (dired-revert))
>
> 6. Check position again: M-: (with-current-buffer "DIR-A" (point)) ;=> 225,
seems right here...
>
> 7. Switch back from the buffer with "DIR-B" to the buffer with "DIR-A".
>
> 8. Position lost! M-: (point) ;=> 1, but 225 expected.
>
> The issue very spunky if auto-revert-mode is used.
>
> Can't reproduce this issue with regular buffer, so it seems dired-specific.
The attached patch should fix this problem and the other ones with
'dired' that have been cited in this context. Please try it.
Thanks, martin
dired.diffs
Description: Text document
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/12/01
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/12/01
- bug#33458: 27.0.50; dired loses position when reverted from outside place,
martin rudalics <=
- bug#33458: 27.0.50; dired loses position when reverted from outside place, v88m, 2018/12/04
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/05
- bug#33458: 27.0.50; dired loses position when reverted from outside place, martin rudalics, 2018/12/08
- bug#33458: 27.0.50; dired loses position when reverted from outside place, Juri Linkov, 2018/12/09
- 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