unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dave Love <d.love@dl.ac.uk>
Cc: jsbien@mimuw.edu.pl
Subject: Re: problem of display property [Re: list-charset-chars and unicode-bmp]
Date: 31 Jan 2003 13:21:53 +0000	[thread overview]
Message-ID: <rzqsmv978um.fsf@albion.dl.ac.uk> (raw)
In-Reply-To: <200301281129.UAA16158@etlken.m17n.org>

Kenichi Handa <handa@m17n.org> writes:

> That bug can be reproduced as below.
> 
> (insert "abc" (propertize "." 'display "<dot>") "def")
> 
> When you put cursor on `c' and type C-f, the cursor is
> placed on `d' instead of `<' of "<dot>", 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.)

      parent reply	other threads:[~2003-01-31 13:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87u1g3atvf.fsf@mimuw.edu.pl>
     [not found] ` <200301210831.RAA03126@etlken.m17n.org>
     [not found]   ` <871y35kej4.fsf@mimuw.edu.pl>
     [not found]     ` <rzqsmvjtrnx.fsf@albion.dl.ac.uk>
2003-01-28 11:29       ` problem of display property [Re: list-charset-chars and unicode-bmp] Kenichi Handa
2003-01-28 12:35         ` Gerd Moellmann
2003-01-29  7:39           ` Kenichi Handa
2003-01-29 12:45             ` Gerd Moellmann
2003-01-29 13:15               ` Kenichi Handa
2003-01-29 14:27                 ` Eli Zaretskii
2003-01-30  4:26                   ` Kenichi Handa
2003-01-30 20:07                     ` Eli Zaretskii
2003-01-30 20:26                       ` Stefan Monnier
2003-01-30 20:56                       ` Gerd Moellmann
2003-01-31 13:21         ` Dave Love [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rzqsmv978um.fsf@albion.dl.ac.uk \
    --to=d.love@dl.ac.uk \
    --cc=jsbien@mimuw.edu.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).