> 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