help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help editing huge files in emacs


From: Eli Zaretskii
Subject: Re: help editing huge files in emacs
Date: Fri, 17 Mar 2006 13:50:16 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Wed, 15 Mar 2006 01:09:11 -0500
> 
> > How can I edit a selected number of lines in a 4GB file in Emacs
> > without open the whole file? Is it possible?
> 
> `insert-file-contents' takes two integer parameters BEG and END to allow
> getting only part of a file into a buffer.  The corresponding `write-region'
> takes an APPEND parameter which can be an integer indicating at which
> position in the file the text should be written.

??? But aren't those parameters limited to EMACS_INT max values,
i.e. to the same number of less-than-32 bits that limits the maximum
size of an Emacs buffer?  Or am I missing something?

If I'm right, then editing of a 4GB file using your suggestions is
possible only in a 64-bit build of Emacs.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]