X-Loop: help-debbugs@HIDDEN Subject: bug#33533: 26.1; set-window-configuration does not restore display start Resent-From: Markus Triska <triska@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 27 Nov 2018 22:17:02 +0000 Resent-Message-ID: <handler.33533.B.154335700829770 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 33533 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 33533 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.154335700829770 (code B ref -1); Tue, 27 Nov 2018 22:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Nov 2018 22:16:48 +0000 Received: from localhost ([127.0.0.1]:52583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gRley-0007k6-3R for submit <at> debbugs.gnu.org; Tue, 27 Nov 2018 17:16:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <triska@HIDDEN>) id 1gRlew-0007jt-84 for submit <at> debbugs.gnu.org; Tue, 27 Nov 2018 17:16:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <triska@HIDDEN>) id 1gRlep-0001hZ-Ud for submit <at> debbugs.gnu.org; Tue, 27 Nov 2018 17:16:40 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54591) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <triska@HIDDEN>) id 1gRleo-0001gz-UD for submit <at> debbugs.gnu.org; Tue, 27 Nov 2018 17:16:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <triska@HIDDEN>) id 1gRlen-0007Oi-Vu for bug-gnu-emacs@HIDDEN; Tue, 27 Nov 2018 17:16:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <triska@HIDDEN>) id 1gRlei-0001dj-HE for bug-gnu-emacs@HIDDEN; Tue, 27 Nov 2018 17:16:37 -0500 Received: from metalevel.at ([78.46.218.83]:50694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <triska@HIDDEN>) id 1gRlei-0001dS-6F for bug-gnu-emacs@HIDDEN; Tue, 27 Nov 2018 17:16:32 -0500 Received: from debian (localhost.localdomain [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 04B86A2AFD for <bug-gnu-emacs@HIDDEN>; Tue, 27 Nov 2018 23:16:31 +0100 (CET) Received: by debian (Postfix, from userid 1000) id DB2C9E1396; Tue, 27 Nov 2018 23:05:09 +0100 (CET) From: Markus Triska <triska@HIDDEN> Date: Tue, 27 Nov 2018 23:05:09 +0100 Message-ID: <87h8g22n3e.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -6.0 (------) In "emacs -Q", please evaluate the following form: (let ((buf (get-buffer-create "buf"))) (switch-to-buffer buf) (erase-buffer) (dotimes (x 10) (insert (format "x is %s\n" x))) (recenter 3) (sit-for 1) (let ((conf (current-window-configuration)) (ws (window-start)) (str (with-current-buffer buf (buffer-string)))) (with-current-buffer buf (erase-buffer) (insert str)) (set-window-configuration conf) (sit-for 1) (message "window-start: %s vs. %s" ws (window-start)))) This shows that after set-window-configuration, even though the buffer content is the same as at the time the configuration was obtained, the value of (window-start) differs from before: After the window configuration is set, (window-start) is 1. I expect it to be 50 (i.e., the value at the time the configuration was obtained), because the documentation of current-window-configuration states: This describes ... for each ... buffer, where display starts ... If possible, could you please consider restoring window-start to the exact same position? Thank you very much! In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2018-11-18 built on debian Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9.6 (stretch)
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Markus Triska <triska@HIDDEN> Subject: bug#33533: Acknowledgement (26.1; set-window-configuration does not restore display start) Message-ID: <handler.33533.B.154335700829770.ack <at> debbugs.gnu.org> References: <87h8g22n3e.fsf@HIDDEN> X-Gnu-PR-Message: ack 33533 X-Gnu-PR-Package: emacs Reply-To: 33533 <at> debbugs.gnu.org Date: Tue, 27 Nov 2018 22:17:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 33533 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 33533: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33533 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 28 Nov 2018 00:47:24 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 27 19:47:24 2018 Received: from localhost ([127.0.0.1]:52656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gRo0i-0002r7-2Q for submit <at> debbugs.gnu.org; Tue, 27 Nov 2018 19:47:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rgm@HIDDEN>) id 1gRo0g-0002ql-D2 for control <at> debbugs.gnu.org; Tue, 27 Nov 2018 19:47:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1gRo0Z-00039O-7V for control <at> debbugs.gnu.org; Tue, 27 Nov 2018 19:47:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1gRo0Y-00038L-WD for control <at> debbugs.gnu.org; Tue, 27 Nov 2018 19:47:15 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from <rgm@HIDDEN>) id 1gRo0X-0003NK-Qf for control <at> debbugs.gnu.org; Tue, 27 Nov 2018 19:47:14 -0500 Subject: control message for bug 33533 To: <control <at> debbugs.gnu.org> X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: <E1gRo0X-0003NK-Qf@HIDDEN> From: Glenn Morris <rgm@HIDDEN> Date: Tue, 27 Nov 2018 19:47:13 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -6.0 (------) merge 33532 33533
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.