Viewing a file in emacs that exceeds the maximum buffer size

Can I view part of a file at a time? BTW I'm on 64-bit Ubuntu

+7
max emacs large-files size buffer
source share
2 answers

From comp.emacs :

You can download only part of a file with: insert-file-contents-literally and: insert file-contents

and you can save part of the buffer with: append-to-file and: write-region

You can pass an integer search position to the record register to add a parameter to update the record in the middle of the file.

You may be able to install the 64-bit Emacs package (or create one yourself) to increase the buffer size limit to about a million terabytes.

+6
source share

Not really, no. See VLF and EmacsFileSizeLimit for a discussion.

Not to be a wise guy, but maybe you should think about whether you really want to look at the giant file in the editor. Can you get what you want to do using grep (possibly with extra context lines) or sed if this is one time, or a simple script if you are going to do it all over again?

+5
source share

All Articles