emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature request: view part of file


From: Paul Eggert
Subject: Re: feature request: view part of file
Date: Sat, 19 Jan 2013 02:18:56 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

On 01/18/2013 10:54 PM, Eli Zaretskii wrote:
> It's not a bug, it's a fundamental limitation of how Emacs accesses
> buffers.  Any valid buffer position _must_ fit into the width of an
> Emacs integer.

Sure, but Vitalie's not asking for large buffer positions,
just for large file offsets.  Emac's a bit squirrelly in this
area, as it represents large file offsets by using floating
point numbers, but if it's going to be squirrelly it should
be *consistently* squirrelly, so I installed the attached patch
into the trunk as bzr 111554.

If 64-bit EMACS_INT were the default Vitalie wouldn't have had this
problem.  We have a simple fix (change configure so that --with-wide-int
is the default, see Bug#8794) but this most likely would slow Emacs a bit.
Stefan was skeptical and asked for benchmarks, but maybe
I should boost the priority of this.  Or, more drastically,
maybe we should bite the bullet and add bignums (Bug#8611);
it can't be *that* hard.

Attachment: float-offset.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]