diff options
author | Richard M. Stallman <[email protected]> | 1994-10-20 21:19:47 +0000 |
---|---|---|
committer | Richard M. Stallman <[email protected]> | 1994-10-20 21:19:47 +0000 |
commit | b5b4d3606f855d2e3982d75082e8d52d29920115 (patch) | |
tree | fb776ecc0c9db6e39e5ebb030b00c47b50fab02d /src/buffer.c | |
parent | 5c9e49a953e19c82eea23b88549ffb394a02af33 (diff) |
(list_buffers_1): Always mark current_buffer read-only.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 0fd2e61f63..23d4ebf9b2 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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)); |