aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1992-10-07 20:42:40 +0000
committerJim Blandy <[email protected]>1992-10-07 20:42:40 +0000
commit0d73ca8156c17b1174576108a99bed4fe1b46719 (patch)
tree9ecd4aebe3ea10f3d6f77eb8eacb0cc5083a19fe /src/alloc.c
parent5bf3eac4a6c10e331e08b5d62c98ae95c3648fd2 (diff)
* alloc.c (Fmemory_limit): Explain why we divide by 1024.
Don't bother trying to display the size in the minibuffer.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c
index dcdbd65d85..9f5cdd0822 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -2015,15 +2015,12 @@ compact_strings ()
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;
}