changeset 66501:737938f4c826

(decode_mode_spec): Define %e to indicate memory full.
author Richard M. Stallman <rms@gnu.org>
date Fri, 28 Oct 2005 16:27:47 +0000
parents 8392b2926dd8
children dd57bcb034c0
files src/xdisp.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Oct 28 16:26:45 2005 +0000
+++ b/src/xdisp.c	Fri Oct 28 16:27:47 2005 +0000
@@ -17192,6 +17192,19 @@
 	return decode_mode_spec_buf;
       }
 
+    case 'e':
+#ifndef SYSTEM_MALLOC
+      {
+	extern char *spare_memory;
+	if (spare_memory)
+	  return "";
+	else
+	  return "!MEM FULL! ";
+      }
+#else
+      return "";
+#endif
+
     case 'F':
       /* %F displays the frame name.  */
       if (!NILP (f->title))