From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gerd.moellmann@t-online.de (Gerd Moellmann) Newsgroups: gmane.emacs.devel Subject: Re: problem of display property [Re: list-charset-chars and unicode-bmp] Date: 29 Jan 2003 13:45:56 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <86el6wunsr.fsf@gerd.free-bsd.org> References: <87u1g3atvf.fsf@mimuw.edu.pl> <200301210831.RAA03126@etlken.m17n.org> <871y35kej4.fsf@mimuw.edu.pl> <200301281129.UAA16158@etlken.m17n.org> <868yx5jvuf.fsf@gerd.free-bsd.org> <200301290739.QAA17357@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043844815 21305 80.91.224.249 (29 Jan 2003 12:53:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 29 Jan 2003 12:53:35 +0000 (UTC) Cc: jsbien@mimuw.edu.pl Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18drid-0005XS-00 for ; Wed, 29 Jan 2003 13:53:31 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18drno-0005pS-00 for ; Wed, 29 Jan 2003 13:58:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18dri7-0006f1-06 for emacs-devel@quimby.gnus.org; Wed, 29 Jan 2003 07:52:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18dreY-0004jk-00 for emacs-devel@gnu.org; Wed, 29 Jan 2003 07:49:18 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18dre3-0004GZ-00 for emacs-devel@gnu.org; Wed, 29 Jan 2003 07:48:49 -0500 Original-Received: from mailout07.sul.t-online.com ([194.25.134.83]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18drbd-0003RP-00 for emacs-devel@gnu.org; Wed, 29 Jan 2003 07:46:18 -0500 Original-Received: from fwd01.sul.t-online.de by mailout07.sul.t-online.com with smtp id 18drbW-0004VU-05; Wed, 29 Jan 2003 13:46:10 +0100 Original-Received: from gerd.free-bsd.org (520015515780-0001@[80.130.119.57]) by fwd01.sul.t-online.com with esmtp id 18drbQ-0h6pNYC; Wed, 29 Jan 2003 13:46:04 +0100 Original-Received: from gerd.free-bsd.org (localhost [127.0.0.1]) by gerd.free-bsd.org (8.12.6/8.12.6) with ESMTP id h0TCk1df000469; Wed, 29 Jan 2003 13:46:02 +0100 (CET) (envelope-from gerd.moellmann@t-online.de) Original-Received: (from gerd@localhost) by gerd.free-bsd.org (8.12.6/8.12.6/Submit) id h0TCjuAD000466; Wed, 29 Jan 2003 13:45:56 +0100 (CET) X-Authentication-Warning: gerd.free-bsd.org: gerd set sender to gerd.moellmann@t-online.de using -f Original-To: Kenichi Handa In-Reply-To: <200301290739.QAA17357@etlken.m17n.org> Original-Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Sender: 520015515780-0001@t-dialin.net Original-cc: d.love@dl.ac.uk Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11190 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11190 Kenichi Handa writes: > The reason why the change looks complicated is to correctly > handle this kind of case where string_buffer_position is > confused by the same string used in display properties. > > (setq s1 "") > (setq s2 "") > (setq c1 (propertize "." 'display s1)) > (setq c2 (propertize "," 'display s2)) > (insert c1 c2 c1 c2 c1 c2) Oh, hm, yes, that's a problem. > Could you check the change and comment again? I can't see anything wrong.