From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34038: 26.1; set-window-start sometimes fails to set window start Date: Sun, 24 Mar 2019 19:28:25 +0200 Message-ID: <83ef6wnpvq.fsf@gnu.org> References: <83sgxzhe04.fsf@gnu.org> <87ef9je67i.fsf@metalevel.at> <20190111212357.GA5201@ACM> <87h8edt3kz.fsf@metalevel.at> <5C3AF974.1030906@gmx.at> <5029BB09-30CA-41BE-819D-E15101DCF38C@gnu.org> <5C3B3FCC.8080006@gmx.at> <83tviceg83.fsf@gnu.org> <87wokoa7c4.fsf@metalevel.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="198119"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34038@debbugs.gnu.org, acm@muc.de To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 24 18:29:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h86vs-000pPb-CH for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Mar 2019 18:29:16 +0100 Original-Received: from localhost ([127.0.0.1]:58824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h86vr-0007aQ-7T for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Mar 2019 13:29:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h86vg-0007WK-3N for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 13:29:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h86vf-0003tI-2J for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 13:29:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43468) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h86ve-0003t7-Sg for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 13:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h86ve-0006si-DT for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2019 13:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Mar 2019 17:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34038 X-GNU-PR-Package: emacs Original-Received: via spool by 34038-submit@debbugs.gnu.org id=B34038.155344851926419 (code B ref 34038); Sun, 24 Mar 2019 17:29:02 +0000 Original-Received: (at 34038) by debbugs.gnu.org; 24 Mar 2019 17:28:39 +0000 Original-Received: from localhost ([127.0.0.1]:57011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h86vD-0006ry-Rp for submit@debbugs.gnu.org; Sun, 24 Mar 2019 13:28:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h86vB-0006ri-0u for 34038@debbugs.gnu.org; Sun, 24 Mar 2019 13:28:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h86v4-0003cz-Om; Sun, 24 Mar 2019 13:28:26 -0400 Original-Received: from [176.228.60.248] (port=4769 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h86v3-0005EJ-J7; Sun, 24 Mar 2019 13:28:26 -0400 In-reply-to: <87wokoa7c4.fsf@metalevel.at> (message from Markus Triska on Sun, 24 Mar 2019 11:35:07 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.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:156711 Archived-At: > From: Markus Triska > Cc: martin rudalics , acm@muc.de, 34038@debbugs.gnu.org > Date: Sun, 24 Mar 2019 11:35:07 +0100 > > I have found another case of this issue (i.e., set-window-start fails to > set window-start). In emacs -Q, please evaluate the following form in > the *scratch* buffer: > > (progn > (delete-region (point) (point-max)) > (insert "\n") > (set-window-start nil 1) > (goto-char (point-max)) > (while t > (insert "test\n") > (unless (pos-visible-in-window-p (point)) > (redisplay) > (let ((start (window-start))) > (if (= start 1) > (error "window-start is now 1 (as expected), please try a different text-scale-amount") > (error "window-start is now unexpectedly %s (instead of 1)" start)))))) > > This sets, and sometimes fails to set, window-start to 1, apparently > depending on the amount of text-scale: > > When I evaluate this with text-scale-mode-amount set to 0, window-start > is correctly set to 1. However, when I change the amount of text-scale > with either C-x C-= or C-x C--, then, after the form stops evaluating, > window-start is at other positions. In that case, even when I then > manually try to set the window-start to 1 with: > > M-: (set-window-start nil 1) RET > > then the window-start is not set to 1, but remains at the same position. > Is this due to the same issue, or should I rather file this separately? Most probably it is the same issue. However, I'm not really sure what surprised you in this behavior, so how about describing what you thought should have happened here, step by step, in contrast with what did happen? I believe I then will be able to provide a more accurate answer to your question.