Mercurial > emacs
changeset 8124:d3c0876a550c
(decode_mode_spec): %+ makes % for unmodified RO buffer.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 02 Jul 1994 19:41:19 +0000 |
parents | 0c56ff6c4742 |
children | 3941618b4c2b |
files | src/xdisp.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Sat Jul 02 19:37:12 1994 +0000 +++ b/src/xdisp.c Sat Jul 02 19:41:19 1994 +0000 @@ -2961,8 +2961,11 @@ 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':