]> git.eshelyaron.com Git - emacs.git/commitdiff
(list_buffers_1): Always mark current_buffer read-only.
authorRichard M. Stallman <rms@gnu.org>
Thu, 20 Oct 1994 21:19:47 +0000 (21:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 20 Oct 1994 21:19:47 +0000 (21:19 +0000)
src/buffer.c

index 0fd2e61f63e087547a2f95b1cdceb712df86647d..23d4ebf9b2347c1b10998679e8d11efb55df0a44 100644 (file)
@@ -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));