From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer Date: Mon, 25 May 2020 09:26:38 +0200 Message-ID: <87lflgfpap.fsf@gmx.net> References: <83d1ac6yih.fsf@gnu.org> <87shjf48se.fsf@epsilon> <87r2yizu66.fsf@beta> <87bmpm20zt.fsf@rosalinde> <87zicd1pfy.fsf@beta> <87379vwh7d.fsf@rosalinde> <87o9scv6bo.fsf@beta> <87k230qea5.fsf_-_@rosalinde> <83h8y38b98.fsf@gnu.org> <5974EDB5.7080608@gmx.at> <83a83v7zgl.fsf@gnu.org> <5975109E.3010209@gmx.at> <8760ed7xp3.fsf@rosalinde> <838tj84ser.fsf@gnu.org> <597B46DA.5040305@gmx.at> <8360ec4o42.fsf@gnu.org> <87mv7n4gd2.fsf@rosalinde> <874ks4ekpg.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="75609"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 27243@debbugs.gnu.org, monnier@IRO.UMontreal.CA, antoine.levitt@gmail.com To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 25 09:27:32 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jd7WF-000JZ6-UP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 May 2020 09:27:31 +0200 Original-Received: from localhost ([::1]:57108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jd7WE-0003F7-PI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 May 2020 03:27:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jd7Vm-0003Dq-Vw for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 03:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jd7Vm-0001Bd-MR for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 03:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jd7Vm-0001MG-IJ for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 03:27: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, 25 May 2020 07:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27243 X-GNU-PR-Package: emacs Original-Received: via spool by 27243-submit@debbugs.gnu.org id=B27243.15903916135202 (code B ref 27243); Mon, 25 May 2020 07:27:02 +0000 Original-Received: (at 27243) by debbugs.gnu.org; 25 May 2020 07:26:53 +0000 Original-Received: from localhost ([127.0.0.1]:39635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd7Vd-0001Lp-3c for submit@debbugs.gnu.org; Mon, 25 May 2020 03:26:53 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:51633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd7Va-0001LX-Uc for 27243@debbugs.gnu.org; Mon, 25 May 2020 03:26:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1590391600; bh=7SS1xR2b0bQNxZko/J0c6E6XRN872XrCLaf4M/tFsIE=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=VnyISxnLDGOalLihr2NgKygRjh9sJg2IsNg1roHFjTJidBG45BSzNIBPiT6WNKVDc 1ODjiZGZq3Fe6o0pXn0c++6V8Qk78FUuPaOYrU2dYsZs/wLEHjeV2JhuDANJtV5xpR ppJSLfJcHrwS9yDhgp+TsTBFLzNJV0pyF6AQH9Vg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobe-jhalfs ([178.6.211.181]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N9dsb-1j0Muj1yXF-015Y29; Mon, 25 May 2020 09:26:40 +0200 In-Reply-To: <874ks4ekpg.fsf@web.de> (Michael Heerdegen's message of "Mon, 25 May 2020 05:51:07 +0200") X-Provags-ID: V03:K1:vYdvVKr99X4eKPzBVlcdpbC8t/pvrEYV9iINGJ8gkOIwTx0Kkkw AfPmQwmvil9sOX9xuBXJWEIIx3+wEuULFR+PXLUvBH3909bkT6w1BK50oEcxxvpDoMO8jOw 0l27quVjdb1ScXKfr3j2/qk/D8Np4djdxHgqEdQsQafyaNswMQMmdoCSRwiqLmlWUTWUU1E G+0fqVHXnV6CJC99N5Fmw== X-UI-Out-Filterresults: notjunk:1;V03:K0:uEGJW7QjAHI=:WZ2yQTGAuc9hWrL7s3nqnX 0katFt27iVS0cgG5GtRnJVhYBwZ4ZdqX3FipYV+e8532yKfcD5otVf0wU2XoBPGjnQpa5JdHM kJUe8wievgG6P9X8YohuBu6VdlaWvRUB28Ejr3xd0NIpW/X0m8V1jhsV7A9aIQaG+Zy/x9tWR FoD+vC4HakUAg64A/nwdXycqHioHCXTeLEP7GjdIAAsK3jK6mywz+f7eVMhxi7pvGjV5lppCo VYVcA+ph97AUzYB2UYDC/Apw8LlZrMYTK6A79/nLThpkfQBO4gtc9JFXZwRGN3dJBHx+7Tnlr re2EBAoftIpVaFCORAQiNaFKWgwrWiifBguZ+PO6nmMyTHwyictFh384Rbfgk78to/KGUaAj8 3GIQjo93vXsUYlaOvy3z/8nnPKN4k1o8CTsMg4r7eluriCmGBTBENNUM+7hRzRKSfEYx6ETHJ W7TU6jsRTWq0sax6KWBglvPWThzk4GBYHl8VeQB8/BSmXAsP2mpyzzG2rGCQnf1iu7+fOna+k DXi3++sW9NmxXTvYM2ignUx/RSumIWRK2w3krXzmLXft2vRoXnJujeWuttxC27YNGCsZ481Rw UObKpCN05kXfDigSvFCfvIYtfT+x/pCGDqUmLPa5j7ueNdUArkjUiUArBqbnhTcdImi3LTAtE ZAU+HnY8+rYiLgSa3cb3M5UlEwSgcxl1XJJvunjILQJx+HmdpHGI5yjoYI1tc1I88Ckg9GT44 SU7nALy2/TG7cIKXBlVNHAWJ9jGVbBpGD2ub3JxeaVyo1kBNJF3Uo1n6zw1ZrQ5hRimwj/7c X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180953 Archived-At: On Mon, 25 May 2020 05:51:07 +0200 Michael Heerdegen wrote: > Stephen Berman writes: > >> > As long as the current behavior doesn't change, it's fine with me. >> >> I pushed the fix to master (8e394b082b). > > This broke a different use case for me. > > I'm using switch-to-buffer-preserve-window-point > t and > dired-auto-revert-buffer > nil. > > Say I have a frame showing the same dired buffer twice, with different > values of point, in two windows. When I hit ^ and then RET in > succession in the first window, I'm back in that buffer but point now > equals window-point of the second window. Emacs failed to restore the > correct value of point. If I revert this commit which replaced > `switch-to-buffer' with `pop-to-buffer-same-window' in `find-file', the > correct value of point is restored as expected. > `pop-to-buffer-same-window' probably doesn't care about > `switch-to-buffer-preserve-window-point' at all? Is this with -Q? I don't see this with -Q in a build from (not current but recent) master. I tried to reproduce what you described as follows: 1. emacs -Q 2. M-: switch-to-buffer-preserve-window-point RET => t M-: dired-auto-revert-buffer RET => nil 3. C-x d RET M-: (point) => 211 4. C-x 2 C-x o 10 n M-: (point) => 890 5. C-x o ^ RET M-: (point) => 211 also: 6. C-x o ^ RET M-: (point) => 890 If Emacs behaves as you described, the result in step 5 should have been 890, or have I misunderstood you? Steve Berman