aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuri Linkov2019-11-09 23:32:46 +0200
committerJuri Linkov2019-11-09 23:32:46 +0200
commit898cdc67f19ca15f4ac2b447adf350188baef604 (patch)
treec9e859ade9bd726b725dba8fc6add71023fccde2 /src
parent06cb8350c69d96c686f17fdb2d1f9260cd16a0df (diff)
downloademacs-898cdc67f19ca15f4ac2b447adf350188baef604.tar.gz
emacs-898cdc67f19ca15f4ac2b447adf350188baef604.zip
Run scroll/recenter commands from minibuffer in original window (bug#38076)
* lisp/minibuffer.el (with-minibuffer-selected-window): New macro. (minibuffer-recenter-top-bottom, minibuffer-scroll-up-command) (minibuffer-scroll-down-command, minibuffer-scroll-other-window): (minibuffer-scroll-other-window-down): New commands. (minibuffer-local-map): Remap recenter/scroll symbols to their minibuffer wrappers: recenter-top-bottom to minibuffer-recenter-top-bottom. * src/window.c (Fother_window_for_scrolling): Use 'lambda' value for MINIBUF arg of Fnext_window, so minibuffer-scroll-other-window and minibuffer-scroll-other-window-down doesn't try to scroll the minibuffer window.
Diffstat (limited to 'src')
-rw-r--r--src/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index e122649f59e..1984a540add 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6253,12 +6253,12 @@ followed by all visible frames on the current terminal. */)
6253 { 6253 {
6254 /* Nothing specified; look for a neighboring window on the same 6254 /* Nothing specified; look for a neighboring window on the same
6255 frame. */ 6255 frame. */
6256 window = Fnext_window (selected_window, Qnil, Qnil); 6256 window = Fnext_window (selected_window, Qlambda, Qnil);
6257 6257
6258 if (EQ (window, selected_window)) 6258 if (EQ (window, selected_window))
6259 /* That didn't get us anywhere; look for a window on another 6259 /* That didn't get us anywhere; look for a window on another
6260 visible frame on the current terminal. */ 6260 visible frame on the current terminal. */
6261 window = Fnext_window (window, Qnil, Qvisible); 6261 window = Fnext_window (window, Qlambda, Qvisible);
6262 } 6262 }
6263 6263
6264 CHECK_LIVE_WINDOW (window); 6264 CHECK_LIVE_WINDOW (window);