bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51210: Customizable other-window-for-scrolling


From: Juri Linkov
Subject: bug#51210: Customizable other-window-for-scrolling
Date: Mon, 24 Jan 2022 21:42:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>> '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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]