From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Juri Linkov <juri@linkov.net>
Newsgroups: gmane.emacs.bugs
Subject: bug#51210: Customizable other-window-for-scrolling
Date: Tue, 11 Jan 2022 19:29:37 +0200
Organization: LINKOV.NET
Message-ID: <86sftunptq.fsf@mail.linkov.net>
References: <878ryvh6bz.fsf@mail.linkov.net>
 <d1968d79-1954-29ed-9d04-9dae38954d9b@gmx.at>
 <861r1v1foe.fsf@mail.linkov.net>
 <96d50c26-ea56-5ff6-3cc3-25652d744ca4@gmx.at>
 <86o84revzi.fsf@mail.linkov.net>
 <f43796a2-6cbb-ea66-6ecd-8979ba0a6f7e@gmx.at>
 <86y23vo0zx.fsf@mail.linkov.net>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="29041"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
Cc: 51210@debbugs.gnu.org
To: martin rudalics <rudalics@gmx.at>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 11 19:03:32 2022
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1n7LUa-0007N3-6k
	for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 19:03:32 +0100
Original-Received: from localhost ([::1]:52230 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1n7LUZ-0001yQ-8u
	for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 13:03:31 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:40724)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1n7Kz8-0005ry-7T
 for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 12:31:04 -0500
Original-Received: from debbugs.gnu.org ([209.51.188.43]:34305)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1n7Kz7-00022n-Tp
 for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 12:31:01 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1n7Kz7-0007Em-S3
 for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 12:31:01 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Juri Linkov <juri@linkov.net>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Tue, 11 Jan 2022 17:31:01 +0000
Resent-Message-ID: <handler.51210.B51210.164192222127738@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 51210
X-GNU-PR-Package: emacs
Original-Received: via spool by 51210-submit@debbugs.gnu.org id=B51210.164192222127738
 (code B ref 51210); Tue, 11 Jan 2022 17:31:01 +0000
Original-Received: (at 51210) by debbugs.gnu.org; 11 Jan 2022 17:30:21 +0000
Original-Received: from localhost ([127.0.0.1]:55439 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1n7KyT-0007DJ-4H
 for submit@debbugs.gnu.org; Tue, 11 Jan 2022 12:30:21 -0500
Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:44133)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@linkov.net>)
 id 1n7KyO-0007Br-4W; Tue, 11 Jan 2022 12:30:19 -0500
Original-Received: (Authenticated sender: juri@linkov.net)
 by relay12.mail.gandi.net (Postfix) with ESMTPSA id DADD6200004;
 Tue, 11 Jan 2022 17:30:08 +0000 (UTC)
In-Reply-To: <86y23vo0zx.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 
 04 Jan 2022 19:37:54 +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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.bugs:223949
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/223949>

close 51210 29.0.50
thanks

>>> Its purpose is to override only the part that hard-codes 'next-window'.
>>
>> How about a variable 'other-window-to-scroll-function' whose default
>> value is 'next-window'?
>
> The default behavior is more complex than just 'next-window':
>
>   else if (FUNCTIONP (Vother_window_scroll_default))
>     /* Nothing specified; try to get a window from the function.  */
>     window = call0 (Vother_window_scroll_default);
>   else
>     {
>       /* Otherwise, look for a neighboring window on the same frame.  */
>       window = Fnext_window (selected_window, Qlambda, Qnil);
>
>       if (EQ (window, selected_window))
> 	/* That didn't get us anywhere; look for a window on another
>            visible frame on the current terminal.  */
>         window = Fnext_window (window, Qlambda, Qvisible);
>     }

So I pushed this.  If you have better suggestions, this could be reopened.