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
d0628b06
Commit
d0628b06
authored
Jan 21, 1998
by
Richard M. Stallman
Browse files
(set_buffer_if_live): New function.
parent
de404585
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/buffer.c
src/buffer.c
+11
-0
No files found.
src/buffer.c
View file @
d0628b06
...
...
@@ -1571,6 +1571,17 @@ Use `switch-to-buffer' or `pop-to-buffer' to switch buffers permanently.")
set_buffer_internal
(
XBUFFER
(
buf
));
return
buf
;
}
/* Set the current buffer to BUFFER provided it is alive. */
Lisp_Object
set_buffer_if_live
(
buffer
)
Lisp_Object
buffer
;
{
if
(
!
NILP
(
XBUFFER
(
buffer
)
->
name
))
Fset_buffer
(
buffer
);
return
Qnil
;
}
DEFUN
(
"barf-if-buffer-read-only"
,
Fbarf_if_buffer_read_only
,
Sbarf_if_buffer_read_only
,
0
,
0
,
0
,
...
...
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