From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#51210: Customizable other-window-for-scrolling Date: Tue, 11 Jan 2022 20:58:10 +0200 Organization: LINKOV.NET Message-ID: <86mtk2jdwy.fsf@mail.linkov.net> References: <878ryvh6bz.fsf@mail.linkov.net> <861r1v1foe.fsf@mail.linkov.net> <96d50c26-ea56-5ff6-3cc3-25652d744ca4@gmx.at> <86o84revzi.fsf@mail.linkov.net> <86y23vo0zx.fsf@mail.linkov.net> <86sftunptq.fsf@mail.linkov.net> <86a6g2ktel.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="8874"; 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 Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 11 20:21:39 2022 Return-path: 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 ) id 1n7MiB-00029I-HJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 20:21:39 +0100 Original-Received: from localhost ([::1]:50184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7MiA-0004Ld-CS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 14:21:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7MQA-00055l-Od for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 14:03:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34424) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7MQA-0000Xs-DB for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 14:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7MQA-0005Db-As for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 14:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jan 2022 19:03:02 +0000 Resent-Message-ID: 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.164192776220004 (code B ref 51210); Tue, 11 Jan 2022 19:03:02 +0000 Original-Received: (at 51210) by debbugs.gnu.org; 11 Jan 2022 19:02:42 +0000 Original-Received: from localhost ([127.0.0.1]:55560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7MPp-0005CZ-P4 for submit@debbugs.gnu.org; Tue, 11 Jan 2022 14:02:41 -0500 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:54107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7MPn-0005C5-IO for 51210@debbugs.gnu.org; Tue, 11 Jan 2022 14:02:40 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 2185AC0004; Tue, 11 Jan 2022 19:02:31 +0000 (UTC) In-Reply-To: <86a6g2ktel.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 11 Jan 2022 20:40:34 +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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:223963 Archived-At: There are also nice commands: M- (beginning-of-buffer-other-window) and M- (end-of-buffer-other-window), but for no reason they recenter the other window after moving to the beginning/end. It would be better to remove this disservice: diff --git a/lisp/window.el b/lisp/window.el index 582600e1c6..45c6b36b21 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -10105,9 +10105,7 @@ beginning-of-buffer-other-window (with-selected-window (other-window-for-scrolling) ;; Set point and mark in that window's buffer. (with-no-warnings - (beginning-of-buffer arg)) - ;; Set point accordingly. - (recenter '(t)))) + (beginning-of-buffer arg)))) (defun end-of-buffer-other-window (arg) "Move point to the end of the buffer in the other window. @@ -10117,8 +10115,7 @@ end-of-buffer-other-window ;; See beginning-of-buffer-other-window for comments. (with-selected-window (other-window-for-scrolling) (with-no-warnings - (end-of-buffer arg)) - (recenter '(t)))) + (end-of-buffer arg)))) (defvar mouse-autoselect-window-timer nil "Timer used by delayed window autoselection.") --