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: Thu, 14 Oct 2021 20:19:44 +0300
Organization: LINKOV.NET
Message-ID: <878ryvh6bz.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="22482"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
To: 51210@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 14 19:23:11 2021
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 1mb4Rj-0005dQ-51
	for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 19:23:11 +0200
Original-Received: from localhost ([::1]:47540 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 1mb4Rh-0002yg-3n
	for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 13:23:09 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46304)
 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 1mb4Ra-0002yS-R1
 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 13:23:02 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:53692)
 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 1mb4Ra-0000XJ-IW
 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 13:23:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1mb4Ra-0006du-96
 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 13:23:02 -0400
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: Thu, 14 Oct 2021 17:23:02 +0000
Resent-Message-ID: <handler.51210.B.163423213125442@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 51210
X-GNU-PR-Package: emacs
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.163423213125442
 (code B ref -1); Thu, 14 Oct 2021 17:23:02 +0000
Original-Received: (at submit) by debbugs.gnu.org; 14 Oct 2021 17:22:11 +0000
Original-Received: from localhost ([127.0.0.1]:37005 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1mb4Qk-0006cH-SI
 for submit@debbugs.gnu.org; Thu, 14 Oct 2021 13:22:11 -0400
Original-Received: from lists.gnu.org ([209.51.188.17]:50886)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@linkov.net>) id 1mb4Qg-0006c7-Dk
 for submit@debbugs.gnu.org; Thu, 14 Oct 2021 13:22:09 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46160)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@linkov.net>) id 1mb4Qg-0002sD-7t
 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 13:22:06 -0400
Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:40305)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@linkov.net>) id 1mb4Qd-00089P-Pb
 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 13:22:05 -0400
Original-Received: (Authenticated sender: juri@linkov.net)
 by relay10.mail.gandi.net (Postfix) with ESMTPSA id 00D32240004
 for <bug-gnu-emacs@gnu.org>; Thu, 14 Oct 2021 17:21:59 +0000 (UTC)
Received-SPF: pass client-ip=217.70.178.230; envelope-from=juri@linkov.net;
 helo=relay10.mail.gandi.net
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
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:217243
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/217243>

Often scroll-other-window uses a wrong window for scrolling
when there are more than 2 windows on the frame.

Maybe like there is a variable other-window-scroll-buffer,
it would be nice to add a new user option
other-window-for-scrolling-function that will return
a window for scrolling.  It could provide a choise list that
includes a function that returns the most-recently-used window.

Then maybe also minibuffer-handling logic could be moved from
other-window-for-scrolling to the function used by default
in this new option.