[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer
From: |
Stephen Berman |
Subject: |
bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer |
Date: |
Mon, 05 Jun 2017 17:15:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
On Mon, 05 Jun 2017 18:02:14 +0300 Eli Zaretskii <eliz@gnu.org> wrote:
>> One way to fix this is to make dired-restore-positions restore not only
>> point but also window-point. The attached patch does this.
>
> An alternative is to bind switch-to-buffer-preserve-window-point to
> nil (the whole problem was caused by the fact that this variable is
> now non-nil by default, and dired-revert runs afoul of it, as you
> point out):
Oh, I didn't even know about switch-to-buffer-preserve-window-point.
> I'm not sure which solution is better. Maybe someone will come up
> with a more elegant one.
Your fix is certainly simpler and I think cleaner than mine, so I would
say install it.
Steve Berman
Message not available