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:58:30 +0100 Message-ID: <87efb56q49.fsf@metalevel.at> References: <87efb62mt2.fsf@metalevel.at> <83o9a9g0ui.fsf@gnu.org> <877egxyvje.fsf@metalevel.at> <83sgzldrq3.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543427827 31327 195.159.176.226 (28 Nov 2018 17:57:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2018 17:57:07 +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:57:03 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 1gS458-00082h-6o for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2018 18:57:02 +0100 Original-Received: from localhost ([::1]:49356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS47E-0006GZ-Pa for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2018 12:59:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS478-0006GU-4J for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 12:59:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gS474-0005vm-S0 for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 12:59:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gS474-0005vF-O1 for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 12:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gS474-0004cO-HR for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2018 12:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Nov 2018 17:59: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.154342791317707 (code B ref 33532); Wed, 28 Nov 2018 17:59:02 +0000 Original-Received: (at 33532) by debbugs.gnu.org; 28 Nov 2018 17:58:33 +0000 Original-Received: from localhost ([127.0.0.1]:53732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gS46a-0004bX-QS for submit@debbugs.gnu.org; Wed, 28 Nov 2018 12:58:32 -0500 Original-Received: from metalevel.at ([78.46.218.83]:35328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gS46Z-0004bO-7y for 33532@debbugs.gnu.org; Wed, 28 Nov 2018 12:58:31 -0500 Original-Received: by metalevel.at (Postfix, from userid 1000) id 16251A2AC0; Wed, 28 Nov 2018 18:58:30 +0100 (CET) In-Reply-To: <83sgzldrq3.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 28 Nov 2018 19:41:56 +0200") 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:152864 Archived-At: Eli Zaretskii writes: >> In such use cases, I want to restore the exact same text in all buffers, >> and then restore the window configuration, including display starts. > > Please propose how to do that. If it can be done ion a useful manner, > I don't see why we shouldn't. In my opinion, one way to do it is to have current-window-configuration store the window-start internally as an integer (instead of a marker), denoting the position of the display start. Then, set-window-configuration could set the window-start to that position. Would that work? At least that is how I currently work around the issue. > Well, you get everything _excluding_ the window-start. I think it's > still a bargain. It is! However, the documentation suggests that it is even better, when it's currently not. All the best, Markus