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: Tue, 27 Nov 2018 02:09:42 +0200 Organization: LINKOV.NET Message-ID: <87efb7fjm1.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> <87wop0and5.fsf@mail.linkov.net> <5BFBBDC5.10706@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543279329 5164 195.159.176.226 (27 Nov 2018 00:42:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2018 00:42:09 +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 Tue Nov 27 01:42:05 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 1gRRS0-0001Cp-C8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Nov 2018 01:42:04 +0100 Original-Received: from localhost ([::1]:39484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRRU6-0000fL-4X for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Nov 2018 19:44:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRRTt-0000e9-Ue for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2018 19:44:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRRQ3-0000pi-5E for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2018 19:40:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46001) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRRQ3-0000pe-21 for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2018 19:40:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gRRQ2-0000QY-Js for bug-gnu-emacs@gnu.org; Mon, 26 Nov 2018 19:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Nov 2018 00:40: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.15432791541582 (code B ref 33458); Tue, 27 Nov 2018 00:40:02 +0000 Original-Received: (at 33458) by debbugs.gnu.org; 27 Nov 2018 00:39:14 +0000 Original-Received: from localhost ([127.0.0.1]:50259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRRPG-0000PS-BM for submit@debbugs.gnu.org; Mon, 26 Nov 2018 19:39:14 -0500 Original-Received: from firebrick.maple.relay.mailchannels.net ([23.83.214.59]:23899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRRPB-0000Ow-UT for 33458@debbugs.gnu.org; Mon, 26 Nov 2018 19:39:10 -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 142EA5E3313; Tue, 27 Nov 2018 00:39:08 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (unknown [100.96.30.62]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C7A095E0A86; Tue, 27 Nov 2018 00:39:07 +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); Tue, 27 Nov 2018 00:39:08 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Suffer-Broad: 6fca9de53ffaa552_1543279147921_3044058229 X-MC-Loop-Signature: 1543279147921:3414117505 X-MC-Ingress-Time: 1543279147921 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 950A280801; Mon, 26 Nov 2018 16:39:07 -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=AahDS/UzUgKvYrdkuGWBJx0swbs=; b= nNoMKRg+kVliBFXGEzlo85IwkLM2nRf6v37j7oVTtbHOaPU7+32nylLOvYvZlbKo 77SWlYarbzpHXilR+ALfyh0YTpISbMNfbpBbrkif6UcK75d01IZWjvWuoVz0xgbU VsUVUyCMR7BG7m4teX7te1O7QjJBHUkuaQOYWf51X4Y= 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 D8886807EE; Mon, 26 Nov 2018 16:39:03 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a3 In-Reply-To: <5BFBBDC5.10706@gmx.at> (martin rudalics's message of "Mon, 26 Nov 2018 10:32:53 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedruddukedgvdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdejrddvgedvnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtjedrvdegvddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgepie 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:152800 Archived-At: >>> 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? > > It might work often. But in the cases where it does not work it will > cause so much confusion that we won't get through with it. AFAICT > even the current point restoring mechanism bows out when characters > are added/removed at the beginning of the buffer. Maybe marker-position should allow to call a function? For example, like 'isearch-push-state-function' remembers an additional state as a lambda, and when an old state is restored, a pop-fun lambda is called. The function that restores the buffer in the window could be the same.