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#33532: 26.1; set-window-configuration does not restore display start Date: Sun, 02 Dec 2018 09:34:39 +0100 Message-ID: <5C03991F.8030204@gmx.at> References: <87efb62mt2.fsf@metalevel.at> <83o9a9g0ui.fsf@gnu.org> <877egxyvje.fsf@metalevel.at> <5BFFA3FB.4060603@gmx.at> <8736rj4uxg.fsf@metalevel.at> <5C0039D0.2090309@gmx.at> <877eguqz7k.fsf@metalevel.at> <5C0177B2.4030803@gmx.at> <87va4cdfll.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 1543739589 29572 195.159.176.226 (2 Dec 2018 08:33:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2018 08:33:09 +0000 (UTC) Cc: 33532@debbugs.gnu.org, Markus Triska To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 02 09:33: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 1gTNBY-0007YW-C4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Dec 2018 09:33:04 +0100 Original-Received: from localhost ([::1]:43825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTNDe-0004Av-Vl for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Dec 2018 03:35:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTNDU-00048q-S4 for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2018 03:35:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTNDU-00045V-4p for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2018 03:35:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTNDS-00044o-UX for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2018 03:35:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gTNDS-0002TZ-R5 for bug-gnu-emacs@gnu.org; Sun, 02 Dec 2018 03:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Dec 2018 08:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33532 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33532-submit@debbugs.gnu.org id=B33532.15437396979488 (code B ref 33532); Sun, 02 Dec 2018 08:35:02 +0000 Original-Received: (at 33532) by debbugs.gnu.org; 2 Dec 2018 08:34:57 +0000 Original-Received: from localhost ([127.0.0.1]:57556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTNDN-0002Sy-3a for submit@debbugs.gnu.org; Sun, 02 Dec 2018 03:34:57 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:48271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTNDI-0002Sg-Sr for 33532@debbugs.gnu.org; Sun, 02 Dec 2018 03:34:53 -0500 Original-Received: from [192.168.1.101] ([46.125.250.94]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MQyxa-1gwcfN2Zaw-00UKsh; Sun, 02 Dec 2018 09:34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hZo1QOQhWeu3gq/94yEme1Z5wL/SOax7BxgHbUdR7MLW7JPOt0LuaEMsOtPgWl 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:152996 Archived-At: >> We could store - in configurations and states - both, markers and >> their corresponding pure positions. Then if, when restoring a >> configuration or state, a marker's position has dropped to 1 while the >> corresponding saved pure position is > 1, use the the pure position >> instead. This should automatically fix your case and not violate any >> others. Juri what do you think? > > I see no drawbacks, let's try storing both (maybe together with > metadata like dired-filename). It will fail when a window is stowed away in a list or configuration and the entire stretch of the buffer from 'point-min' up to some position at or after the stored point position is deleted. In that case, the point of any window showing the buffer should rightfully drop to 'point-min' but in our case it would go to the old position when the buffer is re-shown in the window. While this might be a rare use case, it would be confusing nevertheless. martin