Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
dba1a30a
Commit
dba1a30a
authored
Jan 28, 2000
by
Gerd Moellmann
Browse files
(Fother_buffer): Don't call Fset_buffer_major_mode
for *scratch* if it already existed.
parent
ae1aa776
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/buffer.c
src/buffer.c
+6
-2
No files found.
src/buffer.c
View file @
dba1a30a
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment