From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: nvp Newsgroups: gmane.emacs.bugs Subject: bug#38502: 27.0.50; minibuffer-scroll-other-window with multiple frames Date: Thu, 5 Dec 2019 20:42:00 -0500 Message-ID: References: <874kyezjbd.fsf@gmail.com> <875zius4lu.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000094baef0598ff27fa" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="91236"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38502@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 06 02:43:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1id2eF-000Nc4-Pt for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2019 02:43:11 +0100 Original-Received: from localhost ([::1]:34588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1id2eE-0004Ol-06 for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Dec 2019 20:43:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48615) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1id2e7-0004MA-Sm for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2019 20:43:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1id2e6-0003d0-C7 for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2019 20:43:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1id2e6-0003bn-4J for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2019 20:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1id2e5-0008Tb-V1 for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2019 20:43:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: nvp Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2019 01:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38502 X-GNU-PR-Package: emacs Original-Received: via spool by 38502-submit@debbugs.gnu.org id=B38502.157559654032532 (code B ref 38502); Fri, 06 Dec 2019 01:43:01 +0000 Original-Received: (at 38502) by debbugs.gnu.org; 6 Dec 2019 01:42:20 +0000 Original-Received: from localhost ([127.0.0.1]:45468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1id2dP-0008Se-Lr for submit@debbugs.gnu.org; Thu, 05 Dec 2019 20:42:19 -0500 Original-Received: from mail-yb1-f174.google.com ([209.85.219.174]:45431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1id2dN-0008SQ-Ad for 38502@debbugs.gnu.org; Thu, 05 Dec 2019 20:42:17 -0500 Original-Received: by mail-yb1-f174.google.com with SMTP id i3so2337671ybe.12 for <38502@debbugs.gnu.org>; Thu, 05 Dec 2019 17:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KwwxI9RC9+YlwDhQI8h39G6BmEwXyGGXlv/YxgSzyhg=; b=UzGnD9AzVsACyQLgsMvM5LU7xQ3EV5lvW+Obps1eV999gWFTlbm0p6L+U+Wpn1oiy/ sMZyWn8EGoMbM1voSWJWLO3Ywi6HKer955Crdtl3aztYN2psy7h92ZyKJwdZxMVABkUS UWzRDOzOr0pOZN2Y0u70XGBU/mfUq6wvh47G0lo2Ubj7mXdVcyqp07wRhUJBgH0ohe/r pi5EWGccZdkZe5pQlHsyka4+UzDETXj5kOztPAbJGm8VRbrqU5P+eTKoC5hRKbpZM6tL 8horEiYhCN67GSZosIQb0pOaPPiHbhmcWzJ97mXQs7iCbT64eSeVo2hxqownqzlRPL4U YcYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KwwxI9RC9+YlwDhQI8h39G6BmEwXyGGXlv/YxgSzyhg=; b=A8JObLjet2UpRzWN2m3Ufl42zcQqeCpT9icf5b90u9X8q925zqhcuK4Vqy+H1d13ni 8bI+i7iefHHPReFmFyfWBlEW/3cLwcOH9FlB/u4grQZBQqYJbufAD8hCLxjf+f9eiJ6z SU96DpcAZSa2qwvfqEPBCgJujT229M+DUbe8k83myf3Bb6a2tPSb1hZV0wx2sGtCMRiD 3umcqpr+GUTkpNsh+vrhf4VPRcbe3FMlzDq6jIzJPazOoz9kNFBvJW7SsUKCivmNggRV 5W1rxYHyNborG9XcGMQRw+MOLdNynXz6EiBUmGXoT3l/T6QtEJjjCq6ejsx70LTfhzE3 oivg== X-Gm-Message-State: APjAAAVmoEPsAlEE/UbcU/S4rWu8UGFTmVpLYeeJqiQsQ1bOTm9+j7ZM oFIJSfwxc/AHoduWedUPss9FNreMHce4WgF+fdo= X-Google-Smtp-Source: APXvYqwN63Wqbd8+1p4xOEY6pYlmULt+i6NCG4pKoUCSoi8UF+5NQLzPx8dxoVUWl8f2uFEcoBqEmoDR40THWvOsR98= X-Received: by 2002:a25:ac65:: with SMTP id r37mr3076508ybd.250.1575596531691; Thu, 05 Dec 2019 17:42:11 -0800 (PST) In-Reply-To: <875zius4lu.fsf@mail.linkov.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172943 Archived-At: --00000000000094baef0598ff27fa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Is S-TAB referring to ? That is unbound (default) in this context for me. I'm not sure where/if the behaviour was documented. I think it has behaved like that for as long as I've used emacs, so it was quite noticeable that something was different without knowing exactly what at first. I just tried out v24.5 and C-M-v / C-M-S-v do scroll the completions buffer with any number of frames up. The recent change that sticks out to me is from 898cdc67f1 On Thu, Dec 5, 2019 at 7:19 PM Juri Linkov wrote: > > I think this is new within the last week or so. > > When a completion frame pops up while using the minibuffer, > > normally the minibuffer-scroll-other-window(-down) functions > > scroll the completion window. However, now when emacs is split > > into two horizontal frames, these functions ignore the > > completion buffer and scroll the others. > > > > To reproduce from emacs -Q: > > > > C-x 3 > > M-: (mak > > TAB for completions > > C-M-v > > TAB and S-TAB should scroll the the completion buffer. But what about > C-M-v? > Is it documented somewhere what buffer it's intended to scroll? > I can find only this text in (info "(emacs) Minibuffer Edit"): > > The =E2=80=98C-M-v=E2=80=99 command in the minibuffer scrolls the he= lp text from > commands that display help text of any sort in another window. You can > also scroll the help text with =E2=80=98M-=E2=80=99 and =E2=80= =98M-=E2=80=99 (or, > equivalently, =E2=80=98M-=E2=80=99 and =E2=80=98M-=E2=80= =99). This is especially useful > with long lists of possible completions. > > Does this mean the help text is the same as the completion buffer? > > If yes, then this patch should fix it: > > diff --git a/lisp/simple.el b/lisp/simple.el > index 47ce0364d1..7d91678ff7 100644 > --- a/lisp/simple.el > +++ b/lisp/simple.el > @@ -1517,6 +1517,7 @@ read-expression-map > ;; Might as well bind TAB to completion, since inserting a TAB char = is > ;; much too rarely useful. > (define-key m "\t" 'completion-at-point) > + (define-key m [remap minibuffer-scroll-other-window] > 'scroll-other-window) > (set-keymap-parent m minibuffer-local-map) > m)) > > > --00000000000094baef0598ff27fa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Is S-TAB referring to <backtab>?=C2=A0 That is unbou= nd (default) in this context for me.=C2=A0=C2=A0

I'm= not sure where/if the behaviour was documented.=C2=A0 I think it has behav= ed like that for=C2=A0
as long as I've used emacs, so it was quite = noticeable that something was
different without knowing exactly w= hat at first.

I just tried out v24.5 and C-M-v / C= -M-S-v do scroll the completions buffer
with any number of frames= up.

The recent change that sticks out to me is fr= om 898cdc67f1

On Thu, Dec 5, 2019 at 7:19 PM Juri Linkov <juri@linkov.net> wrote:
> I think this is new wit= hin the last week or so.
> When a completion frame pops up while using the minibuffer,
> normally the minibuffer-scroll-other-window(-down) functions
> scroll the completion window.=C2=A0 However, now when emacs is split > into two horizontal frames, these functions ignore the
> completion buffer and scroll the others.
>
> To reproduce from emacs -Q:
>
>=C2=A0 =C2=A0 =C2=A0C-x 3
>=C2=A0 =C2=A0 =C2=A0M-: (mak
>=C2=A0 =C2=A0 =C2=A0TAB for completions
>=C2=A0 =C2=A0 =C2=A0C-M-v

TAB and S-TAB should scroll the the completion buffer.=C2=A0 But what about= C-M-v?
Is it documented somewhere what buffer it's intended to scroll?
I can find only this text in (info "(emacs) Minibuffer Edit"):
=C2=A0 =C2=A0 =C2=A0The =E2=80=98C-M-v=E2=80=99 command in the minibuffer s= crolls the help text from
=C2=A0 commands that display help text of any sort in another window.=C2=A0= You can
=C2=A0 also scroll the help text with =E2=80=98M-<PageUp>=E2=80=99 an= d =E2=80=98M-<PageDown>=E2=80=99 (or,
=C2=A0 equivalently, =E2=80=98M-<prior>=E2=80=99 and =E2=80=98M-<n= ext>=E2=80=99).=C2=A0 This is especially useful
=C2=A0 with long lists of possible completions.

Does this mean the help text is the same as the completion buffer?

If yes, then this patch should fix it:

diff --git a/lisp/simple.el b/lisp/simple.el
index 47ce0364d1..7d91678ff7 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1517,6 +1517,7 @@ read-expression-map
=C2=A0 =C2=A0 =C2=A0;; Might as well bind TAB to completion, since insertin= g a TAB char is
=C2=A0 =C2=A0 =C2=A0;; much too rarely useful.
=C2=A0 =C2=A0 =C2=A0(define-key m "\t" 'completion-at-point)<= br> +=C2=A0 =C2=A0 (define-key m [remap minibuffer-scroll-other-window] 'sc= roll-other-window)
=C2=A0 =C2=A0 =C2=A0(set-keymap-parent m minibuffer-local-map)
=C2=A0 =C2=A0 =C2=A0m))


--00000000000094baef0598ff27fa--