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, 19 May 2024 13:49:02 +0000 Message-ID: <87ikz9syi9.fsf@localhost> References: <87v84jrjir.fsf@localhost> <86plubw6my.fsf@gnu.org> <87edarf50m.fsf@yahoo.com> <87a5lff2h1.fsf@yahoo.com> <87jzkgaumg.fsf@localhost> <86pltv77w2.fsf@gnu.org> <87a5kz2ze7.fsf@yahoo.com> <87seyotf2v.fsf@localhost> <86msow1bdb.fsf@gnu.org> <87pltsteiu.fsf@localhost> <86le4g19ya.fsf@gnu.org> <87jzk0tcl9.fsf@localhost> <86fruo18pg.fsf@gnu.org> <87h6f4tbbl.fsf@localhost> <86eda71sdx.fsf@gnu.org> <87eda7tuya.fsf@localhost> <86a5kv1qlc.fsf@gnu.org> <87a5kvtt2f.fsf@localhost> <868r0f1pjr.fsf@gnu.org> <8734qnts2w.fsf@localhost> <8634qn1j6b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36026"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 70386@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 19 15:48:35 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 1s8gtv-0009AZ-LN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 May 2024 15:48:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8gtT-0002nE-PJ; Sun, 19 May 2024 09:48:07 -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 1s8gtK-0002l5-Pf for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 09:48:00 -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 1s8gtK-0000V4-CF for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 09:47:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8gtN-0001B0-WE for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 09:48: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, 19 May 2024 13:48:01 +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.17161264534504 (code B ref 70386); Sun, 19 May 2024 13:48:01 +0000 Original-Received: (at 70386) by debbugs.gnu.org; 19 May 2024 13:47:33 +0000 Original-Received: from localhost ([127.0.0.1]:36285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8gsv-0001Aa-7V for submit@debbugs.gnu.org; Sun, 19 May 2024 09:47:33 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:51801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8gst-0001AU-9m for 70386@debbugs.gnu.org; Sun, 19 May 2024 09:47:31 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 21CE6240104 for <70386@debbugs.gnu.org>; Sun, 19 May 2024 15:47:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1716126441; bh=2fXRS85tmWKZTvO970cKi43qkdP+E47r8aCl9gLs3dY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=AZAtboeCkqrUMfE0OTT7tJ4/Z3zGE+AYROITxpR9muREpZJA6TrmLy9wzzFNWKhn3 vmWTd7Kps+QXRbWH5tzksR4lHWGV3q0vJEldjrQQIzWWRGS3MWiFf3tg7YyqqryX5E t6jQA/5Nn5k8gh0/OVmU3wMSuRD4tW5TtpR8QxoqaZEwkMlMp9FM9oGJv4pABo+/Uf HAGgvLpHngXw1ktWKI9UpGhD+LqmRNwSuGfX8gxH0Td2t3erJnmeNHZnh03ZvIajtq Du6VzqvF/x4wtF1Dft6syQjeCDrhdPcJ1pY8p+qofVSKu4EgG6ogH4UrjEc3rIDwld En+0Nb6mLeeZA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Vj27X1LYCz9rxK; Sun, 19 May 2024 15:47:19 +0200 (CEST) In-Reply-To: <8634qn1j6b.fsf@gnu.org> 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:285432 Archived-At: Eli Zaretskii writes: >> 1. emacs -Q >> 2. Insert >> (progn >> (require 'pixel-scroll) >> (pixel-scroll-precision-interpolate >> (* -1 (line-pixel-height)) nil 1) >> (recenter 0 t)) >> 3. Move point to "progn" >> 4. M-x eval-buffer > > Still unpredictable. Sometimes point ends up on progn with > window-start being 1 as at the beginning, sometimes I see the > "recenter" line at the top line with point at EOB (i.e. below that > line). Ok. I can see what might be going on here - M-x eval-buffer moves the point before evaluation, causing this weird behavior. If I convert my recipe to a defun, there is no problem. I am still seeing weirdness on my side though with Emacs entering a state when calling M-: (recenter -1 t) does nothing even when the buffer should be scrolled (point not near the top of buffer). But I am unable to get a reliable reproducer. Feel free to close this bug report. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at