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#74430: 30.0.92; pixel-scroll-precision-mode hiding Eshell prompt after some commands Date: Fri, 22 Nov 2024 08:58:58 +0200 Message-ID: <86r073oitp.fsf@gnu.org> References: <86cyiorh6m.fsf@gnu.org> <2689fac8-0a2f-ed4e-b46e-afa4f36ab840@gmail.com> <87jzcwi1e1.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33387"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, ashton@wiersdorfmail.net, 74430@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 22 08:00:27 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 1tENeT-0008U4-Rp for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Nov 2024 08:00:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tENeJ-0004mR-1d; Fri, 22 Nov 2024 02:00:15 -0500 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 1tENe7-0004jE-09 for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 02:00:07 -0500 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 1tENe6-0002yH-6y for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 02:00:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=5yqa/Ht5qD42ykNlKNSgj8VQaspkUYpnqlNa9C0U4O4=; b=uDMmhOm52COiGgVMfpYhXnl2gTJrb4nU7WsPPGPnXCVFrKn0z1JnPS5YWn4yb0dS/rUdwSeJvDiTTZk7g5WLUlc6/YR29L5pu3ZPiNEUoqkSNbZTJunkAnDa0bNxeg+2W0BnXNmuPz6RX52mQriu3IN+ySrkNeNJUQr5xsAQKXv4vAqzUduufvVL66dYlnTSDAOzD86jXzcF/bE6fsxL6FH0Lc/VMfK7uurguQWgw/dvrpSLPpkCpmkPOUpkYKHhp7oh3ZxdwQ9VWSCcdklF2AyMLSvQiHcJshnDOE0c02sq6k9xXADd6yppXtaS1VfS2Qite01Q830y+/Nm2ezqOg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tENe6-0001Ai-2p for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 02:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Nov 2024 07:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74430 X-GNU-PR-Package: emacs Original-Received: via spool by 74430-submit@debbugs.gnu.org id=B74430.17322587494389 (code B ref 74430); Fri, 22 Nov 2024 07:00:02 +0000 Original-Received: (at 74430) by debbugs.gnu.org; 22 Nov 2024 06:59:09 +0000 Original-Received: from localhost ([127.0.0.1]:52823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tENdF-00018i-32 for submit@debbugs.gnu.org; Fri, 22 Nov 2024 01:59:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tENdC-00018E-1c for 74430@debbugs.gnu.org; Fri, 22 Nov 2024 01:59:06 -0500 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 1tENd6-0002wU-Ph; Fri, 22 Nov 2024 01:59:00 -0500 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=5yqa/Ht5qD42ykNlKNSgj8VQaspkUYpnqlNa9C0U4O4=; b=R7D/TOnxKS8Y W/6eEbyKclHs2sFxLQ8MZloWu8Pl4tI5f+IAJreQDecGmq1Uxd9bfJUbnWkpj0vNr30Hfg9sRIC+1 NUhKyHQN66j4zyqI7dNwy2pW4T+aZgzziBmAf8yOlnm04M98fNJ92A7BRHM7dmEXEKoMxsQcgcVdp oriCNwt4NFC9NskwCeE+3IirMFGhCVRp9TO4TNkmhGKe3HqGkNoXBKIMpOjQ8749JR++NfCZ/BXEJ V7zjolzMzcWxQXvLWq1kCA4KxvtUPCY6C97kZfjxlX5bySsnErac4OhwF5RbQiYrWM2amBagA9uYQ pLYUZEyiJzD+1PUwA98F1g==; In-Reply-To: <87jzcwi1e1.fsf@yahoo.com> (message from Po Lu on Fri, 22 Nov 2024 07:59:50 +0800) 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:295770 Archived-At: > From: Po Lu > Cc: Eli Zaretskii , Ashton Wiersdorf > , 74430@debbugs.gnu.org > Date: Fri, 22 Nov 2024 07:59:50 +0800 > > Jim Porter writes: > > > I'm only dimly aware of how 'pixel-scroll-precision-mode' works, but I > > seem to recall that it sets the window's vscroll to allow scrolling > > past *part* of a line. On the Eshell side, I believe the relevant > > function is 'eshell-postoutput-scroll-to-bottom', which calls > > 'recenter' to scroll the window. > > > > I'm guessing these interact badly, and what we actually want to do is > > to reset the vscroll when Eshell calls 'recenter'. However, I'm not > > sure what the best way to do this would be. Is there some better > > function Eshell can call that would handle this case correctly? > > Since pixel-scroll-precision-mode never configures a vscroll taller than > one screen line, resetting vscroll in these scenarios is generally the > safest and simplest solutions to problems such as the OP is facing. So you suggest that eshell-postoutput-scroll-to-bottom explicitly resets the window's vscroll, and that should solve the OP's problem?