From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#34038: 26.1; set-window-start sometimes fails to set window start Date: Sun, 13 Jan 2019 09:40:20 +0100 Message-ID: <5C3AF974.1030906@gmx.at> References: <83sgxzhe04.fsf@gnu.org> <87ef9je67i.fsf@metalevel.at> <20190111212357.GA5201@ACM> <87h8edt3kz.fsf@metalevel.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060001090604060600080607" X-Trace: blaine.gmane.org 1547368746 7321 195.159.176.226 (13 Jan 2019 08:39:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 13 Jan 2019 08:39:06 +0000 (UTC) Cc: 34038@debbugs.gnu.org To: Markus Triska , Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 13 09:39:02 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 1gibIL-0001kT-2Z for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jan 2019 09:39:01 +0100 Original-Received: from localhost ([127.0.0.1]:36809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gibKR-0002nG-Tz for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jan 2019 03:41:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gibKM-0002n8-9Z for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2019 03:41:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gibKL-0006uL-IG for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2019 03:41:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58049) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gibKI-0006tF-7q for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2019 03:41:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gibKH-0004JS-Us for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2019 03:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Jan 2019 08:41: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.154736883216531 (code B ref 34038); Sun, 13 Jan 2019 08:41:01 +0000 Original-Received: (at 34038) by debbugs.gnu.org; 13 Jan 2019 08:40:32 +0000 Original-Received: from localhost ([127.0.0.1]:57330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gibJn-0004IZ-OO for submit@debbugs.gnu.org; Sun, 13 Jan 2019 03:40:31 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:33351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gibJm-0004IN-ED for 34038@debbugs.gnu.org; Sun, 13 Jan 2019 03:40:30 -0500 Original-Received: from [192.168.1.101] ([212.95.5.75]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Me8di-1gu3tB18YA-00Ps1e; Sun, 13 Jan 2019 09:40:23 +0100 In-Reply-To: <87h8edt3kz.fsf@metalevel.at> X-Provags-ID: V03:K1:QfJsdWD84Yj9kZozwXlYmtAp1mash3Dl1AXaw8DJY0S6/aF7H+x x7YrjnbtnDvgMcGWujyVD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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:154403 Archived-At: This is a multi-part message in MIME format. --------------060001090604060600080607 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > This indeed seems to be a critical factor: an empty last line that > appears as the first line of the window. I think I now distilled a fairly simply recipe to watch the problem. Load the attached file with emacs -Q and type C-. Note that *scratch* contains no empty line when finally displayed. Also, here C-. displays the desired result with window-start at point-max for a short moment before making the buffer fully visible. Setting 'scroll-conservatively' to 101 fixes the problem. martin --------------060001090604060600080607 Content-Type: application/emacs-lisp; name="foobar.el" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="foobar.el" OzsgKHNldHEgc2Nyb2xsLWNvbnNlcnZhdGl2ZWx5IDEwMSkKCihkZWZ1biBmb29iYXIgKCkK ICAoaW50ZXJhY3RpdmUpCiAgKGVyYXNlLWJ1ZmZlcikKICAoaW5zZXJ0IChmb3JtYXQgImZp cnN0IGxpbmUgLi4uICVzXG4iIDEpKQogIChpbnNlcnQgKGZvcm1hdCAic2Vjb25kIGxpbmUg Li4uICVzIiAyKSkKICAoc2V0LXdpbmRvdy1zdGFydCBuaWwgKHBvaW50LW1heCkpCiAgKHNl dC13aW5kb3ctcG9pbnQgbmlsIChwb2ludC1tYXgpKSkKCihnbG9iYWwtc2V0LWtleSBbKGNv bnRyb2wgLildICdmb29iYXIpCg== --------------060001090604060600080607--