changeset 9632:833a19698ef3

(list_buffers_1): Always mark current_buffer read-only.
author Richard M. Stallman <rms@gnu.org>
date Thu, 20 Oct 1994 21:19:47 +0000
parents a5bd0b6b080e
children 3c1d373d9125
files src/buffer.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Thu Oct 20 21:17:44 1994 +0000
+++ b/src/buffer.c	Thu Oct 20 21:19:47 1994 +0000
@@ -1155,7 +1155,11 @@
       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));