Mercurial > emacs
changeset 10916:3aea65d9eb68
(Fpop_to_buffer): Call Fset_buffer_major_mode if we create a buffer.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 06 Mar 1995 04:15:23 +0000 |
parents | 4d587fff2aa0 |
children | 283f18021929 |
files | src/buffer.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c Fri Mar 03 10:32:07 1995 +0000 +++ b/src/buffer.c Mon Mar 06 04:15:23 1995 +0000 @@ -1146,7 +1146,14 @@ if (NILP (bufname)) buf = Fother_buffer (Fcurrent_buffer (), Qnil); else - buf = Fget_buffer_create (bufname); + { + buf = Fget_buffer (bufname); + if (NILP (buf)) + { + buf = Fget_buffer_create (bufname); + Fset_buffer_major_mode (buf); + } + } Fset_buffer (buf); record_buffer (buf); Fselect_window (Fdisplay_buffer (buf, other));