From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: `decode-coding-string' question Date: Thu, 6 Jul 2006 18:52:28 +0300 Message-ID: <200607061852.28566.pogonyshev@gmx.net> References: <200607040035.01379.pogonyshev@gmx.net> <200607051911.45299.pogonyshev@gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1152202150 4327 80.91.229.2 (6 Jul 2006 16:09:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Jul 2006 16:09:10 +0000 (UTC) Cc: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 06 18:09:08 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 1FyWP7-0001vk-Di for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 18:08:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyWP6-0000Sa-UW for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 12:08:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FyWNT-0008AK-Fg for emacs-devel@gnu.org; Thu, 06 Jul 2006 12:06:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FyWNR-00088n-KF for emacs-devel@gnu.org; Thu, 06 Jul 2006 12:06:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyWNR-00088Q-4J for emacs-devel@gnu.org; Thu, 06 Jul 2006 12:06:53 -0400 Original-Received: from [213.165.64.21] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1FyWNe-00048P-Co for emacs-devel@gnu.org; Thu, 06 Jul 2006 12:07:06 -0400 Original-Received: (qmail invoked by alias); 06 Jul 2006 16:06:50 -0000 Original-Received: from unknown (EHLO [194.158.222.33]) [194.158.222.33] by mail.gmx.net (mp028) with SMTP; 06 Jul 2006 18:06:50 +0200 X-Authenticated: #16844820 Original-To: emacs-devel@gnu.org User-Agent: KMail/1.7.2 In-Reply-To: Content-Disposition: inline X-Y-GMX-Trusted: 0 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:56642 Archived-At: Kenichi Handa wrote: > In article <200607051911.45299.pogonyshev@gmx.net>, Paul Pogonyshev writes: >=20 > >> Why don't you find paticular characters in the decoded > >> string? >=20 > > 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... :( >=20 > How did you make that buffer? Why don't you have an > already-decoded text in that buffer? Because it's a C source file. Strings have to be encoded there. > > For instance, if the buffer only contains "\xc2\xa9foo", I'd like > > to receive a string with the following text properties: >=20 > > #("=A9foo" 0 1 (point 0) 1 2 (point 8) 2 3 (point 9) 3 4 (point 10)) >=20 > > The first characters actually takes 8 characters in the buffer! >=20 > They are just displayed by 8 characters, as well as, a > control character, say Formfeed (C-l), is displayed by 2 > characters "^L". They are 8 different characters in the buffer. Paul