unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Andreas Roehler <andreas.roehler@online.de>
Subject: Re: Reading huge files
Date: Tue, 09 Jan 2007 21:42:11 +0100	[thread overview]
Message-ID: <eo0u9a$n9p$1@online.de> (raw)
In-Reply-To: mailman.2897.1168356311.2155.help-gnu-emacs@gnu.org

Kevin Rodgers wrote:

> 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.
> 

Think it should be possible to have an ed-mode.

Until then, opening a file into `ed' from an emacs-shell
seems much more convenient than calling it from bash or
so.

__
Andreas Roehler

  parent reply	other threads:[~2007-01-09 20:42 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-08 22:17 Reading huge files Leonid Grinberg
2007-01-09 15:24 ` Kevin Rodgers
2007-01-09 22:03   ` Eli Zaretskii
2007-01-11  6:30     ` Kevin Rodgers
     [not found]     ` <mailman.2957.1168497037.2155.help-gnu-emacs@gnu.org>
2007-01-11  6:55       ` Stefan Monnier
     [not found]   ` <mailman.2912.1168380222.2155.help-gnu-emacs@gnu.org>
2007-01-09 23:29     ` Mathias Dahl
2007-01-10  0:14       ` Leonid Grinberg
     [not found]       ` <mailman.2922.1168388054.2155.help-gnu-emacs@gnu.org>
2007-01-10  0:23         ` Mathias Dahl
2007-01-10  4:11       ` Eli Zaretskii
     [not found]       ` <mailman.2923.1168402283.2155.help-gnu-emacs@gnu.org>
2007-01-10  7:39         ` Mathias Dahl
2007-01-10 20:27           ` Eli Zaretskii
     [not found]           ` <mailman.2938.1168460877.2155.help-gnu-emacs@gnu.org>
2007-01-10 22:33             ` Giorgos Keramidas
2007-01-11  5:54       ` Stefan Monnier
2007-01-11  9:49         ` Mathias Dahl
2007-01-11 18:06           ` Markus Triska
2007-01-12  8:36             ` Mathias Dahl
     [not found] ` <mailman.2897.1168356311.2155.help-gnu-emacs@gnu.org>
2007-01-09 20:42   ` Andreas Roehler [this message]
2007-01-09 20:42   ` Andreas Roehler

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='eo0u9a$n9p$1@online.de' \
    --to=andreas.roehler@online.de \
    /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).