From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: docs for insert-file-contents use 'bytes' Date: Thu, 02 Oct 2008 10:58:47 +0900 Message-ID: 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 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1222912746 7320 80.91.229.12 (2 Oct 2008 01:59:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2008 01:59:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 02 04:00:03 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 1KlDU2-0005TG-Qx for ged-emacs-devel@m.gmane.org; Thu, 02 Oct 2008 04:00:03 +0200 Original-Received: from localhost ([127.0.0.1]:46206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlDSz-0003v4-Sp for ged-emacs-devel@m.gmane.org; Wed, 01 Oct 2008 21:58:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KlDSu-0003t0-Rz for emacs-devel@gnu.org; Wed, 01 Oct 2008 21:58:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KlDSt-0003rs-Tb for emacs-devel@gnu.org; Wed, 01 Oct 2008 21:58:52 -0400 Original-Received: from [199.232.76.173] (port=36985 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlDSt-0003ri-Oj for emacs-devel@gnu.org; Wed, 01 Oct 2008 21:58:51 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:49550) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KlDSt-0007O3-4o for emacs-devel@gnu.org; Wed, 01 Oct 2008 21:58:51 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m921wmtb007997; Thu, 2 Oct 2008 10:58:48 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m921wmM7018435; Thu, 2 Oct 2008 10:58:48 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id m921wlvc027144; Thu, 2 Oct 2008 10:58:47 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1KlDSp-00039b-Qx; Thu, 02 Oct 2008 10:58:47 +0900 In-reply-to: <868wt845op.fsf@lifelogs.com> (message from Ted Zlatanov on Wed, 01 Oct 2008 11:54:14 -0500) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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:104289 Archived-At: 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. How about reading a file in a unibyte buffer with no-conversion, and decode one page by one into a view buffer. Except for UTF-16 encoding, it is safe to set the decoding boundary at newline positions. --- Kenichi Handa handa@ni.aist.go.jp