Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b5b4d360
Commit
b5b4d360
authored
Oct 20, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(list_buffers_1): Always mark current_buffer read-only.
parent
5c9e49a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/buffer.c
src/buffer.c
+5
-1
No files found.
src/buffer.c
View file @
b5b4d360
...
...
@@ -1155,7 +1155,11 @@ list_buffers_1 (files)
write_string
(
b
==
old
?
"."
:
" "
,
-
1
);
/* Identify modified buffers */
write_string
(
BUF_MODIFF
(
b
)
>
b
->
save_modified
?
"*"
:
" "
,
-
1
);
write_string
(
NILP
(
b
->
read_only
)
?
" "
:
"% "
,
-
1
);
/* The current buffer is special-cased to be marked read-only.
It is actually made read-only by the call to
Buffer-menu-mode, below. */
write_string
((
b
!=
current_buffer
&&
NILP
(
b
->
read_only
))
?
" "
:
"% "
,
-
1
);
Fprinc
(
b
->
name
,
Qnil
);
Findent_to
(
col1
,
make_number
(
2
));
XSETFASTINT
(
tem
,
BUF_Z
(
b
)
-
BUF_BEG
(
b
));
...
...
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