# HG changeset patch # User Gerd Moellmann # Date 949080830 0 # Node ID 90165d2202f9b9af17ff86815d2dcec0dd69683d # Parent 2b5d9f6cdc240bd4c6b1f8c4ea016c00c41fae1a (Fother_buffer): Don't call Fset_buffer_major_mode for *scratch* if it already existed. diff -r 2b5d9f6cdc24 -r 90165d2202f9 src/buffer.c --- a/src/buffer.c Fri Jan 28 17:31:00 2000 +0000 +++ b/src/buffer.c Fri Jan 28 17:33:50 2000 +0000 @@ -961,8 +961,12 @@ } if (!NILP (notsogood)) return notsogood; - buf = Fget_buffer_create (build_string ("*scratch*")); - Fset_buffer_major_mode (buf); + buf = Fget_buffer (build_string ("*scratch*")); + if (NILP (buf)) + { + buf = Fget_buffer_create (build_string ("*scratch*")); + Fset_buffer_major_mode (buf); + } return buf; }