changeset 1362:4bea5980f778

* alloc.c (Fmemory_limit): Explain why we divide by 1024. Don't bother trying to display the size in the minibuffer.
author Jim Blandy <jimb@redhat.com>
date Wed, 07 Oct 1992 20:42:40 +0000
parents a45cf4b36ce9
children f34d8e4d1d7b
files src/alloc.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Wed Oct 07 19:46:04 1992 +0000
+++ b/src/alloc.c	Wed Oct 07 20:42:40 1992 +0000
@@ -2015,15 +2015,12 @@
 DEFUN ("memory-limit", Fmemory_limit, Smemory_limit, 0, 0, "",
   "Return the address of the last byte Emacs has allocated, divided by 1024.\n\
 This may be helpful in debugging Emacs's memory usage.\n\
-If called interactively, print the result in the minibuffer.")
+The value is divided by 1024 to make sure it will fit in a lisp integer.")
   ()
 {
   Lisp_Object end;
 
-  XSET (end, Lisp_Int, (int) sbrk (0));
-
-  if (! NILP (Finteractive_p))
-    message ("Memory limit at %dk.", XINT (end));
+  XSET (end, Lisp_Int, (int) sbrk (0) / 1024);
 
   return end;
 }