diff options
| author | John Shahid | 2018-07-01 14:48:24 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2018-07-07 12:07:47 +0300 |
| commit | ea2f96837d00f5475cd48fc7bf62c19d1045c055 (patch) | |
| tree | 616269023e3a2a19b92e1adfe6fdff14bbbb341c /src/window.c | |
| parent | 42c0b8f3f27c8700f1f432649f2466aab9127061 (diff) | |
| download | emacs-ea2f96837d00f5475cd48fc7bf62c19d1045c055.tar.gz emacs-ea2f96837d00f5475cd48fc7bf62c19d1045c055.zip | |
Keep interactive uses of 'recenter' backward compatible (Bug#31325)
* window.c (Frecenter): Change the interactive spec to always pass
a non-nil value to the REDISPLAY argument when called interactively.
* window.el (recenter-top-bottom): Make sure 'recenter's second
argument is non-nil everywhere.
* windows.texi (Textual Scrolling): Update documentation of
'recenter'.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. */) |