From: Michael Welsh Duggan <md5i@cs.cmu.edu>
Cc: help-gnu-emacs@gnu.org, Kin Cho <ignore-this-prefixkin@techie.com>
Subject: Re: Maximum buffer size exceeded
Date: Wed, 05 May 2004 13:16:27 -0400 [thread overview]
Message-ID: <87isfan6ac.fsf@cs.cmu.edu> (raw)
In-Reply-To: <mailman.3382.1083727713.1061.help-gnu-emacs@gnu.org> (Harish Narayanan's message of "Tue, 04 May 2004 23:26:17 -0400")
Harish Narayanan <harish@gamebox.net> 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.
> Kin Cho wrote:
>
>>Harish Narayanan <harish@gamebox.net> 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 Welsh Duggan
(md5i@cs.cmu.edu)
next prev parent reply other threads:[~2004-05-05 17:16 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3364.1083718441.1061.help-gnu-emacs@gnu.org>
2004-05-05 2:00 ` Maximum buffer size exceeded Kin Cho
2004-05-05 3:26 ` Harish Narayanan
[not found] ` <mailman.3382.1083727713.1061.help-gnu-emacs@gnu.org>
2004-05-05 5:18 ` Kin Cho
2004-05-05 9:36 ` Thien-Thi Nguyen
2004-05-05 5:53 ` Marco Gidde
2004-05-05 11:22 ` Eli Zaretskii
[not found] ` <mailman.3431.1083752452.1061.help-gnu-emacs@gnu.org>
2004-05-05 11:45 ` Marco Gidde
2004-05-06 6:26 ` Eli Zaretskii
[not found] ` <mailman.3625.1083821602.1061.help-gnu-emacs@gnu.org>
2004-05-06 8:21 ` Marco Gidde
2004-05-06 12:12 ` Thien-Thi Nguyen
2004-05-05 15:56 ` Miles Bader
2004-05-05 19:35 ` Stefan Monnier
2004-05-06 6:30 ` Eli Zaretskii
2004-05-05 17:16 ` Michael Welsh Duggan [this message]
[not found] ` <mailman.3511.1083777609.1061.help-gnu-emacs@gnu.org>
2004-05-05 19:37 ` upro
2004-05-05 5:50 ` Matthieu Moy
2004-05-05 19:31 ` Stefan Monnier
2007-09-02 6:44 maximum " Daniel C. Bastos
2007-09-02 11:59 ` Emilio Lopes
2007-09-02 21:39 ` Daniel C. Bastos
2007-09-03 8:18 ` Tim X
2007-09-03 12:52 ` Daniel C. Bastos
2007-09-03 19:24 ` Eli Zaretskii
2007-09-04 11:07 ` Johan Bockgård
[not found] ` <mailman.254.1188847491.18990.help-gnu-emacs@gnu.org>
2007-09-04 12:13 ` Giorgos Keramidas
2007-09-04 14:48 ` Peter Dyballa
[not found] ` <mailman.308.1188917334.18990.help-gnu-emacs@gnu.org>
2007-09-04 18:13 ` Emilio Lopes
2007-09-04 19:10 ` Giorgos Keramidas
2007-09-04 20:22 ` Eli Zaretskii
2007-09-05 12:37 ` Kim F. Storm
2007-09-05 15:00 ` Stefan Monnier
2007-09-05 15:14 ` Jason Rumney
2007-09-05 16:08 ` Stefan Monnier
2007-09-06 4:59 ` Richard Stallman
2007-09-06 5:44 ` David Kastrup
2007-09-02 19:24 ` Eli Zaretskii
2007-09-03 23:25 ` Glenn Morris
2007-09-04 8:20 ` Tim X
2007-09-04 17:31 ` Glenn Morris
2007-09-05 8:20 ` Tim X
2007-09-04 17:53 ` Daniel C. Bastos
-- strict thread matches above, loose matches on Subject: below --
2004-05-05 0:52 Maximum " Harish Narayanan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87isfan6ac.fsf@cs.cmu.edu \
--to=md5i@cs.cmu.edu \
--cc=help-gnu-emacs@gnu.org \
--cc=ignore-this-prefixkin@techie.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).