From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: opening large files (few hundred meg) Date: Tue, 29 Jan 2008 22:44:10 +0200 Message-ID: References: <1f94fef6-a335-4ce5-8d4b-7e87025a28dc@e32g2000prn.googlegroups.com> <87r6g1esga.fsf@gmx.de> <2adae7bb-c775-4a6e-bf83-66a8618b326d@s12g2000prg.googlegroups.com> <87ejc1m21x.fsf@lion.rapttech.com.au> <36295bce-c40b-4faf-ae7d-04eb90796da8@q39g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1201639499 19077 80.91.229.12 (29 Jan 2008 20:44:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jan 2008 20:44:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 29 21:45:20 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JJxKR-0000Gs-2B for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jan 2008 21:45:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJxK0-0007Gl-3M for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jan 2008 15:44:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJxJk-0007G0-4u for help-gnu-emacs@gnu.org; Tue, 29 Jan 2008 15:44:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJxJi-0007Fn-7i for help-gnu-emacs@gnu.org; Tue, 29 Jan 2008 15:44:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJxJi-0007Fk-0e for help-gnu-emacs@gnu.org; Tue, 29 Jan 2008 15:44:26 -0500 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJxJh-0007tu-Or for help-gnu-emacs@gnu.org; Tue, 29 Jan 2008 15:44:26 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-194-208.inter.net.il [83.130.194.208]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id IZX19522 (AUTH halo1); Tue, 29 Jan 2008 22:41:40 +0200 (IST) In-reply-to: (message from Tom Tromey on Tue, 29 Jan 2008 12:06:50 -0700) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51068 Archived-At: > From: Tom Tromey > Date: Tue, 29 Jan 2008 12:06:50 -0700 > > Perhaps you could process the file in chunks, using the optional args > to insert-file-contents to put subsets of the file into a buffer. > > I haven't tried this myself, so I am not even sure it would work. No need to try: it won't work. As I wrote earlier in this thread, the problem is that Emacs cannot address offsets into the buffer larger than 0.5 gig, and this problem will cause the arguments to insert-file-contents to overflow exactly like when you read the entire file.