diff options
| author | Martin Rudalics | 2014-03-01 20:15:29 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2014-03-01 20:15:29 +0100 |
| commit | 2907acd464d055256efb84afb0a8c978befa8bc6 (patch) | |
| tree | 5d961dfccc2a71adcb6ee7c53d97ebb7bf0172a0 | |
| parent | cb8b26b4ba0660043c40093f99df4a5d5f5725fb (diff) | |
| download | emacs-2907acd464d055256efb84afb0a8c978befa8bc6.tar.gz emacs-2907acd464d055256efb84afb0a8c978befa8bc6.zip | |
Consider Vother_window_scroll_buffer valid iff it's a live buffer.
* window.c (Fother_window_for_scrolling): Don't try to scroll a
killed Vother_window_scroll_buffer.
(Vother_window_scroll_buffer): Fix doc-string accordingly.
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/window.c | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1f351e71403..3425b504a71 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2014-03-01 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | Consider Vother_window_scroll_buffer valid iff it's a live buffer. | ||
| 4 | * window.c (Fother_window_for_scrolling): Don't try to scroll a | ||
| 5 | killed Vother_window_scroll_buffer. | ||
| 6 | (Vother_window_scroll_buffer): Fix doc-string accordingly. | ||
| 7 | |||
| 1 | 2014-03-01 Eli Zaretskii <eliz@gnu.org> | 8 | 2014-03-01 Eli Zaretskii <eliz@gnu.org> |
| 2 | 9 | ||
| 3 | * fileio.c (Fexpand_file_name) [WINDOWSNT]: Don't treat file names | 10 | * fileio.c (Fexpand_file_name) [WINDOWSNT]: Don't treat file names |
diff --git a/src/window.c b/src/window.c index b2a6ff4ff2d..09280d206c3 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -5429,8 +5429,9 @@ specifies the window. This takes precedence over | |||
| 5429 | if (MINI_WINDOW_P (XWINDOW (selected_window)) | 5429 | if (MINI_WINDOW_P (XWINDOW (selected_window)) |
| 5430 | && !NILP (Vminibuf_scroll_window)) | 5430 | && !NILP (Vminibuf_scroll_window)) |
| 5431 | window = Vminibuf_scroll_window; | 5431 | window = Vminibuf_scroll_window; |
| 5432 | /* If buffer is specified, scroll that buffer. */ | 5432 | /* If buffer is specified and live, scroll that buffer. */ |
| 5433 | else if (!NILP (Vother_window_scroll_buffer)) | 5433 | else if (!NILP (Vother_window_scroll_buffer) |
| 5434 | && BUFFER_LIVE_P (XBUFFER (Vother_window_scroll_buffer))) | ||
| 5434 | { | 5435 | { |
| 5435 | window = Fget_buffer_window (Vother_window_scroll_buffer, Qnil); | 5436 | window = Fget_buffer_window (Vother_window_scroll_buffer, Qnil); |
| 5436 | if (NILP (window)) | 5437 | if (NILP (window)) |
| @@ -7197,7 +7198,7 @@ is displayed in the `mode-line' face. */); | |||
| 7197 | mode_line_in_non_selected_windows = 1; | 7198 | mode_line_in_non_selected_windows = 1; |
| 7198 | 7199 | ||
| 7199 | DEFVAR_LISP ("other-window-scroll-buffer", Vother_window_scroll_buffer, | 7200 | DEFVAR_LISP ("other-window-scroll-buffer", Vother_window_scroll_buffer, |
| 7200 | doc: /* If non-nil, this is a buffer and \\[scroll-other-window] should scroll its window. */); | 7201 | doc: /* If this is a live buffer, \\[scroll-other-window] should scroll its window. */); |
| 7201 | Vother_window_scroll_buffer = Qnil; | 7202 | Vother_window_scroll_buffer = Qnil; |
| 7202 | 7203 | ||
| 7203 | DEFVAR_BOOL ("auto-window-vscroll", auto_window_vscroll_p, | 7204 | DEFVAR_BOOL ("auto-window-vscroll", auto_window_vscroll_p, |