diff options
| author | Richard M. Stallman | 1994-07-02 19:41:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-07-02 19:41:19 +0000 |
| commit | 8d80e2275236bcfa3ef3f8cc011ecd2a1993f25c (patch) | |
| tree | b0a9f8ab6be4dab80cd456fde5582ed538ceb74f /src | |
| parent | c806d99edd5921be2d12f47aa94c0a31d6a7833a (diff) | |
| download | emacs-8d80e2275236bcfa3ef3f8cc011ecd2a1993f25c.tar.gz emacs-8d80e2275236bcfa3ef3f8cc011ecd2a1993f25c.zip | |
(decode_mode_spec): %+ makes % for unmodified RO buffer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index fc9a11a4cc2..88f9e9c55cd 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2961,8 +2961,11 @@ decode_mode_spec (w, c, maxwidth) | |||
| 2961 | return "-"; | 2961 | return "-"; |
| 2962 | 2962 | ||
| 2963 | case '+': | 2963 | case '+': |
| 2964 | /* This differs from %* only for a modified read-only buffer. */ | ||
| 2964 | if (MODIFF > current_buffer->save_modified) | 2965 | if (MODIFF > current_buffer->save_modified) |
| 2965 | return "*"; | 2966 | return "*"; |
| 2967 | if (!NILP (current_buffer->read_only)) | ||
| 2968 | return "%"; | ||
| 2966 | return "-"; | 2969 | return "-"; |
| 2967 | 2970 | ||
| 2968 | case 's': | 2971 | case 's': |