From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#33458: 27.0.50; dired loses position when reverted from outside place Date: Tue, 27 Nov 2018 09:08:39 +0100 Message-ID: <5BFCFB87.6060005@gmx.at> 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> <87efb7fjm1.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1543306033 4191 195.159.176.226 (27 Nov 2018 08:07:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2018 08:07:13 +0000 (UTC) Cc: Stephen Berman , 33458@debbugs.gnu.org, v88m@posteo.net To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 27 09:07:09 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 1gRYOj-0000wZ-7J for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Nov 2018 09:07:09 +0100 Original-Received: from localhost ([::1]:40574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRYQp-0000zA-67 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Nov 2018 03:09:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRYQd-0000yf-Fo for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2018 03:09:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRYQZ-0006iu-M7 for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2018 03:09:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRYQZ-0006io-Ii for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2018 03:09:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gRYQZ-0007IV-DP for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2018 03:09:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Nov 2018 08:09: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.154330613428015 (code B ref 33458); Tue, 27 Nov 2018 08:09:03 +0000 Original-Received: (at 33458) by debbugs.gnu.org; 27 Nov 2018 08:08:54 +0000 Original-Received: from localhost ([127.0.0.1]:50399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRYQQ-0007Hn-GU for submit@debbugs.gnu.org; Tue, 27 Nov 2018 03:08:54 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:57275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRYQO-0007Ha-ID for 33458@debbugs.gnu.org; Tue, 27 Nov 2018 03:08:52 -0500 Original-Received: from [192.168.1.101] ([46.125.249.61]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LZiLk-1fg53v3XgK-00lWbI; Tue, 27 Nov 2018 09:08:43 +0100 In-Reply-To: <87efb7fjm1.fsf@mail.linkov.net> X-Provags-ID: V03:K1:sMAjXp60tI6J+kfSyst1xBNu/8x9RNqkkKuPRtGAOblS12Q5wOq fB0JO1iV9LNprN5iMo9NKoOrEJMnCUuw0UV+8BN4o0bVVokRnzyTihA6uDKQDMwSkqbW4D1 /IQUDjyPK/KdcEYk0WDBlMhbgvSfGfZS5pbQ6NY0Whdi2XZrFwREQuZPrC50l+IUg3ydaXw pX6WI5L632pD7SSBgHL4Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:TQE0q8eRWXw=:Z2GNno6E3Y3V4qyjuWgsEv QeLNy1xjVmXIsmtiePxmeufy0QN7MYjk4SP+PrqG9haXKnmmrh75LAvEAzgcNCDyf5tE7jMQD wcBcmOQlrJkZkRy562NTmfHccl+SQfAzHVc4FHAPYKGxQu0lD2SRdAVEmvkgGcV+MYB9dyPNt Gu+q8HXuvRI0vgGlZ7roS+xNwLrT6Mo15rTrVG0eQmOjln/KZS8gPK3uKKSI/eWfjB/RypSUx okj8AU7642L4CheyRwGfOd+j9ZTNQwxbcINo07LUTfdAKFuVSGq0PTXzX/667ISaHHquAAcS7 3uo0fH3wEGV1kSw1uXMt/arv83IU8ri+v27zR+328hyUnymQRVvGBAB7DLePVLzVW7Np09Mh1 UtOlWzW2hVgiH79DA/oOlUaGy6pHYjgg3ISsEZ1dCms1PN0ZBJ2jt0GEqoG6ILEuar8c7OqcB ER+ewYZ6By047lW5qDVN12c0MhYdfipE2zXtewbY+5f+NY5LIOSXpSAUyQBZMoiNun5hMEIVd acdQoppia0XuMO+CTw123CHJkA/6BO3QxQJCvFNF2UGiLVP7VReAgqR98EgjxkpRmDtxzPfM5 /rNjrH5aeRELLjnv4Dqbrps0TNwv44MgDWRFebc73Vycm+WYMWIRBcMTOO/Pl6sUXV+fN8pvu KuIXPXJacO3JnJxsl8hgqq/iOC6vpGp7OC+AOWYiqB++Ag5mGMUsXigGhf251vSoF6x4f1nIA x6Rn21TcQz1JY4xhTd7lRLxyNJa7GjnTLix1V7hpFSEy9khZgq4ofMSFoK/i/LFjrAFY1OTb 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:152816 Archived-At: > 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. The problem we face here is almost exclusively restricted to reverting buffers and 'marker-position' is too heavily used as to be affected by that. Now, if we talk about dired buffers only, they have a very helpful restriction that invariably permeates all file systems: The file names in a directory must be unique. So if a marker is on the line of a file name it can quite easily return to that name after reversal (provided the file still exists). A similar argument should hold for non-file visiting buffers like Buffer List buffers. Finally, in quite a number of cases 'auto-revert-tail-mode' should take care of markers in the unchanged initial part of a file. Do we have many other auto-reverted buffers? martin