diff options
| -rw-r--r-- | doc/lispref/windows.texi | 3 | ||||
| -rw-r--r-- | lisp/window.el | 2 | ||||
| -rw-r--r-- | src/window.c | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index ae6837b444f..3eaa15a6036 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -4156,7 +4156,8 @@ window. If @var{count} is @code{nil} and @var{redisplay} is | |||
| 4156 | non-@code{nil}, this function may redraw the frame, according to the | 4156 | non-@code{nil}, this function may redraw the frame, according to the |
| 4157 | value of @code{recenter-redisplay}. Thus, omitting the second | 4157 | value of @code{recenter-redisplay}. Thus, omitting the second |
| 4158 | argument can be used to countermand the effect of | 4158 | argument can be used to countermand the effect of |
| 4159 | @code{recenter-redisplay} being non-@code{nil}. | 4159 | @code{recenter-redisplay} being non-@code{nil}. Interactive calls |
| 4160 | pass non-‘nil’ for @var{redisplay}. | ||
| 4160 | 4161 | ||
| 4161 | When @code{recenter} is called interactively, @var{count} is the raw | 4162 | When @code{recenter} is called interactively, @var{count} is the raw |
| 4162 | prefix argument. Thus, typing @kbd{C-u} as the prefix sets the | 4163 | prefix argument. Thus, typing @kbd{C-u} as the prefix sets the |
diff --git a/lisp/window.el b/lisp/window.el index 6d9d8bdcd2e..d56bed63da0 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -8767,7 +8767,7 @@ A prefix argument is handled like `recenter': | |||
| 8767 | With plain `C-u', move current line to window center." | 8767 | With plain `C-u', move current line to window center." |
| 8768 | (interactive "P") | 8768 | (interactive "P") |
| 8769 | (cond | 8769 | (cond |
| 8770 | (arg (recenter arg)) ; Always respect ARG. | 8770 | (arg (recenter arg t)) ; Always respect ARG. |
| 8771 | (t | 8771 | (t |
| 8772 | (setq recenter-last-op | 8772 | (setq recenter-last-op |
| 8773 | (if (eq this-command last-command) | 8773 | (if (eq this-command last-command) |
diff --git a/src/window.c b/src/window.c index d3c72570dd1..422b06a49fe 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -5901,7 +5901,7 @@ displayed_window_lines (struct window *w) | |||
| 5901 | } | 5901 | } |
| 5902 | 5902 | ||
| 5903 | 5903 | ||
| 5904 | DEFUN ("recenter", Frecenter, Srecenter, 0, 2, "P", | 5904 | DEFUN ("recenter", Frecenter, Srecenter, 0, 2, "P\np", |
| 5905 | doc: /* Center point in selected window and maybe redisplay frame. | 5905 | doc: /* Center point in selected window and maybe redisplay frame. |
| 5906 | With a numeric prefix argument ARG, recenter putting point on screen line ARG | 5906 | With a numeric prefix argument ARG, recenter putting point on screen line ARG |
| 5907 | relative to the selected window. If ARG is negative, it counts up from the | 5907 | relative to the selected window. If ARG is negative, it counts up from the |
| @@ -5913,7 +5913,7 @@ non-nil, also erase the entire frame and redraw it (when | |||
| 5913 | `auto-resize-tool-bars' is set to `grow-only', this resets the | 5913 | `auto-resize-tool-bars' is set to `grow-only', this resets the |
| 5914 | tool-bar's height to the minimum height needed); if | 5914 | tool-bar's height to the minimum height needed); if |
| 5915 | `recenter-redisplay' has the special value `tty', then only tty frames | 5915 | `recenter-redisplay' has the special value `tty', then only tty frames |
| 5916 | are redrawn. | 5916 | are redrawn. Interactively, REDISPLAY is always non-nil. |
| 5917 | 5917 | ||
| 5918 | Just C-u as prefix means put point in the center of the window | 5918 | Just C-u as prefix means put point in the center of the window |
| 5919 | and redisplay normally--don't erase and redraw the frame. */) | 5919 | and redisplay normally--don't erase and redraw the frame. */) |