1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

(decode_mode_spec): %+ makes % for unmodified RO buffer.

This commit is contained in:
Richard M. Stallman 1994-07-02 19:41:19 +00:00
parent c806d99edd
commit 8d80e22752

View 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':