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: Wed, 01 Oct 2008 09:44:31 +0900 Message-ID: References: <86ljxa67xi.fsf@lifelogs.com> <86hc7y64vm.fsf@lifelogs.com> <8663od68yb.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 1222821894 14028 80.91.229.12 (1 Oct 2008 00:44:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 00:44:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 01 02:45:52 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 1Kkpqd-0005e7-SB for ged-emacs-devel@m.gmane.org; Wed, 01 Oct 2008 02:45:48 +0200 Original-Received: from localhost ([127.0.0.1]:33908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kkppb-0004lX-4O for ged-emacs-devel@m.gmane.org; Tue, 30 Sep 2008 20:44:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KkppW-0004jL-3F for emacs-devel@gnu.org; Tue, 30 Sep 2008 20:44:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KkppU-0004hI-AZ for emacs-devel@gnu.org; Tue, 30 Sep 2008 20:44:37 -0400 Original-Received: from [199.232.76.173] (port=33961 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkppU-0004gz-0k for emacs-devel@gnu.org; Tue, 30 Sep 2008 20:44:36 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:39751) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkppT-00017T-9a for emacs-devel@gnu.org; Tue, 30 Sep 2008 20:44:35 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m910iWCO013527; Wed, 1 Oct 2008 09:44:32 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m910iWtB019630; Wed, 1 Oct 2008 09:44:32 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id m910iVGc004285; Wed, 1 Oct 2008 09:44:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1KkppP-0005vj-S6; Wed, 01 Oct 2008 09:44:31 +0900 In-reply-to: <8663od68yb.fsf@lifelogs.com> (message from Ted Zlatanov on Tue, 30 Sep 2008 08:48:28 -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:104271 Archived-At: In article <8663od68yb.fsf@lifelogs.com>, Ted Zlatanov writes: > There could be a insert-file-decoded-contents that seeks to a byte > position and gets the next character at or after that position. That's > not too hard to implement and it's fast. It's not that easy. Some encoding requires to seek back an escape sequence to get the next character. And, for UTF-16 with BOM, we have to check the first 2-byte. --- Kenichi Handa handa@ni.aist.go.jp