summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-07-30 20:36:56 +0000
committerRichard M. Stallman <rms@gnu.org>1994-07-30 20:36:56 +0000
commit0d9d14a5bec5a89cfa3fadcdbaec571de899c42a (patch)
treec2ebd838453b35b4d2d3a12839a3e2cdd1491cab
parente854d39a4930cd6223d3bad77fe9aaf413b1dab2 (diff)
downloademacs-0d9d14a5bec5a89cfa3fadcdbaec571de899c42a.tar.gz
(decode_mode_spec): Handle %&.
-rw-r--r--src/xdisp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 88f9e9c55cd..edb2f7caacd 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -2968,6 +2968,12 @@ decode_mode_spec (w, c, maxwidth)
return "%";
return "-";
+ case '&':
+ /* This differs from %* in ignoring read-only-ness. */
+ if (MODIFF > current_buffer->save_modified)
+ return "*";
+ return "-";
+
case 's':
/* status of process */
obj = Fget_buffer_process (Fcurrent_buffer ());