From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51210: Customizable other-window-for-scrolling Date: Mon, 24 Jan 2022 21:53:04 +0200 Message-ID: <8335lckj1b.fsf@gnu.org> 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> <86mtk2jdwy.fsf@mail.linkov.net> <83czky6noe.fsf@gnu.org> <86r19crftb.fsf@mail.linkov.net> <8335ls69cy.fsf@gnu.org> <86y23kpwlf.fsf@mail.linkov.net> <83zgo04trm.fsf@gnu.org> <86zgo0ohci.fsf@mail.linkov.net> <83tue84rgs.fsf@gnu.org> <86pmoqycnf.fsf@mail.linkov.net> <83tue2wnhq.fsf@gnu.org> <86tudsx6nc.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51210@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 24 21:18:06 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 1nC5mt-0009IX-Hd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jan 2022 21:18:03 +0100 Original-Received: from localhost ([::1]:48666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nC5ms-0000I5-83 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jan 2022 15:18:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC5Pe-0008FR-3U for bug-gnu-emacs@gnu.org; Mon, 24 Jan 2022 14:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nC5Pd-00084C-OD for bug-gnu-emacs@gnu.org; Mon, 24 Jan 2022 14:54:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nC5Pd-0006w4-O7 for bug-gnu-emacs@gnu.org; Mon, 24 Jan 2022 14:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jan 2022 19:54:01 +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.164305400826619 (code B ref 51210); Mon, 24 Jan 2022 19:54:01 +0000 Original-Received: (at 51210) by debbugs.gnu.org; 24 Jan 2022 19:53:28 +0000 Original-Received: from localhost ([127.0.0.1]:45963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC5P5-0006vG-Ts for submit@debbugs.gnu.org; Mon, 24 Jan 2022 14:53:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC5P4-0006v4-1D for 51210@debbugs.gnu.org; Mon, 24 Jan 2022 14:53:26 -0500 Original-Received: from [2001:470:142:3::e] (port=44266 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC5Ox-0007zv-UA; Mon, 24 Jan 2022 14:53:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=WNGaVNXWQ9GGXMO7gxazCVvijVJILp4HR3SY2Ly9QkI=; b=MeWp6/hiqmS/ C+sJfXyjg59KfbH2igN8Okcsg+jt4iquhHzQsMt3JHX6Z3ahqGVZ64PJ61mjABfw10319WFz4MOPy WNSjHw89AtGtfrwz4a5Cq5S4GJQ/Pu0NLHml6iVHJjLM9WGLuSQ0cxmH5oMxqBlKW4MsZXigS0mXT jK22RDO75f7mhvTHTgrPFJi1jxhdhYd1p7m0Y93jiGv4SRbXBLtxL6IxIvyoAbnho98clP37EmfPn mXZXIiOXt5ls/lyZWWJOXSxV1OWKEYlJWH87poYgSnoM/HQXIM+NWVjZIjEU7f70t1f0ByWi0a2kl bbIlFEjvIxizwr3zPgll8A==; Original-Received: from [87.69.77.57] (port=3964 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC5Ov-0001zF-PM; Mon, 24 Jan 2022 14:53:19 -0500 In-Reply-To: <86tudsx6nc.fsf@mail.linkov.net> (message from Juri Linkov on Mon, 24 Jan 2022 21:42:15 +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:225121 Archived-At: > From: Juri Linkov > Cc: rudalics@gmx.at, 51210@debbugs.gnu.org > Date: Mon, 24 Jan 2022 21:42:15 +0200 > > >> 'beginning-of-buffer-other-window' has such line at the end: > >> > >> (recenter '(t)) > >> > >> Clearly it makes no sense to recenter at the beginning of the buffer. > >> So the value '(t)' was intended only to refresh the screen? > >> Then the same line in 'end-of-buffer-other-window' > >> should only refresh the screen, not recenter. > > > > I'm not sure I understand how all of this is relevant. Please > > elaborate. > > Currently the implementation of beginning-of-buffer-other-window > is this: > > (defun beginning-of-buffer-other-window (arg) > (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)))) > > It's not clear what does the last comment mean. > 'recenter' should set point accordingly to what? > And what does (recenter '(t)) do at the beginning of the buffer? It isn't beginning of buffer, it's where (beginning-of-buffer arg) puts point when ARG is non-nil. See the doc string of beginning-of-buffer.