Author: Kevin RodgersKevin Rodgers Date: Jan 9, 2007 07:24
Leonid Grinberg wrote:
> I need to read a file, which contains approximately 1.2GB of data.
> Obviously, this is well above the maximum buffer limit. Is there any
> way for me to read it without
>
> 1) breaking it up into smaller files and
> 2) using a different editor
Not that I'm aware of. You could cook up something like:
(defun view-large-file-contents (file beg end)
"View FILE contents from bytes BEG through END, in View mode."
(interactive "fView file: \nnFrom byte: \nnTo byte: ")
(switch-to-buffer
(generate-new-buffer (format "%%s[%%d,%%d]"
(file-name-nondirectory file) beg end)))
(insert-file-contents file nil beg end)
(view-mode 1))
> I am using GNU Emacs 21.4.1 on Ubuntu Edgy Eft on a Dell Latitude C600
> with 256MB of memory.
|