[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master ea2f968: Keep interactive uses of 'recenter' backwa
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master ea2f968: Keep interactive uses of 'recenter' backward compatible (Bug#31325) |
Date: |
Sat, 7 Jul 2018 05:09:02 -0400 (EDT) |
branch: master
commit ea2f96837d00f5475cd48fc7bf62c19d1045c055
Author: John Shahid <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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'.
---
doc/lispref/windows.texi | 3 ++-
lisp/window.el | 2 +-
src/window.c | 4 ++--
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index ae6837b..3eaa15a 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
address@hidden, this function may redraw the frame, according to the
value of @code{recenter-redisplay}. Thus, omitting the second
argument can be used to countermand the effect of
address@hidden being address@hidden
address@hidden being address@hidden Interactive calls
+pass non-‘nil’ for @var{redisplay}.
When @code{recenter} is called interactively, @var{count} is the raw
prefix argument. Thus, typing @kbd{C-u} as the prefix sets the
diff --git a/lisp/window.el b/lisp/window.el
index 6d9d8bd..d56bed6 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -8767,7 +8767,7 @@ A prefix argument is handled like `recenter':
With plain `C-u', move current line to window center."
(interactive "P")
(cond
- (arg (recenter arg)) ; Always respect ARG.
+ (arg (recenter arg t)) ; Always respect ARG.
(t
(setq recenter-last-op
(if (eq this-command last-command)
diff --git a/src/window.c b/src/window.c
index d3c7257..422b06a 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5901,7 +5901,7 @@ displayed_window_lines (struct window *w)
}
-DEFUN ("recenter", Frecenter, Srecenter, 0, 2, "P",
+DEFUN ("recenter", Frecenter, Srecenter, 0, 2, "P\np",
doc: /* Center point in selected window and maybe redisplay frame.
With a numeric prefix argument ARG, recenter putting point on screen line ARG
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
`auto-resize-tool-bars' is set to `grow-only', this resets the
tool-bar's height to the minimum height needed); if
`recenter-redisplay' has the special value `tty', then only tty frames
-are redrawn.
+are redrawn. Interactively, REDISPLAY is always non-nil.
Just C-u as prefix means put point in the center of the window
and redisplay normally--don't erase and redraw the frame. */)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master ea2f968: Keep interactive uses of 'recenter' backward compatible (Bug#31325),
Eli Zaretskii <=