all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Subject: Re: help editing huge files in emacs
Date: Fri, 17 Mar 2006 13:50:16 +0200	[thread overview]
Message-ID: <uy7z9nvd3.fsf@gnu.org> (raw)
In-Reply-To: <87hd605jlx.fsf-monnier+gnu.emacs.help@gnu.org> (message from Stefan Monnier on Wed, 15 Mar 2006 01:09:11 -0500)

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

  parent reply	other threads:[~2006-03-17 11:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.44.1142401192.9686.help-gnu-emacs@gnu.org>
2006-03-15  6:09 ` help editing huge files in emacs Stefan Monnier
2006-03-15 16:16   ` Mathias Dahl
2006-03-17 11:50   ` Eli Zaretskii [this message]
     [not found]   ` <mailman.9.1142596212.3794.help-gnu-emacs@gnu.org>
2006-03-21 16:27     ` Stefan Monnier
2006-03-14 19:10 Jesús Velazquez
2006-03-15 16:03 ` Kevin Rodgers

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uy7z9nvd3.fsf@gnu.org \
    --to=eliz@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.