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: `decode-coding-string' question Date: Thu, 06 Jul 2006 10:08:17 +0900 Message-ID: References: <200607040035.01379.pogonyshev@gmx.net> <200607041831.18435.pogonyshev@gmx.net> <200607051911.45299.pogonyshev@gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1152148149 29103 80.91.229.2 (6 Jul 2006 01:09:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Jul 2006 01:09:09 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 06 03:09:07 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FyIMc-0008Ku-P3 for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 03:09:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyIMc-00011o-4i for ged-emacs-devel@m.gmane.org; Wed, 05 Jul 2006 21:09:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FyIMP-00011b-UX for emacs-devel@gnu.org; Wed, 05 Jul 2006 21:08:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FyIMO-00011P-0S for emacs-devel@gnu.org; Wed, 05 Jul 2006 21:08:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyIMN-00011M-Rc for emacs-devel@gnu.org; Wed, 05 Jul 2006 21:08:51 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FyIMS-0001l1-GI for emacs-devel@gnu.org; Wed, 05 Jul 2006 21:08:56 -0400 Original-Received: from smtp3.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k6618kbC007162; Thu, 6 Jul 2006 10:08:46 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id k6618jIH024159; Thu, 6 Jul 2006 10:08:45 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1FyILp-00059H-00; Thu, 06 Jul 2006 10:08:17 +0900 Original-To: Paul Pogonyshev In-reply-to: <200607051911.45299.pogonyshev@gmx.net> (message from Paul Pogonyshev on Wed, 5 Jul 2006 19:11:45 +0300) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:56611 Archived-At: In article <200607051911.45299.pogonyshev@gmx.net>, Paul Pogonyshev writes: >> Why don't you find paticular characters in the decoded >> string? > I do. But I need to know where they begin in the buffer (containing > the encoded C string.) I don't see a way to keep this information at > present... :( How did you make that buffer? Why don't you have an already-decoded text in that buffer? > For instance, if the buffer only contains "\xc2\xa9foo", I'd like > to receive a string with the following text properties: > #("=A9foo" 0 1 (point 0) 1 2 (point 8) 2 3 (point 9) 3 4 (point 10)) > The first characters actually takes 8 characters in the buffer! They are just displayed by 8 characters, as well as, a control character, say Formfeed (C-l), is displayed by 2 characters "^L". --- Kenichi Handa handa@m17n.org