From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!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: Sat, 12 Jan 2019 22:28:38 +0200 Message-ID: <831s5hfwnd.fsf@gnu.org> References: <83sgxzhe04.fsf@gnu.org> <87ef9je67i.fsf@metalevel.at> <83d0p3gvua.fsf@gnu.org> <8736pz8dus.fsf@metalevel.at> <5C38B1F5.7040205@gmx.at> <87o98nf5pq.fsf@metalevel.at> <5C39A17B.8030204@gmx.at> <87fttydn2y.fsf@metalevel.at> <5C39F5CF.6050805@gmx.at> <87won9elso.fsf@metalevel.at> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1547325605 8575 195.159.176.226 (12 Jan 2019 20:40:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2019 20:40:05 +0000 (UTC) Cc: 34038@debbugs.gnu.org To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 12 21:40:00 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 esmtp (Exim 4.84_2) (envelope-from ) id 1giQ4V-00023F-Ha for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jan 2019 21:39:59 +0100 Original-Received: from localhost ([127.0.0.1]:60797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giQ6c-0001S4-HE for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jan 2019 15:42:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giQ6O-0001EK-QZ for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2019 15:41:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giPut-0004GE-MQ for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2019 15:30:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1giPut-0004Fq-Iv for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2019 15:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1giPut-0003Iy-8T for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2019 15:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Jan 2019 20:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34038 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 34038-submit@debbugs.gnu.org id=B34038.154732494712603 (code B ref 34038); Sat, 12 Jan 2019 20:30:03 +0000 Original-Received: (at 34038) by debbugs.gnu.org; 12 Jan 2019 20:29:07 +0000 Original-Received: from localhost ([127.0.0.1]:57146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1giPty-0003HC-JZ for submit@debbugs.gnu.org; Sat, 12 Jan 2019 15:29:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1giPtv-0003Gd-Rq for 34038@debbugs.gnu.org; Sat, 12 Jan 2019 15:29:04 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giPtp-0002ZM-Ry; Sat, 12 Jan 2019 15:28:57 -0500 Original-Received: from [176.228.60.248] (port=3455 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1giPtp-0005IJ-FH; Sat, 12 Jan 2019 15:28:57 -0500 In-reply-to: <87won9elso.fsf@metalevel.at> (message from Markus Triska on Sat, 12 Jan 2019 20:08:23 +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:154393 Archived-At: > From: Markus Triska > Cc: Eli Zaretskii , 34038@debbugs.gnu.org > Date: Sat, 12 Jan 2019 20:08:23 +0100 > > > If so then does (setq scroll-conservatively 101) fix it? > > Yes, with scroll-conservatively set to 101, I get the intended effect, > i.e., the same position of window point as after Step 1 (79) also after > the whole form is evaluated! This is what I expect also with the default > settings, i.e., scroll-conservatively set to 0, for this snippet. Most probably, given the size of your default font, the last line of the window is not fully visible, and so Emacs recenters point to make its line visible. With scroll-conservatively it intentionally avoids doing that because that's what scroll-conservatively is all about. But that option sometimes causes expensive calculations during redisplay, and many people don't like the effect even when it causes no slow-down, so it is not the default.