1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

* src/alloc.c (Fmemory_info) [HAVE_LINUX_SYSINFO]: Return nil if

sysinfo failed.  Adjust docstring.
* doc/lispref/internals.texi (Garbage Collection): Mention memory-info.
* lisp/files.el (out-of-memory-warning-percentage): New defcustom.
(warn-maybe-out-of-memory): Use it.
This commit is contained in:
Dmitry Antipov 2014-07-11 16:19:58 +04:00
parent 5f7c30e757
commit 3aa96ff51e
6 changed files with 39 additions and 9 deletions

View file

@ -1,3 +1,7 @@
2014-07-11 Dmitry Antipov <dmantipov@yandex.ru>
* internals.texi (Garbage Collection): Mention memory-info.
2014-07-11 Michael Albinus <michael.albinus@gmx.de>
* minibuf.texi (Intro to Minibuffers, Reading a Password):

View file

@ -513,6 +513,10 @@ created in this Emacs session. Each of these counters increments for
a certain kind of object. See the documentation string for details.
@end defun
@defun memory-info
This functions returns an amount of total system memory and how much
of it is free. On an unsupported system, the value may be @code{nil}.
@defvar gcs-done
This variable contains the total number of garbage collections
done so far in this Emacs session.