diff options
| author | Gerd Moellmann | 2001-10-15 11:40:46 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-15 11:40:46 +0000 |
| commit | aa601ad023cf2548ef8e107475ea5ac1d3f8e9ef (patch) | |
| tree | 5f959724dca952259c23beb89cc8655a13da0735 /src/window.c | |
| parent | dd8d1e71ef11f3722fc4e5607b45c32839d1b000 (diff) | |
| download | emacs-aa601ad023cf2548ef8e107475ea5ac1d3f8e9ef.tar.gz emacs-aa601ad023cf2548ef8e107475ea5ac1d3f8e9ef.zip | |
(window_loop): Don't check for Fother_buffer returning nil.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c index 8f7dd74cf88..4c629113d9d 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1854,8 +1854,6 @@ window_loop (type, obj, mini, frames) | |||
| 1854 | display there. */ | 1854 | display there. */ |
| 1855 | Lisp_Object buffer; | 1855 | Lisp_Object buffer; |
| 1856 | buffer = Fother_buffer (obj, Qnil, w->frame); | 1856 | buffer = Fother_buffer (obj, Qnil, w->frame); |
| 1857 | if (NILP (buffer)) | ||
| 1858 | buffer = Fget_buffer_create (build_string ("*scratch*")); | ||
| 1859 | Fset_window_buffer (window, buffer); | 1857 | Fset_window_buffer (window, buffer); |
| 1860 | if (EQ (window, selected_window)) | 1858 | if (EQ (window, selected_window)) |
| 1861 | Fset_buffer (w->buffer); | 1859 | Fset_buffer (w->buffer); |
| @@ -1891,8 +1889,6 @@ window_loop (type, obj, mini, frames) | |||
| 1891 | 1889 | ||
| 1892 | /* Find another buffer to show in this window. */ | 1890 | /* Find another buffer to show in this window. */ |
| 1893 | buffer = Fother_buffer (obj, Qnil, w->frame); | 1891 | buffer = Fother_buffer (obj, Qnil, w->frame); |
| 1894 | if (NILP (buffer)) | ||
| 1895 | buffer = Fget_buffer_create (build_string ("*scratch*")); | ||
| 1896 | 1892 | ||
| 1897 | /* If this window is dedicated, and in a frame of its own, | 1893 | /* If this window is dedicated, and in a frame of its own, |
| 1898 | kill the frame. */ | 1894 | kill the frame. */ |