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: Sat, 28 Dec 2024 13:13:18 +0200 Message-ID: <86frm8t60h.fsf@gnu.org> References: <86cyiorh6m.fsf@gnu.org> <2689fac8-0a2f-ed4e-b46e-afa4f36ab840@gmail.com> <87jzcwi1e1.fsf@yahoo.com> <86r073oitp.fsf@gnu.org> <86ldx1826g.fsf@gnu.org> <86v7vmvc2p.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25884"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, ashton@wiersdorfmail.net, 74430@debbugs.gnu.org To: luangruo@yahoo.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 28 12:14:24 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 1tRUm0-0006aR-HT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Dec 2024 12:14:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRUli-0001k6-57; Sat, 28 Dec 2024 06:14:06 -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 1tRUle-0001jn-Sa for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 06:14:03 -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 1tRUle-00081y-Jx for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 06:14: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=hB7duN6jGlx9xTxPNrgZkUjXYt7k0QPxDPUjSE0g344=; b=dyCHi4l4CTREXBPFmplMadnx/CQ2ph25gKgnF6DSQc21YMj4zv/YzqtJRVQ14krw0f3XT0YAw0Jy87k9brIJDFv2GvdfdeyUmZQAdrfRbqzjH9JDjWtBJ4p8V8QmQHVLlEqh27IaP7hL/V5QhQjFp1mDnEc0JXqQGEvudD+CiJY/fNYCZZEOlAfTKdBTmF+xF3ubALM8NMszhgao+QOuemrngluqaqcAeuzLlFHgWJ+zmcleqBs95Zg3ek5ZoGAF/zvHS1J8gIh0k8g2VUKJEQjzPnTsdzVTpTooeqGnc7wqj0eMJZ3l75Kqi5A7m1wCKa8XykTgKE9AmbE7vdmGnA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRUle-0006fZ-CY for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 06:14: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: Sat, 28 Dec 2024 11:14: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.173538442325535 (code B ref 74430); Sat, 28 Dec 2024 11:14:02 +0000 Original-Received: (at 74430) by debbugs.gnu.org; 28 Dec 2024 11:13:43 +0000 Original-Received: from localhost ([127.0.0.1]:48983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRUlK-0006dn-HH for submit@debbugs.gnu.org; Sat, 28 Dec 2024 06:13:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRUlI-0006dZ-Hw for 74430@debbugs.gnu.org; Sat, 28 Dec 2024 06:13:41 -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 1tRUlD-0007xM-84; Sat, 28 Dec 2024 06:13:35 -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=hB7duN6jGlx9xTxPNrgZkUjXYt7k0QPxDPUjSE0g344=; b=lg7+mn5jBxb/ UCP8WnImfFkd0UZiCIIG3PkUvSTv3SkaTUskrPgsZ15PZBQqfG+UCkixyxMzcBoRatofgJVExpFVO CacftyId4/YEoh8vbuxQiaTvcWc9+q+iJqH+qX4HJorMsI5Iu7uj/HyrnNF3y9fInZqCmRKJ02bvN d+CN/mEXN8YS1JZklW6JdchsYS4wuotDjQ8hoic0/GJ73NzyM35ZyFvdLc1SDPgUbiWU1M2P6kK4H YutTnOaCvkrOS6pwW3AMxwXSL9uMG8/BWMFNcH1JtmGTE6j4DzT8IGMiqtPnGSpwZSZrkMf/TtE63 hoNZ6gK08/6sHi7e14SNJw==; In-Reply-To: <86v7vmvc2p.fsf@gnu.org> (message from Eli Zaretskii on Sat, 14 Dec 2024 11:38:38 +0200) 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:297878 Archived-At: Ping! Ping! Ping! Po Lu, are you there? > Cc: jporterbugs@gmail.com, ashton@wiersdorfmail.net, 74430@debbugs.gnu.org > Date: Sat, 14 Dec 2024 11:38:38 +0200 > From: Eli Zaretskii > > Ping! Ping! Po Lu, can you please answer the question? > > > Cc: jporterbugs@gmail.com, ashton@wiersdorfmail.net, 74430@debbugs.gnu.org > > Date: Sat, 30 Nov 2024 12:07:51 +0200 > > From: Eli Zaretskii > > > > Ping! > > > > > Cc: jporterbugs@gmail.com, ashton@wiersdorfmail.net, 74430@debbugs.gnu.org > > > Date: Fri, 22 Nov 2024 08:58:58 +0200 > > > From: Eli Zaretskii > > > > > > > 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? > > > > > > > > > > > > > > > > > > > > > > > >