From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: docs for insert-file-contents use 'bytes' Date: Thu, 02 Oct 2008 08:42:09 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <864p3v2jwt.fsf@lifelogs.com> References: <86ljxa67xi.fsf@lifelogs.com> <86hc7y64vm.fsf@lifelogs.com> <8663od68yb.fsf@lifelogs.com> <868wt845op.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222954971 31141 80.91.229.12 (2 Oct 2008 13:42:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2008 13:42:51 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 02 15:43:49 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KlOSu-0001Ca-9s for ged-emacs-devel@m.gmane.org; Thu, 02 Oct 2008 15:43:36 +0200 Original-Received: from localhost ([127.0.0.1]:53338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlORr-0002y1-CP for ged-emacs-devel@m.gmane.org; Thu, 02 Oct 2008 09:42:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KlORm-0002wo-9k for emacs-devel@gnu.org; Thu, 02 Oct 2008 09:42:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KlORk-0002vm-FZ for emacs-devel@gnu.org; Thu, 02 Oct 2008 09:42:25 -0400 Original-Received: from [199.232.76.173] (port=39171 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlORk-0002vj-Ap for emacs-devel@gnu.org; Thu, 02 Oct 2008 09:42:24 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:37073 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KlORj-0006B2-FZ for emacs-devel@gnu.org; Thu, 02 Oct 2008 09:42:23 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KlORd-0000jB-Bh for emacs-devel@gnu.org; Thu, 02 Oct 2008 13:42:19 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Oct 2008 13:42:17 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Oct 2008 13:42:17 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:RR7nb17BdgxmIQ09uVUkax+qOYs= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104302 Archived-At: On Thu, 02 Oct 2008 10:33:49 +0900 Kenichi Handa wrote: KH> In article <868wt845op.fsf@lifelogs.com>, Ted Zlatanov 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