Commit 64c33330 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

lisp/files.el (warn-maybe-out-of-memory): Fix the wording of the warning.

parent 53dc1728
2014-07-10 Eli Zaretskii <eliz@gnu.org>
* files.el (warn-maybe-out-of-memory): Fix the wording of the
warning.
2014-07-10 Dmitry Antipov <dmantipov@yandex.ru>
 
* files.el (warn-maybe-out-of-memory): New function.
......
......@@ -1804,10 +1804,10 @@ OP-TYPE specifies the file operation being performed (for message to user)."
(let ((total-free-memory (+ (nth 1 meminfo) (nth 3 meminfo))))
(when (> (/ size 1024) total-free-memory)
(warn
"You are trying to open file which size (%s)
exceeds an amount of available free memory (%s). If that
fails, try to open it with `find-file-literally' (but note
that some characters may be displayed incorrectly)."
"You are trying to open a file whose size (%s)
exceeds the amount of currently available free memory (%s).
If that fails, try to open it with `find-file-literally'
\(but note that some characters might be displayed incorrectly)."
(file-size-human-readable size)
(file-size-human-readable
(* (float total-free-memory) 1024)))))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment