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#34038: 26.1; set-window-start sometimes fails to set window start Date: Sat, 12 Jan 2019 20:08:23 +0100 Message-ID: <87won9elso.fsf@metalevel.at> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1547320029 10822 195.159.176.226 (12 Jan 2019 19:07:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2019 19:07:09 +0000 (UTC) User-Agent: Emacs/24.5 Cc: 34038@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 12 20:07:05 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 1giOcU-0002Wp-MI for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jan 2019 20:06:58 +0100 Original-Received: from localhost ([127.0.0.1]:35907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giOeb-000419-AB for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jan 2019 14:09:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giOeV-00040y-4Y for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2019 14:09:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giOeU-0002z9-F3 for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2019 14:09:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1giOeU-0002yU-As for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2019 14:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1giOeT-0001Nt-RY for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2019 14:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Jan 2019 19:09:01 +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.15473201075282 (code B ref 34038); Sat, 12 Jan 2019 19:09:01 +0000 Original-Received: (at 34038) by debbugs.gnu.org; 12 Jan 2019 19:08:27 +0000 Original-Received: from localhost ([127.0.0.1]:57122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1giOdv-0001N8-Cy for submit@debbugs.gnu.org; Sat, 12 Jan 2019 14:08:27 -0500 Original-Received: from metalevel.at ([78.46.218.83]:52638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1giOdu-0001Mw-0W for 34038@debbugs.gnu.org; Sat, 12 Jan 2019 14:08:26 -0500 Original-Received: by metalevel.at (Postfix, from userid 1000) id C18B9A0227; Sat, 12 Jan 2019 20:08:23 +0100 (CET) In-Reply-To: <5C39F5CF.6050805@gmx.at> (martin rudalics's message of "Sat, 12 Jan 2019 15:12:31 +0100") 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:154390 Archived-At: martin rudalics writes: >> In this snippet, I try to restore the exact same configuration that you >> see when "Step 1 ..." is displayed, i.e., window-start is set so that >> point is on the very first line, which is blank. When you press a key at > > I think you mean on the very _last_ line here. Right? I mean point is at the first line that is shown in the window, i.e., point is at the topmost left position in the window, and yes, that is the last line of the buffer. > in an empty *scratch* buffer here gives 97..97 and 393..97 for (point) > and wp. Do you see that? I get: Step 1 at 79 wp is 79 Step 2 at 321 wp is 79 where (frame-height) yields 30, and (window-height) yields 29. > 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. Thank you and all the best, Markus