From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: warn-maybe-out-of-memory Date: Thu, 10 Jul 2014 21:23:32 +0300 Message-ID: <83egxtax97.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1405016644 20949 80.91.229.3 (10 Jul 2014 18:24:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2014 18:24:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 10 20:23:55 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X5J0a-0006XI-Ii for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2014 20:23:52 +0200 Original-Received: from localhost ([::1]:39545 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5J0a-0005gu-44 for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2014 14:23:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5J0N-0005fa-FL for emacs-devel@gnu.org; Thu, 10 Jul 2014 14:23:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5J0E-000787-Tl for emacs-devel@gnu.org; Thu, 10 Jul 2014 14:23:39 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:38608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5J0E-00077w-LH for emacs-devel@gnu.org; Thu, 10 Jul 2014 14:23:30 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N8I00F00DEHC600@mtaout29.012.net.il> for emacs-devel@gnu.org; Thu, 10 Jul 2014 21:23:28 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N8I00FFYDR3J610@mtaout29.012.net.il>; Thu, 10 Jul 2014 21:23:28 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172940 Archived-At: I wonder if this function should only warn when it is called from commands invoked by the user, as opposed to from a Lisp program. The warning is in find-file-noselect, which AFAIK is widely used in Lisp programs, where displaying this warning might be inappropriate. In addition, the function assumes that visiting a file of size N bytes needs N bytes of memory, which is false: we need more, sometimes much more.