From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: --with-wide-int Date: Mon, 28 Nov 2011 23:35:51 -0800 Organization: UCLA Computer Science Department Message-ID: <4ED48B57.20304@cs.ucla.edu> References: <4ED04BBC.70803@yandex.ru> <4ED09DD4.1090201@cs.ucla.edu> <4ED0F7ED.8050700@yandex.ru> <4ED15672.9030600@cs.ucla.edu> <4ED33EAD.5040104@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322552164 6970 80.91.229.12 (29 Nov 2011 07:36:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2011 07:36:04 +0000 (UTC) Cc: Dmitry Antipov , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 08:36:00 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RVIER-0006S8-AA for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2011 08:35:59 +0100 Original-Received: from localhost ([::1]:44517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVIEQ-0006ky-Ha for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2011 02:35:58 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVIEM-0006kE-QQ for emacs-devel@gnu.org; Tue, 29 Nov 2011 02:35:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVIEL-00086J-SI for emacs-devel@gnu.org; Tue, 29 Nov 2011 02:35:54 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:34192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVIEL-00086C-NA for emacs-devel@gnu.org; Tue, 29 Nov 2011 02:35:53 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 6A33BA60003; Mon, 28 Nov 2011 23:35:51 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZXKlTxCgsawt; Mon, 28 Nov 2011 23:35:51 -0800 (PST) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id E0BCBA60001; Mon, 28 Nov 2011 23:35:50 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 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:146338 Archived-At: On 11/28/11 08:52, Stefan Monnier wrote: > I'd be surprised if non-simple edits (e.g. insertion of enough text to > overflow the gap and force a reallocation) works at all. It'd have to be a bit more complex than that. (insert-char ?\n (1+ (gap-size))) worked just fine on that nearly-2GB file, and I later typed additional randomish text without trouble (this is on 32-bit Emacs configured --with-wide-int). One can easily come up with the more-complex edits that will make Emacs run out of memory editing that file, but these problems are not unknown with a 500 MB limit as well. Users who skate that close to memory's edge already understand that there are limits. It's nicer to have the edge be at 2 GB rather than 500 MB. I typically want just read-only access to large text files, and support for more-complex edits isn't so high a priority.