mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Explain better what the interactive prefix does in scroll-down/up
* lisp/window.el (scroll-up-command, scroll-down-command): * lisp/image-mode.el (image-scroll-up, image-scroll-down): Actually explain what the interactive prefix does (bug#44503).
This commit is contained in:
parent
5ac6af4e88
commit
f7c56a0d73
2 changed files with 30 additions and 6 deletions
|
|
@ -282,10 +282,17 @@ Stop if the top edge of the image is reached."
|
|||
(defun image-scroll-up (&optional n)
|
||||
"Scroll image in current window upward by N lines.
|
||||
Stop if the bottom edge of the image is reached.
|
||||
If ARG is omitted or nil, scroll upward by a near full screen.
|
||||
|
||||
Interactively, giving this command a numerical prefix will scroll
|
||||
up by that many lines (and down by that many lines if the number
|
||||
is negative). Without a prefix, scroll up by a full screen.
|
||||
If given a `C-u -' prefix, scroll a full page down instead.
|
||||
|
||||
If N is omitted or nil, scroll upward by a near full screen.
|
||||
A near full screen is `next-screen-context-lines' less than a full screen.
|
||||
Negative ARG means scroll downward.
|
||||
If ARG is the atom `-', scroll downward by nearly full screen.
|
||||
A negative N means scroll downward.
|
||||
|
||||
If N is the atom `-', scroll downward by nearly full screen.
|
||||
When calling from a program, supply as argument a number, nil, or `-'."
|
||||
(interactive "P")
|
||||
(cond ((null n)
|
||||
|
|
@ -303,10 +310,17 @@ When calling from a program, supply as argument a number, nil, or `-'."
|
|||
(defun image-scroll-down (&optional n)
|
||||
"Scroll image in current window downward by N lines.
|
||||
Stop if the top edge of the image is reached.
|
||||
If ARG is omitted or nil, scroll downward by a near full screen.
|
||||
|
||||
Interactively, giving this command a numerical prefix will scroll
|
||||
down by that many lines (and up by that many lines if the number
|
||||
is negative). Without a prefix, scroll down by a full screen.
|
||||
If given a `C-u -' prefix, scroll a full page up instead.
|
||||
|
||||
If N is omitted or nil, scroll downward by a near full screen.
|
||||
A near full screen is `next-screen-context-lines' less than a full screen.
|
||||
Negative ARG means scroll upward.
|
||||
If ARG is the atom `-', scroll upward by nearly full screen.
|
||||
A negative N means scroll upward.
|
||||
|
||||
If N is the atom `-', scroll upward by nearly full screen.
|
||||
When calling from a program, supply as argument a number, nil, or `-'."
|
||||
(interactive "P")
|
||||
(cond ((null n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue