From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: Reading portions of large files Date: Fri, 10 Jan 2003 22:21:05 +0300 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <2561-Fri10Jan2003222104+0200-eliz@is.elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1042230394 25320 80.91.224.249 (10 Jan 2003 20:26:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 10 Jan 2003 20:26:34 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18X5jD-0006Z6-00 for ; Fri, 10 Jan 2003 21:26:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18X5ig-0007VJ-02 for gnu-help-gnu-emacs@m.gmane.org; Fri, 10 Jan 2003 15:25:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18X5hy-0006fL-00 for help-gnu-emacs@gnu.org; Fri, 10 Jan 2003 15:24:50 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18X5hU-0005a3-00 for help-gnu-emacs@gnu.org; Fri, 10 Jan 2003 15:24:21 -0500 Original-Received: from aragorn.inter.net.il ([192.114.186.23]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18X5hI-00057F-00 for help-gnu-emacs@gnu.org; Fri, 10 Jan 2003 15:24:08 -0500 Original-Received: from zaretsky ([80.230.85.156]) by aragorn.inter.net.il (Mirapoint Messaging Server MOS 3.2.1-GA) with ESMTP id ACK66529; Fri, 10 Jan 2003 22:24:02 +0200 (IST) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from David Kastrup on 09 Jan 2003 19:20:06 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5338 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5338 > From: David Kastrup > Newsgroups: gnu.emacs.help > Date: 09 Jan 2003 19:20:06 +0100 > > > I have very large files, sometimes over 1G, from which I would like to edit > > very small portions, the headers or trailers for example. Emacs won't open > > those files, it complains about them being too big. Is it possible to > > edit, and save back after editing, only small portions of such files. > > insert-file-contents is a built-in function. > (insert-file-contents FILENAME &optional VISIT BEG END REPLACE) I don't think this will help the OP, since BEG and END need to be representable as Lisp integers, so they still are subject to the same 128-MB limit.