From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: upro Newsgroups: gmane.emacs.help Subject: Re: Maximum buffer size exceeded Date: Wed, 05 May 2004 21:37:04 +0200 Organization: Slackers Home Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87fzaemzrz.fsf@lux99.localhost> References: <7iekpzljjq.fsf@neoscale.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083786557 10421 80.91.224.253 (5 May 2004 19:49:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 May 2004 19:49:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 05 21:49:05 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 1BLSO8-0005eT-01 for ; Wed, 05 May 2004 21:49:05 +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 1BLSNf-0005CH-91 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2004 15:48:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news2.telebyte.nl!fu-berlin.de!uni-berlin.de!195.218.8.95!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 66 Original-NNTP-Posting-Host: 195.218.8.95 Original-X-Trace: news.uni-berlin.de 1083785831 2095631 I 195.218.8.95 ([172438]) Os: Slackware 9.0.0/2.4.21 User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:0k9JB9NR8+MuB1lBhqk628JXt7E= Original-Xref: shelby.stanford.edu gnu.emacs.help:122994 Original-To: help-gnu-emacs@gnu.org 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:18278 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18278 Michael Welsh Duggan writes: > Harish Narayanan writes: > >> 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. > > I had to deal with this recently for some files, as I ended up using > something like "split -C 100m". You can use cat to rejoin them > afterwards. I'm sorry if what I say is wrong but I think to remember that there is a compile-time option which, when set, enables emacs to open larger files than the usual compiled version. Not sure how big though... Greetings, Michael > >> 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 >>> >>> >>> >> >> >> -- Michael r-znvy: zvpunry.wryqra jro.qr (chg gur "@" jurer vg svgf...) ab fcnz cyrnfr