From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70386: 30.0.50; (recenter 0 t) does not put point on top of the window Date: Mon, 15 Apr 2024 21:29:39 +0300 Message-ID: <86r0f6jx7w.fsf@gnu.org> References: <87v84jrjir.fsf@localhost> <864jc3n510.fsf@gnu.org> <87plurrb2z.fsf@localhost> <86wmoyk3m4.fsf@gnu.org> <87frvm5z24.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1010"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 70386@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 15 20:31:20 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 1rwR6t-000AXu-EB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Apr 2024 20:31:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwR6c-00071S-AD; Mon, 15 Apr 2024 14:31:02 -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 1rwR6S-0006pL-PA for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2024 14:30:58 -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 1rwR6S-00086W-1H for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2024 14:30:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rwR6d-0001vN-Jx for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2024 14:31:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Apr 2024 18:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70386 X-GNU-PR-Package: emacs Original-Received: via spool by 70386-submit@debbugs.gnu.org id=B70386.17132058092360 (code B ref 70386); Mon, 15 Apr 2024 18:31:03 +0000 Original-Received: (at 70386) by debbugs.gnu.org; 15 Apr 2024 18:30:09 +0000 Original-Received: from localhost ([127.0.0.1]:38884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwR5i-0000ZU-Bg for submit@debbugs.gnu.org; Mon, 15 Apr 2024 14:30:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwR5c-0000Vq-2R for 70386@debbugs.gnu.org; Mon, 15 Apr 2024 14:30:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwR5K-0007gL-SO; Mon, 15 Apr 2024 14:29:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LaOieBAQQ/nIbM8IWt7+mch9SdEBj09FGAQmMyCOEB0=; b=X9AOjMBoYi58 OP9sMs9r0htMLl0YQdwU8Dmnr+ue0NN0STF0SJXPznb/QDcf/HZxWwzdPAzUPOMqHgyM8utwn56ac bJ5waPTzgCl0j/pDUmbvj5qsJHvx+g+ZdI/PyX0qkwT2T8xcBYeWeRhtO5AB9o/P+ZxqKF/wEVYr/ h/chVMKJO0yBkxV0NIZIg9lfVRewi01qti8nLYOER59NQs3uFyPVENMpgNnjjN6o2aAwqsHEqJhzB PSRBaR8cTOzGRcNHt6C4pXVKTPRkVskMAcU91Levdy+XliBJCZyPVzhrD/qTUJgSiIhGAtso9A8kd l8pT/AgBLd2+WMnkB8Ch5w==; In-Reply-To: <87frvm5z24.fsf@localhost> (message from Ihor Radchenko on Mon, 15 Apr 2024 17:13:39 +0000) 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:283390 Archived-At: > From: Ihor Radchenko > Cc: Po Lu , 70386@debbugs.gnu.org > Date: Mon, 15 Apr 2024 17:13:39 +0000 > > Eli Zaretskii writes: > > >> Observed: > >> > >> 1. Line at point slowly scrolls up until it reaches top of the window > >> (`pixel-scroll-precision-interpolate' call) > >> > >> 2. Line at point is reset back to its initial scroll position > >> (`recenter' call) > > > > What is the "initial scroll position" in this case? > > The position before M-x eval-buffer > > In other words, the window slowly scrolls up, moving the point to the > top, but then quickly resets back to how it looked like before the > scroll started. No, it does not, at least not on my system. There's a small vscroll (you should see it if you move the cursor vertically with C-p after eval-buffer returns). So the code works, it just yields a vscroll that is not what you expect for some reason (and in about 50% of my attempts -- in the rest the code works as you expect).