From 64c333303ce41c4d014d676ff4cbeeb887506c9e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 10 Jul 2014 21:19:37 +0300 Subject: [PATCH] lisp/files.el (warn-maybe-out-of-memory): Fix the wording of the warning. --- lisp/ChangeLog | 5 +++++ lisp/files.el | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ffb1eee945e..4e19be4d3ea 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-07-10 Eli Zaretskii + + * files.el (warn-maybe-out-of-memory): Fix the wording of the + warning. + 2014-07-10 Dmitry Antipov * files.el (warn-maybe-out-of-memory): New function. diff --git a/lisp/files.el b/lisp/files.el index 1d3ffe81b99..258a37616c1 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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))))))))) -- 2.39.5