From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#33532: 26.1; set-window-configuration does not restore display start Date: Wed, 28 Nov 2018 18:13:57 +0100 Message-ID: <877egxyvje.fsf@metalevel.at> References: <87efb62mt2.fsf@metalevel.at> <83o9a9g0ui.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543425156 5530 195.159.176.226 (28 Nov 2018 17:12:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2018 17:12:36 +0000 (UTC) User-Agent: Emacs/24.5 Cc: 33532@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 18:12:32 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 1gS3O4-0001K2-8R for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2018 18:12:32 +0100 Original-Received: from localhost ([::1]:48974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS3QA-0003bv-JH for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2018 12:14:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS3Pa-00039P-Kc for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 12:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gS3PW-00006N-VB for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 12:14:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49455) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gS3PW-00005F-Mz for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 12:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gS3PW-0003Sw-Gw for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 12:14:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87efb62mt2.fsf@metalevel.at> Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Nov 2018 17:14: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.154342524013308 (code B ref 33532); Wed, 28 Nov 2018 17:14:02 +0000 Original-Received: (at 33532) by debbugs.gnu.org; 28 Nov 2018 17:14:00 +0000 Original-Received: from localhost ([127.0.0.1]:53713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gS3PU-0003SZ-7X for submit@debbugs.gnu.org; Wed, 28 Nov 2018 12:14:00 -0500 Original-Received: from metalevel.at ([78.46.218.83]:34328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gS3PS-0003SR-8U for 33532@debbugs.gnu.org; Wed, 28 Nov 2018 12:13:58 -0500 Original-Received: by metalevel.at (Postfix, from userid 1000) id 379AEA126B; Wed, 28 Nov 2018 18:13:57 +0100 (CET) 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:152861 Archived-At: Eli Zaretskii writes: > How important is the use case of replacing buffer text with identical > text? Because replacing with a different text will make preserving > window-start position based on its numerical value not really a > sensible thing, would it? It could even be impossible, e.g. if the > same position happens to be in the middle of a sequence of composed > characters. Please consider a use case that is described in the Emacs manual: In order to store a window configuration on disk and read it back in another Emacs session ... In such use cases, I want to restore the exact same text in all buffers, and then restore the window configuration, including display starts. In fact, the snippet illustrates an even simpler situation: It stores the configuration in a variable, and the session keeps running. I would like to obtain the configuration, then close all buffers, and later restore their contents (for example, from files), and then use set-window-configuration to restore the original window configuration, including all window-starts. Could set-window-configuration be generalized to reliably restore the window-starts also in such cases? If not, please consider adjusting the documentation to make clear what this actually guarantees. In particular, when are window-starts reliably restored, and when not? Thank you and all the best, Markus