comparison src/xdisp.c @ 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 e1958b89aa88
children 1c42688133ee
comparison
equal deleted inserted replaced
8123:0c56ff6c4742 8124:d3c0876a550c
2959 if (MODIFF > current_buffer->save_modified) 2959 if (MODIFF > current_buffer->save_modified)
2960 return "*"; 2960 return "*";
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':
2969 /* status of process */ 2972 /* status of process */
2970 obj = Fget_buffer_process (Fcurrent_buffer ()); 2973 obj = Fget_buffer_process (Fcurrent_buffer ());