From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#27243: dired-auto-revert-buffer jumps point to beginning of buffer Date: Mon, 05 Jun 2017 17:15:54 +0200 Message-ID: <874lvuxy6t.fsf@rosalinde> References: <87shjf48se.fsf@epsilon> <87d1aiy2qc.fsf@rosalinde> <83poeia361.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1496675833 24853 195.159.176.226 (5 Jun 2017 15:17:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Jun 2017 15:17:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27243@debbugs.gnu.org, antoine.levitt@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 05 17:17:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHtkh-0006A3-V8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jun 2017 17:17:08 +0200 Original-Received: from localhost ([::1]:33856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHtkn-0006Lg-Dq for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jun 2017 11:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHtkg-0006KH-JV for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2017 11:17:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHtkc-0002OP-J0 for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2017 11:17:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55046) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHtkc-0002O0-F3 for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2017 11:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dHtkc-0001aG-73 for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2017 11:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jun 2017 15:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27243 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27243-submit@debbugs.gnu.org id=B27243.14966757656020 (code B ref 27243); Mon, 05 Jun 2017 15:17:02 +0000 Original-Received: (at 27243) by debbugs.gnu.org; 5 Jun 2017 15:16:05 +0000 Original-Received: from localhost ([127.0.0.1]:57723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHtjh-0001Z2-2M for submit@debbugs.gnu.org; Mon, 05 Jun 2017 11:16:05 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:64733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHtjf-0001YH-AL for 27243@debbugs.gnu.org; Mon, 05 Jun 2017 11:16:03 -0400 Original-Received: from rosalinde ([83.135.13.98]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MYKGj-1dLtxC2HoX-00V7Hn; Mon, 05 Jun 2017 17:15:55 +0200 In-Reply-To: <83poeia361.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 05 Jun 2017 18:02:14 +0300") X-Provags-ID: V03:K0:gX5OiDT1k7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There: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133297 Archived-At: On Mon, 05 Jun 2017 18:02:14 +0300 Eli Zaretskii 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