From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harish Narayanan Newsgroups: gmane.emacs.help Subject: Re: Maximum buffer size exceeded Date: Tue, 04 May 2004 23:26:17 -0400 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <40985ED9.5050202@gamebox.net> References: <7iekpzljjq.fsf@neoscale.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1083727790 15919 80.91.224.253 (5 May 2004 03:29:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 May 2004 03:29:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 05 05:29:42 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BLD6M-0000rv-00 for ; Wed, 05 May 2004 05:29:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLD5c-0005JG-K0 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2004 23:28:56 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BLD4w-0004gA-4I for help-gnu-emacs@gnu.org; Tue, 04 May 2004 23:28:14 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BLD3J-0002vG-LX for help-gnu-emacs@gnu.org; Tue, 04 May 2004 23:27:05 -0400 Original-Received: from [38.113.3.51] (helo=snickers.hotpop.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLD3E-0002mn-2H for help-gnu-emacs@gnu.org; Tue, 04 May 2004 23:26:28 -0400 Original-Received: from gamebox.net (kubrick.hotpop.com [38.113.3.103]) by snickers.hotpop.com (Postfix) with SMTP id D4D187315F for ; Wed, 5 May 2004 02:38:54 +0000 (UTC) Original-Received: from [192.168.0.101] (bgp997591bgs.nanarb01.mi.comcast.net [68.40.58.58]) by smtp-3.hotpop.com (Postfix) with ESMTP id 55569F4B63F; Wed, 5 May 2004 03:11:15 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: Kin Cho In-Reply-To: <7iekpzljjq.fsf@neoscale.com> X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18254 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18254 Thanks Kin. I do things like that when I need to edit the last or first few lines. What if the portions I need edited are at some arbitrary line numbers in the middle? I don't always know exactly where they will be. Harish Kin Cho wrote: >Harish Narayanan writes: > > > >>I've been trying to open a large file (208 MB) but I receive the >>error "Maximum buffer size exceeded" and Emacs fails to open the >>file. This is Emacs 21.2.1 on a Redhat GNU/Linux 9 box. >> >>I tried searching in the archives, and noticed this has been >>asked before, but the responses don't seem encouraging. Is there >>a way of working around this that's arisen in the recent past? >> >> > >Use head/tail/dd to extract the small part of the file you want >to edit, edit that small file, then use cat/head/tail/dd to put >it back into your original file. > >Let's say you want to edit the last line of the file 208MB, which >is 1 million lines long: > >tail -1 208MB > foo >emacs foo >(head -999999 208MB; cat foo) > new-208MB > >-kin > >_______________________________________________ >Help-gnu-emacs mailing list >Help-gnu-emacs@gnu.org >http://mail.gnu.org/mailman/listinfo/help-gnu-emacs > > >