]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode_mode_spec): %+ makes % for unmodified RO buffer.
authorRichard M. Stallman <rms@gnu.org>
Sat, 2 Jul 1994 19:41:19 +0000 (19:41 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 2 Jul 1994 19:41:19 +0000 (19:41 +0000)
src/xdisp.c

index fc9a11a4cc2b178df79945f59b99f2b5ffd2dab6..88f9e9c55cdcf01c27fe9abbe1820f0ac409ed09 100644 (file)
@@ -2961,8 +2961,11 @@ decode_mode_spec (w, c, maxwidth)
       return "-";
 
     case '+':
+      /* This differs from %* only for a modified read-only buffer.  */
       if (MODIFF > current_buffer->save_modified)
        return "*";
+      if (!NILP (current_buffer->read_only))
+       return "%";
       return "-";
 
     case 's':