aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorKaroly Lorentey2005-05-16 15:49:27 +0000
committerKaroly Lorentey2005-05-16 15:49:27 +0000
commit35bc5d82600f330082298823f09f53259a90ea81 (patch)
tree328e8f1df7bcd3cb68f4dfa7de371543da885c89 /src/alloc.c
parent133fe4c8a2d944324dc2c9a42b01ab1d258ad49d (diff)
parentcc211a0ff8145e0814413e237bb5674d615968b7 (diff)
downloademacs-35bc5d82600f330082298823f09f53259a90ea81.tar.gz
emacs-35bc5d82600f330082298823f09f53259a90ea81.zip
Merged from miles@gnu.org--gnu-2005 (patch 307-312)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-307 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-308 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-309 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-310 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-311 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-312 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-346
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 43db28e08a0..35ce8a5cfa1 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -535,6 +535,12 @@ memory_full ()
535 Fsignal (Qnil, Vmemory_signal_data); 535 Fsignal (Qnil, Vmemory_signal_data);
536} 536}
537 537
538DEFUN ("memory-full-p", Fmemory_full_p, Smemory_full_p, 0, 0, 0,
539 doc: /* t if memory is nearly full, nil otherwise. */)
540 ()
541{
542 return (spare_memory ? Qnil : Qt);
543}
538 544
539/* Called if we can't allocate relocatable space for a buffer. */ 545/* Called if we can't allocate relocatable space for a buffer. */
540 546
@@ -6080,6 +6086,7 @@ The time is in seconds as a floating point value. */);
6080 DEFVAR_INT ("gcs-done", &gcs_done, 6086 DEFVAR_INT ("gcs-done", &gcs_done,
6081 doc: /* Accumulated number of garbage collections done. */); 6087 doc: /* Accumulated number of garbage collections done. */);
6082 6088
6089 defsubr (&Smemory_full_p);
6083 defsubr (&Scons); 6090 defsubr (&Scons);
6084 defsubr (&Slist); 6091 defsubr (&Slist);
6085 defsubr (&Svector); 6092 defsubr (&Svector);