GNU bug report logs - #64139
28.2; Scrolling problems in miniwindow

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Al Petrofsky <al@HIDDEN>; dated Sun, 18 Jun 2023 00:27:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 64139 <at> debbugs.gnu.org:


Received: (at 64139) by debbugs.gnu.org; 21 Jun 2023 15:01:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 21 11:01:30 2023
Received: from localhost ([127.0.0.1]:33938 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qBzKs-0006p7-DK
	for submit <at> debbugs.gnu.org; Wed, 21 Jun 2023 11:01:30 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33488)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qBzKo-0006os-C9
 for 64139 <at> debbugs.gnu.org; Wed, 21 Jun 2023 11:01:28 -0400
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 <eliz@HIDDEN>)
 id 1qBzKh-0000Bd-TN; Wed, 21 Jun 2023 11:01:19 -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=TSVMPuL92ceZHqqbHv2YDk820y41YMubxKQ46SCwBRI=; b=jfXrqZYc59d4
 12em3JkO35Zq8JMByP557kUXtiNc8Sy2atmtejwcShBPzQetMcRu3YSoCQBeTgEUJkMpV2aPwpS8c
 BETyAMof3IbJW7pJDy4gyjF2UeGuk09bT9mJmdOPBxm/CZC6FdXSIM1/+gI2BChnYw+XmGlQoH2pP
 2pnnfFGIj46lqnoO1lhaeGrZq+W7VsUAR+uhGhnXk6wPbKTqsYfI0Lsv4YIKrs50MlDh5nMPWcdW5
 IFmXbGWWhu+oBypxO7D9bdj7vXt5XqZiPWhaRlKCOL2RcCSzzcUVOD6MuVUEcwrx5VZjKPe2ovVqH
 +Y3YWgHXxk34ILvEgmb82g==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qBzKh-0001Lm-1C; Wed, 21 Jun 2023 11:01:19 -0400
Date: Wed, 21 Jun 2023 18:01:27 +0300
Message-Id: <83jzvw506w.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Al Petrofsky <al@HIDDEN>
In-Reply-To: <CAPMQwz7Ek5BTZoiu6iXy+nt==h8arQ7bSJ-eC+2BRa=W54_iFA@HIDDEN>
 (message from Al Petrofsky on Mon, 19 Jun 2023 18:33:38 -0400)
Subject: Re: bug#64139: 28.2; Scrolling problems in miniwindow
References: <CAPMQwz5dY_EjG6u7nnZ3XjGvJ+A3ZVFMoGkxGRK5-+vGTW=9Cw@HIDDEN>
 <83edm9p7qm.fsf@HIDDEN>
 <CAPMQwz4M9D9SzR+66GTCnGz_Rc6r5ogRnRwNvHXfb4yh65K0aQ@HIDDEN>
 <CAPMQwz7Ek5BTZoiu6iXy+nt==h8arQ7bSJ-eC+2BRa=W54_iFA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64139
Cc: 64139 <at> debbugs.gnu.org, juri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Al Petrofsky <al@HIDDEN>
> Date: Mon, 19 Jun 2023 18:33:38 -0400
> Cc: Juri Linkov <juri@HIDDEN>, 64139 <at> debbugs.gnu.org
> 
> Here's a simpler and clearer recipe that should show the problem on
> any tty or X display:
> 
>    emacs-28.2 -Q
>    M-: C-u 9 9 C-q C-j x C-@ M-< C-v
> 
> This creates a 100-line minibuffer with "x" on the last line.  After
> the M-< and C-v, we should be one windowful down from the top, but
> instead we've scrolled nearly to the end and the "x" has shown up on
> the last line.

Thanks.

This is a feature: scrolling (and redisplay in general) in the
mini-window is tailored to try and display the most important part of
the minibuffer text.  The feature is intended to support various
minibuffer-editing packages which display a lot of text in the
mini-window when the user is prompted for a file name or other similar
stuff, of which there are a lot of possible candidates.

If you set the variable redisplay-adhoc-scroll-in-resize-mini-windows
to a nil value, you will get the "normal" scrolling behavior in the
mini-window.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64139; Package emacs. Full text available.

Message received at 64139 <at> debbugs.gnu.org:


Received: (at 64139) by debbugs.gnu.org; 19 Jun 2023 22:33:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 19 18:33:58 2023
Received: from localhost ([127.0.0.1]:57507 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qBNRe-0006PM-FS
	for submit <at> debbugs.gnu.org; Mon, 19 Jun 2023 18:33:58 -0400
Received: from mail-pl1-f173.google.com ([209.85.214.173]:38366)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <al.petrofsky@HIDDEN>) id 1qBNRb-0006P9-TS
 for 64139 <at> debbugs.gnu.org; Mon, 19 Jun 2023 18:33:56 -0400
Received: by mail-pl1-f173.google.com with SMTP id
 d9443c01a7336-1b5466bc5f8so5603085ad.1
 for <64139 <at> debbugs.gnu.org>; Mon, 19 Jun 2023 15:33:55 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1687214030; x=1689806030;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=3OQg22RraSdgeMsrddWGWk0ucDi3EQzFmHpCl1/M8lE=;
 b=WWXcbX9I6icfFcBapHqG8ZIDX5kkeUyYj0BZFEyAVUfeaMnMSm5bWG4GzReJQC2h37
 6HB84/0/pIHWLJ8plb/08mMM+jVZQ36szC01LqVXvGVd/csgiIkJaEl3cvauorE99rmU
 mqc12XYZ6RgIUEsUYa/iaWbO4DsgxR0xKWvaWTaoj4WsjGvtXDRBt9oadRs45EHqdtED
 CMDS6o3rJckKeQiHEVg4bToqSyPQmZuztu7sqGQMp6e9ZSv65euo71Y92ZnezPrkf+b+
 k59X3hySn1eZm/9Ke6PxGlxmc+MjF4pK6uZ7OOZqJrmQvu0/VI1Pum89OeOPFgAeey+k
 Hmig==
X-Gm-Message-State: AC+VfDzBrKuZoU1N1g4S6MFiwQAnRiiwkId/hEzYr8xSNZRzLz6pUm+y
 NhKpbUWMRMI5nQu68Bx0I8DMRCI5nYJB6nkO7ZQ=
X-Google-Smtp-Source: ACHHUZ4Q6VGWtm8m0x4y7bPlpxQQbuYiNQKHIQAA5BTFgPjL7TCeQrUIb7JsAxthN+uUvpRX2H9BqSzpvO7erHg1SyQ=
X-Received: by 2002:a17:902:f691:b0:1b3:d4bb:3515 with SMTP id
 l17-20020a170902f69100b001b3d4bb3515mr13699698plg.0.1687214030056; Mon, 19
 Jun 2023 15:33:50 -0700 (PDT)
MIME-Version: 1.0
References: <CAPMQwz5dY_EjG6u7nnZ3XjGvJ+A3ZVFMoGkxGRK5-+vGTW=9Cw@HIDDEN>
 <83edm9p7qm.fsf@HIDDEN>
 <CAPMQwz4M9D9SzR+66GTCnGz_Rc6r5ogRnRwNvHXfb4yh65K0aQ@HIDDEN>
In-Reply-To: <CAPMQwz4M9D9SzR+66GTCnGz_Rc6r5ogRnRwNvHXfb4yh65K0aQ@HIDDEN>
From: Al Petrofsky <al@HIDDEN>
Date: Mon, 19 Jun 2023 18:33:38 -0400
Message-ID: <CAPMQwz7Ek5BTZoiu6iXy+nt==h8arQ7bSJ-eC+2BRa=W54_iFA@HIDDEN>
Subject: Re: bug#64139: 28.2; Scrolling problems in miniwindow
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000ebf16205fe832097"
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 64139
Cc: 64139 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--000000000000ebf16205fe832097
Content-Type: text/plain; charset="UTF-8"

Here's a simpler and clearer recipe that should show the problem on
any tty or X display:

   emacs-28.2 -Q
   M-: C-u 9 9 C-q C-j x C-@ M-< C-v

This creates a 100-line minibuffer with "x" on the last line.  After
the M-< and C-v, we should be one windowful down from the top, but
instead we've scrolled nearly to the end and the "x" has shown up on
the last line.

--000000000000ebf16205fe832097
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Here&#39;s a simpler and clearer recipe that should show t=
he problem on<br>any tty or X display:<br><br>=C2=A0 =C2=A0emacs-28.2 -Q<br=
>=C2=A0 =C2=A0M-: C-u 9 9 C-q C-j x C-@ M-&lt; C-v<br><br>This creates a 10=
0-line minibuffer with &quot;x&quot; on the last line.=C2=A0 After<br>the M=
-&lt; and C-v, we should be one windowful down from the top, but<br>instead=
 we&#39;ve scrolled nearly to the end and the &quot;x&quot; has shown up on=
<br>the last line.<br><br></div>

--000000000000ebf16205fe832097--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64139; Package emacs. Full text available.

Message received at 64139 <at> debbugs.gnu.org:


Received: (at 64139) by debbugs.gnu.org; 19 Jun 2023 17:22:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 19 13:22:02 2023
Received: from localhost ([127.0.0.1]:57195 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qBIZm-00064o-Fc
	for submit <at> debbugs.gnu.org; Mon, 19 Jun 2023 13:22:02 -0400
Received: from relay1-d.mail.gandi.net ([217.70.183.193]:36529)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1qBIZl-00064I-NV
 for 64139 <at> debbugs.gnu.org; Mon, 19 Jun 2023 13:22:02 -0400
X-GND-Sasl: juri@HIDDEN
X-GND-Sasl: juri@HIDDEN
X-GND-Sasl: juri@HIDDEN
Received: by mail.gandi.net (Postfix) with ESMTPSA id 4CA2C240004;
 Mon, 19 Jun 2023 17:21:54 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#64139: 28.2; Scrolling problems in miniwindow
In-Reply-To: <83edm9p7qm.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 18 Jun
 2023 10:09:05 +0300")
Organization: LINKOV.NET
References: <CAPMQwz5dY_EjG6u7nnZ3XjGvJ+A3ZVFMoGkxGRK5-+vGTW=9Cw@HIDDEN>
 <83edm9p7qm.fsf@HIDDEN>
Date: Mon, 19 Jun 2023 20:20:30 +0300
Message-ID: <86r0q7sjea.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 64139
Cc: Al Petrofsky <al@HIDDEN>, 64139 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> M-v in the minibuffer is bound to switch-to-completions, so I'm unsure
> what you expected here.
>
> Adding Juri who worked on the scrolling commands in the minibuffer.

I worked only on the <down> key bound to next-line-or-history-element.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64139; Package emacs. Full text available.

Message received at 64139 <at> debbugs.gnu.org:


Received: (at 64139) by debbugs.gnu.org; 18 Jun 2023 09:08:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 18 05:08:16 2023
Received: from localhost ([127.0.0.1]:53203 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qAoON-0005gQ-GM
	for submit <at> debbugs.gnu.org; Sun, 18 Jun 2023 05:08:16 -0400
Received: from mail-pj1-f48.google.com ([209.85.216.48]:40321)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <al.petrofsky@HIDDEN>) id 1qAoOK-0005g6-9h
 for 64139 <at> debbugs.gnu.org; Sun, 18 Jun 2023 05:08:13 -0400
Received: by mail-pj1-f48.google.com with SMTP id
 98e67ed59e1d1-25e847bb482so363045a91.1
 for <64139 <at> debbugs.gnu.org>; Sun, 18 Jun 2023 02:08:12 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1687079286; x=1689671286;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=eSziLDNJAugqOX4D+o/V4/nvWYw/MxWnx9Z8hMExO48=;
 b=YtPhw24UY8KgYe/A6V8i5olT0Hgx8+QMqIneLbRUVK4D8vCb3S8B2WpfLdNDRawwtW
 CsA/oSh9/jVtXR9MpbU3s1dZsWW+Eu9weh5lckEn2Zpt8lKJyR2qDzCi/eYJIcs4ezeJ
 /MVkffkHmaOowx4Af1apmUP52Zv/TOP/4xIRWw1Wrg+mKtmO7ywwWYl4WzeASENoc06L
 GYPhy9BXZTYhgIIos5lEEnDYu+e8rdvABKe2acPetACefiGM+cVpWDC27hZVeHwgPcLb
 pQSdgeOeswG6dl8RwJ7brzvf+sJKHSuWzLOH9lSXNH2/VeBn6a8INoXBfIVr3vaNS+3W
 Bm7A==
X-Gm-Message-State: AC+VfDzyiWniZdmSvj68OeiibzFHEFUSfc+rueLyPs1dfKjJ/h7eyq2x
 uk2h/Ukj4Z2HTzpG1Zrpn3NGPRSguHkxkpILikg=
X-Google-Smtp-Source: ACHHUZ4XYRMTk3tl0gZl958imBYXcsdg+2p6VcJ45GPZ45LCvm8x+IXxowq7CdZffrWzEGfIl5jn5bWa+FzKThWTUWw=
X-Received: by 2002:a17:903:230c:b0:1b2:1f12:acf with SMTP id
 d12-20020a170903230c00b001b21f120acfmr8535470plh.6.1687079286369; Sun, 18 Jun
 2023 02:08:06 -0700 (PDT)
MIME-Version: 1.0
References: <CAPMQwz5dY_EjG6u7nnZ3XjGvJ+A3ZVFMoGkxGRK5-+vGTW=9Cw@HIDDEN>
 <83edm9p7qm.fsf@HIDDEN>
In-Reply-To: <83edm9p7qm.fsf@HIDDEN>
From: Al Petrofsky <al@HIDDEN>
Date: Sun, 18 Jun 2023 05:07:52 -0400
Message-ID: <CAPMQwz4M9D9SzR+66GTCnGz_Rc6r5ogRnRwNvHXfb4yh65K0aQ@HIDDEN>
Subject: Re: bug#64139: 28.2; Scrolling problems in miniwindow
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000009270f205fe63c19a"
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 64139
Cc: 64139 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--0000000000009270f205fe63c19a
Content-Type: text/plain; charset="UTF-8"

>
> > > I'm seeing some weird scrolling bugs in the miniwindow when the
> > > minibuffer contains more lines than the window.  I think these
> > > problems exist on ttys and graphical terminals of all sizes, but for
> > > ease of reproducibility use an 80x24 tty.
> > >
> > >    emacs-28.2 -Q -nw
> > >    M-: C-@ C-x ( C-x C-k TAB C-q C-j C-u 9 9 C-x e C-x C-x C-v
> > >
> > > The C-v, instead of scrolling a few lines, scrolls all the way down to
> > > line 97.
> >
> > I tried to use this recipe, but it produces weird results, and I don't
> > see what you describe.  Would you like to show an easier to understand
> > recipe, or describe what should be in the min-window as result of the
> > recipe?  And what exactly are your expectations from C-v/M-v in this
> > case?
>
> After the C-x e, the minibuffer contains 100 lines, each with a number
> "0" to "99".  After the C-x C-x, the miniwindow contents are, as
> expected, this:
>
>    Eval: 0
>    1
>    2
>    3
>    4
>
> After the C-v, I expect to see this:
>
>    3
>    4
>    5
>    6
>    7
>
> Instead I see this:
>
>    96
>    97 [cursor is at start of this line]
>    98
>    99
>    [empty line]
>
> > I tried this:
> >
> >   M-x C-u 99 C-q C-j M-<
> >
> > after that, C-v scrolls the mini-window as expected, so that I get to
> > the end in 13 C-v keypresses.  Which looks reasonable to me.
>
> I don't think 13 is right.  The miniwindow is only 5 lines (if tty is
> 80x24), so C-v should only be scrolling 3 lines at a time.
>
> Try this:
>
>    M-x C-@ C-u 9 9 C-q C-j C-x C-x C-v C-v C-v C-v
>
> I get "scroll-up-command: End of buffer" on only the fourth C-v.
>
> > > Also, if you now repeatedly M-v, the buffer will just scroll up and
> > > down three lines.  When I use a large X frame, repeated M-v will
> > > scroll up to the top of the buffer, but then glitch and cycle around
> > > back to the bottom.
>
> (By "scroll up" there I meant the window contents scroll down,
> i.e. the thing the PC keyboard key labeled "Page Up" does, which Emacs
> calls scroll-down.)
>
> > M-v in the minibuffer is bound to switch-to-completions, so I'm unsure
> > what you expected here.
>
> M-: doesn't do completion (although you can complete symbols within
> the expression with C-M-i), and leaves M-v bound to
> scroll-down-command.

--0000000000009270f205fe63c19a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quot=
e" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)=
;padding-left:1ex">&gt; &gt; I&#39;m seeing some weird scrolling bugs in th=
e miniwindow when the<br>&gt; &gt; minibuffer contains more lines than the =
window.=C2=A0 I think these<br>&gt; &gt; problems exist on ttys and graphic=
al terminals of all sizes, but for<br>&gt; &gt; ease of reproducibility use=
 an 80x24 tty.<br>&gt; &gt;<br>&gt; &gt; =C2=A0 =C2=A0emacs-28.2 -Q -nw<br>=
&gt; &gt; =C2=A0 =C2=A0M-: C-@ C-x ( C-x C-k TAB C-q C-j C-u 9 9 C-x e C-x =
C-x C-v<br>&gt; &gt;<br>&gt; &gt; The C-v, instead of scrolling a few lines=
, scrolls all the way down to<br>&gt; &gt; line 97.<br>&gt; <br>&gt; I trie=
d to use this recipe, but it produces weird results, and I don&#39;t<br>&gt=
; see what you describe.=C2=A0 Would you like to show an easier to understa=
nd<br>&gt; recipe, or describe what should be in the min-window as result o=
f the<br>&gt; recipe?=C2=A0 And what exactly are your expectations from C-v=
/M-v in this<br>&gt; case?<br><br>After the C-x e, the minibuffer contains =
100 lines, each with a number<br>&quot;0&quot; to &quot;99&quot;.=C2=A0 Aft=
er the C-x C-x, the miniwindow contents are, as<br>expected, this:<br><br>=
=C2=A0 =C2=A0Eval: 0<br>=C2=A0 =C2=A01<br>=C2=A0 =C2=A02<br>=C2=A0 =C2=A03<=
br>=C2=A0 =C2=A04<br><br>After the C-v, I expect to see this:<br><br>=C2=A0=
 =C2=A03<br>=C2=A0 =C2=A04<br>=C2=A0 =C2=A05<br>=C2=A0 =C2=A06<br>=C2=A0 =
=C2=A07<br><br>Instead I see this:<br><br>=C2=A0 =C2=A096<br>=C2=A0 =C2=A09=
7	[cursor is at start of this line]<br>=C2=A0 =C2=A098<br>=C2=A0 =C2=A099<b=
r>=C2=A0 =C2=A0[empty line]<br><br>&gt; I tried this:<br>&gt; <br>&gt; =C2=
=A0 M-x C-u 99 C-q C-j M-&lt;<br>&gt; <br>&gt; after that, C-v scrolls the =
mini-window as expected, so that I get to<br>&gt; the end in 13 C-v keypres=
ses.=C2=A0 Which looks reasonable to me.<br><br>I don&#39;t think 13 is rig=
ht.=C2=A0 The miniwindow is only 5 lines (if tty is<br>80x24), so C-v shoul=
d only be scrolling 3 lines at a time.<br><br>Try this:<br><br>=C2=A0 =C2=
=A0M-x C-@ C-u 9 9 C-q C-j C-x C-x C-v C-v C-v C-v<br><br>I get &quot;scrol=
l-up-command: End of buffer&quot; on only the fourth C-v.<br><br>&gt; &gt; =
Also, if you now repeatedly M-v, the buffer will just scroll up and<br>&gt;=
 &gt; down three lines.=C2=A0 When I use a large X frame, repeated M-v will=
<br>&gt; &gt; scroll up to the top of the buffer, but then glitch and cycle=
 around<br>&gt; &gt; back to the bottom.<br><br>(By &quot;scroll up&quot; t=
here I meant the window contents scroll down,<br>i.e. the thing the PC keyb=
oard key labeled &quot;Page Up&quot; does, which Emacs<br>calls scroll-down=
.)<br><br>&gt; M-v in the minibuffer is bound to switch-to-completions, so =
I&#39;m unsure<br>&gt; what you expected here.<br><br>M-: doesn&#39;t do co=
mpletion (although you can complete symbols within<br>the expression with C=
-M-i), and leaves M-v bound to<br>scroll-down-command.=C2=A0</blockquote></=
div></div>

--0000000000009270f205fe63c19a--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64139; Package emacs. Full text available.

Message received at 64139 <at> debbugs.gnu.org:


Received: (at 64139) by debbugs.gnu.org; 18 Jun 2023 07:09:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 18 03:09:15 2023
Received: from localhost ([127.0.0.1]:53014 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qAmXD-0002Wh-3D
	for submit <at> debbugs.gnu.org; Sun, 18 Jun 2023 03:09:15 -0400
Received: from eggs.gnu.org ([209.51.188.92]:39730)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qAmX9-0002WS-U4
 for 64139 <at> debbugs.gnu.org; Sun, 18 Jun 2023 03:09:13 -0400
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 <eliz@HIDDEN>)
 id 1qAmX3-0002wY-FD; Sun, 18 Jun 2023 03:09:05 -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=lwwKP29PF3yN3EEu4PkBSbb0DaRxfKAPkhiCNQ5iPmY=; b=Y25vQ7usvb/I
 OEuZqafuRF8MZhxpxC1OFn1em1Po7TNU2UPqiwcCpdldjEzcEsNu7mt2B7yDWOaXXspWyRBXr2isi
 LrOfnf7KNGgsLtgBLgyYvNTzBYcQQ7JPc66W5auyj7xVA/1F4dbOSKgLuGnHWPslm5bRg+mMvk2X7
 8j9DBvtsQ9JNBNiWCei78tw0xA0K19FBLVxZ36JZSCQNnfI9SgDHBpqOzqqyhV4O3FXyFAhnzQcGK
 jL+d4zFLXObFp8MN2+f9+oqfyhaDWdrFnWD/yMKQmM8W4yV3/IBMIRoD3uwTFLMcY+dYWOAvM93y3
 Li+M0Vpz6lChDXPAjYMPWA==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qAmX2-0000uf-JY; Sun, 18 Jun 2023 03:09:05 -0400
Date: Sun, 18 Jun 2023 10:09:05 +0300
Message-Id: <83edm9p7qm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Al Petrofsky <al@HIDDEN>, Juri Linkov <juri@HIDDEN>
In-Reply-To: <CAPMQwz5dY_EjG6u7nnZ3XjGvJ+A3ZVFMoGkxGRK5-+vGTW=9Cw@HIDDEN>
 (message from Al Petrofsky on Sat, 17 Jun 2023 20:26:19 -0400)
Subject: Re: bug#64139: 28.2; Scrolling problems in miniwindow
References: <CAPMQwz5dY_EjG6u7nnZ3XjGvJ+A3ZVFMoGkxGRK5-+vGTW=9Cw@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64139
Cc: 64139 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Al Petrofsky <al@HIDDEN>
> Date: Sat, 17 Jun 2023 20:26:19 -0400
> 
> I'm seeing some weird scrolling bugs in the miniwindow when the
> minibuffer contains more lines than the window.  I think these
> problems exist on ttys and graphical terminals of all sizes, but for
> ease of reproducibility use an 80x24 tty.
> 
>    emacs-28.2 -Q -nw
>    M-: C-@ C-x ( C-x C-k TAB C-q C-j C-u 9 9 C-x e C-x C-x C-v
> 
> The C-v, instead of scrolling a few lines, scrolls all the way down to
> line 97.

I tried to use this recipe, but it produces weird results, and I don't
see what you describe.  Would you like to show an easier to understand
recipe, or describe what should be in the min-window as result of the
recipe?  And what exactly are your expectations from C-v/M-v in this
case?

I tried this:

  M-x C-u 99 C-q C-j M-<

after that, C-v scrolls the mini-window as expected, so that I get to
the end in 13 C-v keypresses.  Which looks reasonable to me.

> Also, if you now repeatedly M-v, the buffer will just scroll up and
> down three lines.  When I use a large X frame, repeated M-v will
> scroll up to the top of the buffer, but then glitch and cycle around
> back to the bottom.

M-v in the minibuffer is bound to switch-to-completions, so I'm unsure
what you expected here.

Adding Juri who worked on the scrolling commands in the minibuffer.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64139; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Jun 2023 00:26:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 17 20:26:41 2023
Received: from localhost ([127.0.0.1]:52810 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qAgFd-0008Nk-Fc
	for submit <at> debbugs.gnu.org; Sat, 17 Jun 2023 20:26:41 -0400
Received: from lists.gnu.org ([209.51.188.17]:49568)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <al.petrofsky@HIDDEN>) id 1qAgFb-0008Nb-42
 for submit <at> debbugs.gnu.org; Sat, 17 Jun 2023 20:26:39 -0400
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 <al.petrofsky@HIDDEN>)
 id 1qAgFa-0004Kt-U0
 for bug-gnu-emacs@HIDDEN; Sat, 17 Jun 2023 20:26:38 -0400
Received: from mail-pj1-f43.google.com ([209.85.216.43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <al.petrofsky@HIDDEN>)
 id 1qAgFZ-0005hC-AQ
 for bug-gnu-emacs@HIDDEN; Sat, 17 Jun 2023 20:26:38 -0400
Received: by mail-pj1-f43.google.com with SMTP id
 98e67ed59e1d1-25e847bb482so292755a91.1
 for <bug-gnu-emacs@HIDDEN>; Sat, 17 Jun 2023 17:26:35 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1687047993; x=1689639993;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=RS3OD5q0IZiPzxvy/7+cZMkk9WzDEhm9Tzm4QHMf/cE=;
 b=br4IM7eiSYZF9xZTcrWlGKdyt5sWXcKYDgXF1gibUOG5YEWlc8EMnOJ/rzUTGjvHFG
 VxYzJ4eCddLusQS80G4t7B6FoTKff2njD82+YR11HASxiZyZ/IeMhXSj6GfvPzjCe6uE
 oyjmkcDd86bJg+A4ECrXBAt935XiV8asIGzmGW7tfrst6BhirDiuTSrdO/E3H0lCISs4
 0OARTmWltsWF0PHnpiru2clJLDTjBOuaO3ckXNp46I2RovvdCtYnjTmlhnYIUMWqPNkJ
 LH0kXYONYNEvzJAHEb2JlTtBb1Nj8EKfMtgDjnO3GwEVAfyVjcFUsfVSWarfFq95YH8g
 3+mQ==
X-Gm-Message-State: AC+VfDyPumH74sRyrGGz+EBtic+AmH5qwMxjehmNwLtSwuEyHkHnI5K2
 q5Ft0lBWVoQg6YNJgh7iwpQUqwdJuft8lg4eifLSoMbnnP8=
X-Google-Smtp-Source: ACHHUZ4oX2022720XPM4w0SZ23ozYNbWoEKSEq3uXyb+JUk0OMELJuhm9XHIimb4YpQSFJPmYMGtYbDEvbwoLCVSEmY=
X-Received: by 2002:a17:903:230c:b0:1b2:1f12:acf with SMTP id
 d12-20020a170903230c00b001b21f120acfmr7609449plh.6.1687047993014; Sat, 17 Jun
 2023 17:26:33 -0700 (PDT)
MIME-Version: 1.0
From: Al Petrofsky <al@HIDDEN>
Date: Sat, 17 Jun 2023 20:26:19 -0400
Message-ID: <CAPMQwz5dY_EjG6u7nnZ3XjGvJ+A3ZVFMoGkxGRK5-+vGTW=9Cw@HIDDEN>
Subject: 28.2; Scrolling problems in miniwindow
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="00000000000057be0305fe5c7805"
Received-SPF: pass client-ip=209.85.216.43;
 envelope-from=al.petrofsky@HIDDEN; helo=mail-pj1-f43.google.com
X-Spam_score_int: -13
X-Spam_score: -1.4
X-Spam_bar: -
X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9,
 FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001,
 HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

--00000000000057be0305fe5c7805
Content-Type: text/plain; charset="UTF-8"

I'm seeing some weird scrolling bugs in the miniwindow when the
minibuffer contains more lines than the window.  I think these
problems exist on ttys and graphical terminals of all sizes, but for
ease of reproducibility use an 80x24 tty.

   emacs-28.2 -Q -nw
   M-: C-@ C-x ( C-x C-k TAB C-q C-j C-u 9 9 C-x e C-x C-x C-v

The C-v, instead of scrolling a few lines, scrolls all the way down to
line 97.

Also, if you now repeatedly M-v, the buffer will just scroll up and
down three lines.  When I use a large X frame, repeated M-v will
scroll up to the top of the buffer, but then glitch and cycle around
back to the bottom.

--00000000000057be0305fe5c7805
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;m seeing some weird scrolling bugs in the miniwindow=
 when the<br>minibuffer contains more lines than the window.=C2=A0 I think =
these<br>problems exist on ttys and graphical terminals of all sizes, but f=
or<br>ease of reproducibility use an 80x24 tty.<br><br>=C2=A0 =C2=A0emacs-2=
8.2 -Q -nw<br>=C2=A0 =C2=A0M-: C-@ C-x ( C-x C-k TAB C-q C-j C-u 9 9 C-x e =
C-x C-x C-v<br><br>The C-v, instead of scrolling a few lines, scrolls all t=
he way down to<br>line 97.<br><br>Also, if you now repeatedly M-v, the buff=
er will just scroll up and<br>down three lines.=C2=A0 When I use a large X =
frame, repeated M-v will<br>scroll up to the top of the buffer, but then gl=
itch and cycle around<br>back to the bottom.<br></div>

--00000000000057be0305fe5c7805--




Acknowledgement sent to Al Petrofsky <al@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#64139; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 21 Jun 2023 15:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.