[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: docs for insert-file-contents use 'bytes'
From: |
Ted Zlatanov |
Subject: |
Re: docs for insert-file-contents use 'bytes' |
Date: |
Thu, 02 Oct 2008 08:42:09 -0500 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) |
On Thu, 02 Oct 2008 10:33:49 +0900 Kenichi Handa <address@hidden> wrote:
KH> In article <address@hidden>, Ted Zlatanov <address@hidden> writes:
>> That's fine. I would just seek back N bytes and resynchronize (see
>> above). I could also make the mode only work with bytes, bypassing
>> encoding schemes. This would be a good thing, actually, for cases where
>> the user might page or search through many megabytes of data quickly.
KH> How about reading a file in a unibyte buffer with
KH> no-conversion, and decode one page by one into a view
KH> buffer. Except for UTF-16 encoding, it is safe to set the
KH> decoding boundary at newline positions.
That could work, but I'd have to grab more than one page every time, so
the math could get tricky. I'll have to play with this when it comes up
on my TODO list :)
Thanks
Ted