mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-25 06:17:34 +00:00
(Fother_buffer): Don't call Fset_buffer_major_mode
for *scratch* if it already existed.
This commit is contained in:
parent
ae1aa776d6
commit
dba1a30ab8
1 changed files with 6 additions and 2 deletions
|
|
@ -961,8 +961,12 @@ If BUFFER is omitted or nil, some interesting buffer is returned.")
|
|||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue