[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: opening portions of large file
From: |
drkm |
Subject: |
Re: opening portions of large file |
Date: |
Tue, 15 Mar 2005 14:06:06 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) |
Sébastien Kirche <sebastien.kirche.no@spam.free.fr.invalid> writes:
> Is there any mode designed to load a large file by chunks corresponding to
> the displayed buffer (à la UltraEdit-32 in the Windows world) ?
If you just want to open a specific region of a file, it's easy to
write a command to read the filename and the region bounds, an call
`dd(1)' to extract this region into an temporary file, an add
buffer-locally a generated function to `after-save-hook' to use
`dd(1)' to reinject the temporary file in the initial file.
If you want to Emacs decides automatically to use such a technique
depending of the file size, determining itself the chunks size,
displays the size in a transparent way (so the user never see he or
she are editing chunks), guarantees tools like Font Lock, Semantic or
nXML validation code to works well, ..., it's, well, IMHO, a quite
more difficult.
--drkm