]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fgarbage_collect): Doc fix.
authorRichard M. Stallman <rms@gnu.org>
Mon, 7 Jul 2003 20:39:40 +0000 (20:39 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 7 Jul 2003 20:39:40 +0000 (20:39 +0000)
src/alloc.c

index 169d292c1b335b8575422593c13ce84b41b44bfa..c31132820bbc096b7b5fab3e5e13f85941c697b9 100644 (file)
@@ -4255,13 +4255,15 @@ inhibit_garbage_collection ()
 
 DEFUN ("garbage-collect", Fgarbage_collect, Sgarbage_collect, 0, 0, "",
        doc: /* Reclaim storage for Lisp objects no longer needed.
-Returns info on amount of space in use:
+Garbage collection happens automatically if you cons more than
+`gc-cons-threshold' bytes of Lisp data since previous garbage collection.
+`garbage-collect' normally returns a list with info on amount of space in use:
  ((USED-CONSES . FREE-CONSES) (USED-SYMS . FREE-SYMS)
   (USED-MARKERS . FREE-MARKERS) USED-STRING-CHARS USED-VECTOR-SLOTS
   (USED-FLOATS . FREE-FLOATS) (USED-INTERVALS . FREE-INTERVALS)
   (USED-STRINGS . FREE-STRINGS))
-Garbage collection happens automatically if you cons more than
-`gc-cons-threshold' bytes of Lisp data since previous garbage collection.  */)
+However, if there was overflow in pure space, `garbage-collect'
+returns nil, because real GC can't be done.  */)
      ()
 {
   register struct specbinding *bind;