From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#33458: 27.0.50; dired loses position when reverted from outside place Date: Sun, 25 Nov 2018 22:45:18 +0200 Organization: LINKOV.NET Message-ID: <87wop0and5.fsf@mail.linkov.net> References: <87k1l6f9li@posteo.net> <87muq23vsk.fsf@gmx.net> <87h8g9fpl3@posteo.net> <5BF7AF19.4070809@gmx.at> <87bm6fyf78@posteo.net> <5BF84EE6.9020004@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543180803 29039 195.159.176.226 (25 Nov 2018 21:20:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2018 21:20:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Stephen Berman , 33458@debbugs.gnu.org, v88m@posteo.net To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 22:19:59 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 1gR1or-0007K5-5w for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 22:19:57 +0100 Original-Received: from localhost ([::1]:33140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gR1qx-0003L0-R0 for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 16:22:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gR1gJ-00026Z-Sl for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 16:11:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gR1gF-0008Ro-Mq for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 16:11:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gR1gF-0008Rj-JO for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 16:11:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gR1gF-0008TS-DF for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 16:11:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Nov 2018 21:11:03 +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.154318022032485 (code B ref 33458); Sun, 25 Nov 2018 21:11:03 +0000 Original-Received: (at 33458) by debbugs.gnu.org; 25 Nov 2018 21:10:20 +0000 Original-Received: from localhost ([127.0.0.1]:47659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gR1fX-0008Rt-T5 for submit@debbugs.gnu.org; Sun, 25 Nov 2018 16:10:20 -0500 Original-Received: from common.maple.relay.mailchannels.net ([23.83.214.38]:29629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gR1fW-0008Rl-6l for 33458@debbugs.gnu.org; Sun, 25 Nov 2018 16:10:18 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6D61A5C4912; Sun, 25 Nov 2018 21:10:17 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (unknown [100.96.36.160]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1EDE25C48F4; Sun, 25 Nov 2018 21:10:17 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sun, 25 Nov 2018 21:10:17 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Rock-Cooperative: 2a77584633e130a1_1543180217251_3994301048 X-MC-Loop-Signature: 1543180217251:4074450702 X-MC-Ingress-Time: 1543180217251 Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a3.g.dreamhost.com (Postfix) with ESMTP id DB1E781054; Sun, 25 Nov 2018 13:10:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=iCwdUlSZwqaDtmQdposJsL1gfMQ=; b= ItHHYkG94bIOJDP6M0HW0V+lBuhRAiUryjA7M/KJ9fR3qlqmSQDLoznR9c3ctM2e BT/tilr4nWRsnSPXs90H4RL2r4f5acdhJa/JTLHPNSvcbuQGiqRw9xOxxYzlMA9C KahXI0OaZsT0DC0wTdNjZ5smLV1Myh8fiy6iEG+FNxM= Original-Received: from mail.jurta.org (m91-129-107-242.cust.tele2.ee [91.129.107.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a3.g.dreamhost.com (Postfix) with ESMTPSA id BD46A81053; Sun, 25 Nov 2018 13:10:12 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a3 In-Reply-To: <5BF84EE6.9020004@gmx.at> (martin rudalics's message of "Fri, 23 Nov 2018 20:03:02 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudduhedgudeglecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtjedrvdegvdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdejrddvgedvpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedv 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:152773 Archived-At: > The only solution I can think of is to have 'dired-restore-positions' > scan 'window-prev-buffers' for each window and if it finds the buffer > that was reverted there, update the associated point position to the > position of the buffer's point it calculated itself. If you want to > give it a try I can tell you everything you need to know. I have the same problem with reverting Dired buffers that later are restored from window states and window configurations. Moreover, a similar problem is also an obstacle in bug#32536, please see a detailed explanation I posted now there where the reverted Man buffer invalidates markers in the Occur buffer. > A more generic solution might be wanted for other auto-revert clients > as well. But that's more hairy and not of much use for dired anyway. Is it possible to fix all these problems by not resetting markers to the beginning of the reverted buffer, but allowing markers to keep their previous positions in reverted buffers? Or maybe reverting functions should be more smart to restore markers using remembered context, like e.g. bookmarks do.