From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#51210: Customizable other-window-for-scrolling
Date: Thu, 14 Oct 2021 21:52:43 +0300
Message-ID: <83wnmfjv5w.fsf@gnu.org>
References: <878ryvh6bz.fsf@mail.linkov.net> <8335p3ldi2.fsf@gnu.org>
 <87lf2vfpz5.fsf@mail.linkov.net> <83zgrbjxb2.fsf@gnu.org>
 <874k9jea2b.fsf@mail.linkov.net> <83y26vjvvc.fsf@gnu.org>
 <87r1cncuob.fsf@mail.linkov.net>
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="31522"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 51210@debbugs.gnu.org
To: Juri Linkov <juri@linkov.net>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 14 20:53: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 1mb5qp-00085x-ML
	for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 20:53:11 +0200
Original-Received: from localhost ([::1]:44118 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 1mb5qn-0001e8-UB
	for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 14:53:09 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39204)
 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 1mb5qi-0001dj-2V
 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 14:53:04 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:53801)
 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 1mb5qg-0007lB-EA
 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 14:53: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 1mb5qg-0000YE-DA
 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 14:53:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Eli Zaretskii <eliz@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Thu, 14 Oct 2021 18:53:02 +0000
Resent-Message-ID: <handler.51210.B51210.16342375752106@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.16342375752106
 (code B ref 51210); Thu, 14 Oct 2021 18:53:02 +0000
Original-Received: (at 51210) by debbugs.gnu.org; 14 Oct 2021 18:52:55 +0000
Original-Received: from localhost ([127.0.0.1]:37114 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1mb5qZ-0000Xu-Aa
 for submit@debbugs.gnu.org; Thu, 14 Oct 2021 14:52:55 -0400
Original-Received: from eggs.gnu.org ([209.51.188.92]:37134)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@gnu.org>) id 1mb5qV-0000Xf-Nm
 for 51210@debbugs.gnu.org; Thu, 14 Oct 2021 14:52:53 -0400
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58404)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@gnu.org>)
 id 1mb5qQ-0007Xz-ER; Thu, 14 Oct 2021 14:52:46 -0400
Original-Received: from [87.69.77.57] (port=1273 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@gnu.org>)
 id 1mb5qP-0004Dp-SM; Thu, 14 Oct 2021 14:52:46 -0400
In-Reply-To: <87r1cncuob.fsf@mail.linkov.net> (message from Juri Linkov on
 Thu, 14 Oct 2021 21:45:08 +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:217261
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/217261>

> From: Juri Linkov <juri@linkov.net>
> Cc: 51210@debbugs.gnu.org
> Date: Thu, 14 Oct 2021 21:45:08 +0300
> 
> > The advantage of having separate commands is that users can then have
> > several behaviors at once.  By contrast, a single customizable
> > variable can provide only one of the possible behaviors.  Not everyone
> > wants only ever scroll the most-recently-used window or the single
> > window on another frame, some of the users might want sometimes to
> > scroll next-window, sometimes the most-recently-used one, and
> > sometimes the one on the other frame.
> >
> > And it isn't like it would be hard to write those few commands, it
> > should be almost trivial.  Not harder than writing those functions to
> > return the window you want, anyway.
> 
> If you want to write such commands, still it would be much easier
> to implement them using the new variable, e.g.
> 
> (defun scroll-mru-window ()
>   (interactive)
>   (let ((other-window-scroll-window 'get-mru-window)
>     (scroll-other-window))))

Of course!  All I'm saying is let's not limit ourselves to just the
variable, as it will satisfy only some users, those who always want
only one kind of behavior regarding scrolling other windows.