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#55312: 29.0.50; Cannot set vscroll when mini-window is resized Date: Sun, 08 May 2022 16:40:59 +0300 Message-ID: <83y1zcuopg.fsf@gnu.org> References: <877d6w44wp.fsf.ref@yahoo.com> <877d6w44wp.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32252"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55312@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 08 15:42:11 2022 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 1nnhAn-0008FP-Lv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 May 2022 15:42:09 +0200 Original-Received: from localhost ([::1]:57908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnhAm-0006MG-K9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 May 2022 09:42:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnhAg-0006M8-5M for bug-gnu-emacs@gnu.org; Sun, 08 May 2022 09:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnhAf-0004UG-St for bug-gnu-emacs@gnu.org; Sun, 08 May 2022 09:42:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnhAf-0008NN-Pc for bug-gnu-emacs@gnu.org; Sun, 08 May 2022 09:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 May 2022 13:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55312 X-GNU-PR-Package: emacs Original-Received: via spool by 55312-submit@debbugs.gnu.org id=B55312.165201727732136 (code B ref 55312); Sun, 08 May 2022 13:42:01 +0000 Original-Received: (at 55312) by debbugs.gnu.org; 8 May 2022 13:41:17 +0000 Original-Received: from localhost ([127.0.0.1]:53731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnh9x-0008MG-58 for submit@debbugs.gnu.org; Sun, 08 May 2022 09:41:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnh9s-0008M0-3t for 55312@debbugs.gnu.org; Sun, 08 May 2022 09:41:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnh9m-0004NW-LV; Sun, 08 May 2022 09:41:06 -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=OrzUwlMoPHdBbiZSepL+zRZkdHKRHRDhG9d28X+QPaQ=; b=OE87m9b4KoMO kQMioF1P/4S86ikXkf0440C/4sBQ6kooU4nmNUz+WW45oMOW/c2VTeDUtLX17KkG1Qxt6vEcZbEv0 Bsc2ow3pNw1oQ/GL2nCQ/552WUgW9bQJN0HeV6nFGaEPFAIgVZKvjWv6eh1caJajFKiO5ul2negoF l9I/hwfGvg5aW6o+k/lesrbP4QNOSs8Zm/hEMaMISRgbnHqem4WDWKUcaBlyZnor9lCHLIhGWAQYP JfPNquadhbmeNdFio3CDy9VTE8fl+TrynQPtcAQiO6p7UD9wQDwLvRx7rjZ+sqJQ4790EmkcuBQEC fryk0jh11P0om45iBbARyQ==; Original-Received: from [87.69.77.57] (port=2739 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnh9m-00079c-53; Sun, 08 May 2022 09:41:06 -0400 In-Reply-To: <877d6w44wp.fsf@yahoo.com> (bug-gnu-emacs@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" Xref: news.gmane.io gmane.emacs.bugs:231652 Archived-At: > Date: Sun, 08 May 2022 19:53:10 +0800 > From: Po Lu via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > It seems that this code in redisplay_window always clears out the > vscroll when the mini-window is taller than a single line of text: Not when it's taller, but when it has been resized. > This can easily be reproduced by typing "M-x C-q C-j" and trying to use > `pixel-scroll-precision' with the mouse pointer on top of a window that > is not the `minibuf-scroll-window': the vscroll will not take effect, > since force_start will be set to true, and that resets the vscroll. > > I think this "frozen" behavior is required to ensure that the start of > windows do not aimlessly move when the mini-window is being resized, but > it interferes with features that need to set the vscroll. > > Any ideas? If you want to allow vscroll in these cases, you'd need to either add code which ensures the window-start of "frozen" windows is not moved by means other than the force_start flag, or modify the code where we handle the force_start flag so that it doesn't reset vscroll when pixel-scroll uses it, as opposed to when vscroll is used by "normal" scrolling commands for the purposes of scrolling tall screen lines.