From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window Date: Sun, 14 Apr 2024 16:33:48 +0000 Message-ID: <87v84jrjir.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19251"; mail-complaints-to="usenet@ciao.gmane.io" To: 70386@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 14 18:34:12 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rw2o0-0004jB-HI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Apr 2024 18:34:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rw2nj-0006Xo-Uy; Sun, 14 Apr 2024 12:33:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rw2nh-0006XU-EF for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 12:33:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rw2nf-00084W-Qm for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 12:33:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rw2nq-0004KT-TP for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 12:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Apr 2024 16:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70386 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171311244116626 (code B ref -1); Sun, 14 Apr 2024 16:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Apr 2024 16:34:01 +0000 Original-Received: from localhost ([127.0.0.1]:36064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw2np-0004K3-6b for submit@debbugs.gnu.org; Sun, 14 Apr 2024 12:34:01 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:37820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw2nh-0004HO-Co for submit@debbugs.gnu.org; Sun, 14 Apr 2024 12:33:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rw2nF-0006Tw-UF for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 12:33:32 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rw2nB-000828-SH for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 12:33:24 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 30A76240103 for ; Sun, 14 Apr 2024 18:33:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1713112399; bh=D5wXYHLcx2x4/TT5SX+dnZxumN5aUn+AvKj/39DvTf8=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=hy8da3B87eJDJuLmfWKvTLfrYYlGJleSBoiVY7jQOmHEKti5dDnoZ0bVSrkiAtNX/ p6IUccgIa20zLnEgJrzhWi6NbDfCBYNuJJe+zXoK/AvwR1i55aSQxGcGiHc5JXt4aV FP2h2eHVH03yf1fOC9eeKZMr+Kpu5xvROiCcXCzHPCGHlTjja1BzfUPnb9uZsbNeFN VB0WEtV8sD9gFf3X1hrNIuB2rn49pSAQOlj1XgvDQQj0GJ5jX3IexCf/9VT4NQKLtu X1s3hJ9eu9DZk1xcIUgXBI+qh5b++WCuldasgTHDQKX4WDlJ89lBy52z/zc+NhSHmj jw+jD3aoluEnQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VHbTB24s7z9rxT for ; Sun, 14 Apr 2024 18:33:17 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283298 Archived-At: Consider the following reproducer: 1. emacs -Q 2. Insert the following into scratch buffer and put point at "recenter" (progn (require 'pixel-scroll) (pixel-scroll-precision-interpolate (* -1 (line-pixel-height) (max 0 (- (count-screen-lines (window-start) (point)) 2))) nil 1) ;; Call original recenter for final adjustment. (recenter 0 t)) 3. M-x eval-buffer 4. Observe that scroll is not set to line 0, despite calling `recenter' Changing (recenter 0 t) to (recenter 1 t) makes scrolling work as expected. This is on the latest master. I started seeing it only today, after pulling the latest main. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-04-14 built on localhost Repository revision: 99c86454cdd2720dd23393e4ffd94f8d27b784ca Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101011 System Description: Gentoo Linux Configured using: 'configure 'CFLAGS= -g3' JAVAC=/etc/java-config-2/current-system-vm/bin/javac' -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at