From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: v88m@posteo.net Newsgroups: gmane.emacs.bugs Subject: bug#33458: 27.0.50; dired loses position when reverted from outside place Date: Thu, 22 Nov 2018 12:07:04 +0300 Message-ID: <87h8g9fpl3@posteo.net> References: <87k1l6f9li@posteo.net> <87muq23vsk.fsf@gmx.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542877705 24133 195.159.176.226 (22 Nov 2018 09:08:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Nov 2018 09:08:25 +0000 (UTC) Cc: 33458@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 22 10:08:20 2018 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 1gPky5-00062j-Rp for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Nov 2018 10:08:15 +0100 Original-Received: from localhost ([::1]:44808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPl0C-0008J5-B4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Nov 2018 04:10:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPkz0-0007eZ-Up for bug-gnu-emacs@gnu.org; Thu, 22 Nov 2018 04:09:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPkyt-0004nn-3V for bug-gnu-emacs@gnu.org; Thu, 22 Nov 2018 04:09:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36230) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPkys-0004nF-S5 for bug-gnu-emacs@gnu.org; Thu, 22 Nov 2018 04:09:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gPkys-0003ZG-GM for bug-gnu-emacs@gnu.org; Thu, 22 Nov 2018 04:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: v88m@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Nov 2018 09:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33458 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33458-submit@debbugs.gnu.org id=B33458.154287772513688 (code B ref 33458); Thu, 22 Nov 2018 09:09:02 +0000 Original-Received: (at 33458) by debbugs.gnu.org; 22 Nov 2018 09:08:45 +0000 Original-Received: from localhost ([127.0.0.1]:40488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPkya-0003Yi-UJ for submit@debbugs.gnu.org; Thu, 22 Nov 2018 04:08:45 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:42535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPkyY-0003YU-9p for 33458@debbugs.gnu.org; Thu, 22 Nov 2018 04:08:43 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id F137016005D for <33458@debbugs.gnu.org>; Thu, 22 Nov 2018 10:08:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1542877716; bh=oga9urAwEFe7SacKZJMPtrrEi0aE8N9qQqJfOeVVsEM=; h=From:To:Cc:Subject:Date:From; b=q9M6AKuhrskb6l9k14T7ZmwQAe+VyuOPXaajXVruTEOnxbazQqwIqzdf4CqTU6b4o WCdRX0PZTGRTm6az0wKmazGOICEjzTujr6vmuEJf5Dj1nfqDwaJOMAZeLJqFQbv1IP C1BgVrF7hMlsmXIqc/mIJBlEJzIDcuh4y6PsoYa5zsL44aS3UHLPHfhEUkodIqYmj3 bjiNtML7375IiXRa5P9T7qWIRaDhgB1A6UmUYbg12wF4FwDp7ItuprYk0jlt9etB0M lJjJr6Nec9d2UmxRCOqbqeyZGcNiZZz0EoYCSrRmk3K9WYCt1SaF4c0nHtg+6X0P1q 3+uDTDIZZVcyg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 430tsH0hgMz6tm5; Thu, 22 Nov 2018 10:08:34 +0100 (CET) In-Reply-To: <87muq23vsk.fsf@gmx.net> X-BeenThere: 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:152665 Archived-At: Thanks, On Wed, Nov 21 2018, Stephen Berman wrote: > I assume you used `C-x b' (switch-to-buffer) to switch back. No, just close DIR-B buffer or do M-: (previous-buffer). > If so, this happens because dired-revert erases and then repopulates > the buffer it's called on, which relocates the markers used by > switch-to-buffer to find window-point when > switch-to-buffer-preserve-window-point is t, which is it by default > since Emacs 26. If you set that variable to nil, point will be where > you expected after `C-x b'. Now it works for `C-x b' but not for M-: (previous-buffer) of closing DIR-B buffer. Point still lost. > Alternatively, if you use `C-x d' (i.e. M-x dired) to return to the > DIR-A buffer, point will be where you expected (even if > switch-to-buffer-preserve-window-point is t). Yes, it does, but more consistent behavior needed. > See bug#27243, > https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-06/msg00147.html Good explanation, but your patches seems outdated and doesn't work for me either. -- WBR, Yuri