diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 891d9eb083f..f4fe95b3927 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -809,6 +809,7 @@ If BUFFER is omitted or nil, some interesting buffer is returned.") | |||
| 809 | (buffer, visible_ok) | 809 | (buffer, visible_ok) |
| 810 | register Lisp_Object buffer, visible_ok; | 810 | register Lisp_Object buffer, visible_ok; |
| 811 | { | 811 | { |
| 812 | Lisp_Object Fset_buffer_major_mode (); | ||
| 812 | register Lisp_Object tail, buf, notsogood, tem; | 813 | register Lisp_Object tail, buf, notsogood, tem; |
| 813 | notsogood = Qnil; | 814 | notsogood = Qnil; |
| 814 | 815 | ||
| @@ -842,7 +843,9 @@ If BUFFER is omitted or nil, some interesting buffer is returned.") | |||
| 842 | } | 843 | } |
| 843 | if (!NILP (notsogood)) | 844 | if (!NILP (notsogood)) |
| 844 | return notsogood; | 845 | return notsogood; |
| 845 | return Fget_buffer_create (build_string ("*scratch*")); | 846 | buf = Fget_buffer_create (build_string ("*scratch*")); |
| 847 | Fset_buffer_major_mode (buf); | ||
| 848 | return buf; | ||
| 846 | } | 849 | } |
| 847 | 850 | ||
| 848 | DEFUN ("buffer-disable-undo", Fbuffer_disable_undo, Sbuffer_disable_undo, | 851 | DEFUN ("buffer-disable-undo", Fbuffer_disable_undo, Sbuffer_disable_undo, |