aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBasil L. Contovounesios2018-04-30 18:02:15 +0100
committerNoam Postavsky2018-05-10 19:04:11 -0400
commitdc9188ada522743dd9c9a6658570d9c4973be432 (patch)
tree1406765818ddd1a3f108f01e2de637e7fe819681 /src
parent766b057e41df7316808ec7658836fda75facda75 (diff)
downloademacs-dc9188ada522743dd9c9a6658570d9c4973be432.tar.gz
emacs-dc9188ada522743dd9c9a6658570d9c4973be432.zip
Limit "other window" scrolling to current terminal
* src/window.c (Fother_window_for_scrolling): Limit next-window search to visible frames on the current terminal. (bug#30207)
Diffstat (limited to 'src')
-rw-r--r--src/window.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c
index e6d0280d9b0..59c94220294 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5709,8 +5709,7 @@ specifies the window. This takes precedence over
5709 && !NILP (Vminibuf_scroll_window)) 5709 && !NILP (Vminibuf_scroll_window))
5710 window = Vminibuf_scroll_window; 5710 window = Vminibuf_scroll_window;
5711 /* If buffer is specified and live, scroll that buffer. */ 5711 /* If buffer is specified and live, scroll that buffer. */
5712 else if (!NILP (Vother_window_scroll_buffer) 5712 else if (BUFFERP (Vother_window_scroll_buffer)
5713 && BUFFERP (Vother_window_scroll_buffer)
5714 && BUFFER_LIVE_P (XBUFFER (Vother_window_scroll_buffer))) 5713 && BUFFER_LIVE_P (XBUFFER (Vother_window_scroll_buffer)))
5715 { 5714 {
5716 window = Fget_buffer_window (Vother_window_scroll_buffer, Qnil); 5715 window = Fget_buffer_window (Vother_window_scroll_buffer, Qnil);
@@ -5725,11 +5724,8 @@ specifies the window. This takes precedence over
5725 5724
5726 if (EQ (window, selected_window)) 5725 if (EQ (window, selected_window))
5727 /* That didn't get us anywhere; look for a window on another 5726 /* That didn't get us anywhere; look for a window on another
5728 visible frame. */ 5727 visible frame on the current terminal. */
5729 do 5728 window = Fnext_window (window, Qnil, Qvisible);
5730 window = Fnext_window (window, Qnil, Qt);
5731 while (! FRAME_VISIBLE_P (XFRAME (WINDOW_FRAME (XWINDOW (window))))
5732 && ! EQ (window, selected_window));
5733 } 5729 }
5734 5730
5735 CHECK_LIVE_WINDOW (window); 5731 CHECK_LIVE_WINDOW (window);