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 21:25:24 +0300
Organization: LINKOV.NET
Message-ID: <874k9jea2b.fsf@mail.linkov.net>
References: <878ryvh6bz.fsf@mail.linkov.net> <8335p3ldi2.fsf@gnu.org>
 <87lf2vfpz5.fsf@mail.linkov.net> <83zgrbjxb2.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="9583"; 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: Eli Zaretskii <eliz@gnu.org>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 14 20:32:31 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 1mb5Wn-00028q-7T
	for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 20:32:29 +0200
Original-Received: from localhost ([::1]:33360 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 1mb5Wl-0001Qv-Q8
	for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 14:32:27 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33810)
 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 1mb5UR-0000Vg-A7
 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 14:30:03 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:53764)
 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 1mb5UR-0000OR-0K
 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 14:30:03 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1mb5UQ-0008N5-R1
 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 14:30: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 18:30:02 +0000
Resent-Message-ID: <handler.51210.B51210.163423614532080@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.163423614532080
 (code B ref 51210); Thu, 14 Oct 2021 18:30:02 +0000
Original-Received: (at 51210) by debbugs.gnu.org; 14 Oct 2021 18:29:05 +0000
Original-Received: from localhost ([127.0.0.1]:37077 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1mb5TU-0008LM-OR
 for submit@debbugs.gnu.org; Thu, 14 Oct 2021 14:29:04 -0400
Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:56157)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@linkov.net>) id 1mb5TT-0008Kr-9r
 for 51210@debbugs.gnu.org; Thu, 14 Oct 2021 14:29:03 -0400
Original-Received: (Authenticated sender: juri@linkov.net)
 by relay11.mail.gandi.net (Postfix) with ESMTPSA id 2C6EC100006;
 Thu, 14 Oct 2021 18:28:55 +0000 (UTC)
In-Reply-To: <83zgrbjxb2.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Oct
 2021 21:06:25 +0300")
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:217256
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/217256>

>> The right window would be most-recently-used window like can be
>> customized in e.g. compare-windows-get-window-function.
>
> For me, it's always the next-window.  Which explains why you aren't
> satisfied: you expect something else.  So why not have a new command,
> scroll-mru-window?

and

> Wouldn't it be easier to add a new command scroll-other-frame?

It's much easier to customize one variable to the needed function
that to create a dozen of commands and rebind them to the same keys
because there are many commands that will use the new variable:

scroll-other-window bound to M-<next>, C-M-v
scroll-other-window-down bound to M-<prior>, C-M-S-v
recenter-other-window bound to C-M-S-l
beginning-of-buffer-other-window bound to M-<begin>, M-<home>
end-of-buffer-other-window bound to M-<end>
...