From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.devel Subject: Re: problem of display property [Re: list-charset-chars and unicode-bmp] Date: 31 Jan 2003 13:21:53 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87u1g3atvf.fsf@mimuw.edu.pl> <200301210831.RAA03126@etlken.m17n.org> <871y35kej4.fsf@mimuw.edu.pl> <200301281129.UAA16158@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 1044019674 13511 80.91.224.249 (31 Jan 2003 13:27:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2003 13:27:54 +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 18ebCy-0003Vm-00 for ; Fri, 31 Jan 2003 14:27:52 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18ebJ8-00082k-00 for ; Fri, 31 Jan 2003 14:34:14 +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 18ebCW-0006ri-05 for emacs-devel@quimby.gnus.org; Fri, 31 Jan 2003 08:27:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ebBK-0005V7-00 for emacs-devel@gnu.org; Fri, 31 Jan 2003 08:26:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18eb9x-0003gE-00 for emacs-devel@gnu.org; Fri, 31 Jan 2003 08:24:54 -0500 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18eb7J-0001QZ-00 for emacs-devel@gnu.org; Fri, 31 Jan 2003 08:22:01 -0500 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.36 #1 (Debian)) id 18eb7B-0007QD-00; Fri, 31 Jan 2003 13:21:53 +0000 Original-To: Kenichi Handa In-Reply-To: <200301281129.UAA16158@etlken.m17n.org> Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-cc: gerd.moellmann@t-online.de 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:11256 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11256 Kenichi Handa writes: > That bug can be reproduced as below. > > (insert "abc" (propertize "." 'display "") "def") > > When you put cursor on `c' and type C-f, the cursor is > placed on `d' instead of `<' of "", but C-x = shows > that point is correctly on "." That's actually not the only issue. Another one in that context was the behaviour if you put a display property on a newline to avoid the table of characters being broken. I haven't followed this, but I think that at least display properties which are strings should work in pretty much the same way as compositions, which seem to be better behaved, and images should probably be likewise. Apart from issues of cursor movement, I think display text properties should be uniquified on insertions the same way as compositions currently are. Thus if you cut and paste an image to duplicate it, you should end up with two copies, not one. This seems much more likely to be what you want than merging the images due to text properties of the adjacent text being the same. (There's currently code in image.el to do that sort of thing when you insert images explicitly with the functions in image.el, but it's not a general mechanism.)