Variable: scroll-error-top-bottom
scroll-error-top-bottom is a customizable variable defined in
window.el.gz.
Value
nil
Documentation
Move point to top/bottom of buffer before signaling a scrolling error.
A value of nil means just signal an error if no more scrolling possible.
A value of t means point moves to the beginning or the end of the buffer
(depending on scrolling direction) when no more scrolling possible.
When point is already on that position, then signal an error.
This variable was added, or its default value changed, in Emacs 24.1.
Probably introduced at or before Emacs version 24.1.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
;;; Scrolling commands.
;;; Scrolling commands which do not signal errors at top/bottom
;;; of buffer at first key-press (instead move to top/bottom
;;; of buffer).
(defcustom scroll-error-top-bottom nil
"Move point to top/bottom of buffer before signaling a scrolling error.
A value of nil means just signal an error if no more scrolling possible.
A value of t means point moves to the beginning or the end of the buffer
\(depending on scrolling direction) when no more scrolling possible.
When point is already on that position, then signal an error."
:type 'boolean
:group 'windows
:version "24.1")