From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 07:59:50 +0800 Message-ID: <87jzcwi1e1.fsf@yahoo.com> References: <86cyiorh6m.fsf@gnu.org> <2689fac8-0a2f-ed4e-b46e-afa4f36ab840@gmail.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14690"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Ashton Wiersdorf , 74430@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 22 01:01:40 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 1tEH7E-0003f7-4d for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Nov 2024 01:01:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEH6n-0001Oa-EZ; Thu, 21 Nov 2024 19:01:14 -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 1tEH6c-0001Ni-CK for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 19:01:04 -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 1tEH6c-0000Rm-3G for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 19:01:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=YheWIltZ+qDzkW0pqWM/DGfxByCS/7BgW9RcoFo/z0c=; b=IubhEGOwvQOppjwp3VN+H4wmuKN38f1GLVxxjNkcKFCMCO7Ov2dU1c5h60zwEZs4CrbHkXSAAQdGZqXLeBS9H9JADm9Divh6TbC5DUKoS/ZhW3kKoBSO274g5O4s7SnDNrNVzjerMg8sRzCdfQ6j6d/Fzl6+V3hyknZNs7q3uXlq5mPjLV3k/krvltg3irBpTE9ZRncEThs/EWs1b+OPIubzBfWMNfdIQ9OOMOBQ5zsGuC0aUkD12rq2P3HtLadx6mZNx57OhpcU4GCpQcLKoYTow+4F0Sw/JzebfFui4ZYpJGfPpQCohskd7TvczUE1igoPwWFRi0zZ529c90ydcQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEH6b-0006gS-U6 for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2024 19:01:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Nov 2024 00:01:01 +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.173223360725300 (code B ref 74430); Fri, 22 Nov 2024 00:01:01 +0000 Original-Received: (at 74430) by debbugs.gnu.org; 22 Nov 2024 00:00:07 +0000 Original-Received: from localhost ([127.0.0.1]:52174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEH5i-0006Zd-LT for submit@debbugs.gnu.org; Thu, 21 Nov 2024 19:00:06 -0500 Original-Received: from sonic302-22.consmr.mail.ne1.yahoo.com ([66.163.186.148]:38140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEH5g-0006Wi-CZ for 74430@debbugs.gnu.org; Thu, 21 Nov 2024 19:00:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1732233598; bh=YheWIltZ+qDzkW0pqWM/DGfxByCS/7BgW9RcoFo/z0c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=bk8VFqziFZ39HPXWgLF5oGvs7No+rws0+2pc1QQ+eUn1doth6FrR998/yO0oeBH78qRNrPe/9StCMwHvJmHeIeeROR3wYT3wom1ayWJSKbtBScSuWhcnxCf6ynhcanwh/dY7yQEkZxk1oB6C3lisHgqzag7N9UeRVh7rp/dHKa34CmpUff5U4tpPRxf7TlHS4FhvVI6BKm9UdybZz9f/qqC79niM3zD2VYbFMawjQizYQfyl6X8IBvbpMkfoPgBBkEdGGXJqzYu/zfndErV0FCPh2kNuTeDVUSEIV/XYqxhCCkXairWtClYCRAe/D1imgsGcx00TrIn8tNJaRVf75g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1732233598; bh=D08KsLbMDwxadrSzc7Luc9ZSo5kHm/ICmcj3vq5B8XN=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=cOUK9QTsD9G2Ug7EqKTVuqObghmntghFp8cC/diaIiWRN2Wf9cjCMyojj47iy67uwnw3z/lFFLOvgr7TybFKakbx7ClEFO4urz6De1WzugosXQxT27q8KQHEnLzFpRVA/dMJqntsKKQb2hW7MSHngltuE4azf12xwtBHeY1rDbLttniZw0hnzGQu5nDJAlD/8v/Ke3xeEJbThHV3ceLPk9RoNUIUkqbL4kSEgy4fRcbIddvH/K6DnvRigTfhvP+kxlGnsDtEhVwgNcWiojbIrj/XQC7C15Zi/DxgrCOnfx6nsiVpp+jipspQTJwH8fEJD5dUD1OhKPJ0GmTHgRrioA== X-YMail-OSG: uABifEoVM1mDexAE4ckWmL0O8Eukm1gcvxQiVTe4X.pn.gUUR2MBCum82MuXFwK OzaeVHQc2kG.zs0rN12n_ls8dOMsuLhbdXSLCU5KKt6ZG0J6KinTnIV_3m08eGAlfzEYJvRU1zr_ 0I3Le.FDIPEyKPJnbfIHlQ_zQlZninUpsEZqJCRptzdYHSKCpdIB7ZePHiKWB7KbCObrlGGWIs.a 7uq3aplrWFIgUk11UDWDfHKN40CcNR10SGu0dHjt2Uz8P1XfObxy4unZHpu0JbD0m4bIbIwYcnN9 rUmz61EQh.rp2wi8sU4V0yHp2e08uVFVPPqNz4RILBRyd7xkunixZznaoFfWNnBCPR_qeF0nnfPH vQrEWlIM0ulFLJGBEP7U.X_zJhAwJxJykNVxMJCDP9UnV3ooiwr9zqm7sDPMNcloB3BiYzAbyW3K mvZQ8kYHhWot23I6h5bbXWp2_u3OFJ0RYfnGouGVeJPLLvbbuuqFZEhjYnaMTB.W8XuINT.ykUyG L4wj2iCGIPpT8QzCQMDTsrFbiQ2a76aA3sB.Lgj47UUfWwC2c3yzAkBO1nFmyr.3NNQq5N9Umcis tIwFNvUreoCUOvCAc_H.VbC2LZwhp5dIwZfCeAWI7RM0cuSRYGV3XUsW4S14ZUdISecjtI4Mx2ku oxSgQCd3gFKxHchcQvdSefx8W_GGGdBdE7GN4givLAurYM7yJFAyNG.0UHWpConemOX3WdBc3m3O 3LYo.D2Zy2dx25MHmwPC1__yk5DKJ5YAMLZAXOm7xN4F1ewjwZDQdQBSna23ZlejR.LmWQzE6JwL 8ORDu480iHAWGPv.BQnDnK.R69lasxYF8uzHxAu0Z7 X-Sonic-MF: X-Sonic-ID: fe293d47-3a65-4875-b72d-58ba150c47d6 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Thu, 21 Nov 2024 23:59:58 +0000 Original-Received: by hermes--production-sg3-5b7954b588-kwzfq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f2a5e5451c74ca49a564bda772f3a346; Thu, 21 Nov 2024 23:59:54 +0000 (UTC) In-Reply-To: <2689fac8-0a2f-ed4e-b46e-afa4f36ab840@gmail.com> (Jim Porter's message of "Thu, 21 Nov 2024 10:37:08 -0800") X-Mailer: WebService/1.1.22941 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:295760 Archived-At: 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.