unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-bidi@gnu.org, emacs-devel@gnu.org
Subject: Re: Handling invisible text in bidirectional display
Date: Sun, 17 Jan 2010 09:59:17 +0100	[thread overview]
Message-ID: <4B52D165.40008@gmx.at> (raw)
In-Reply-To: <83wrzhbxkf.fsf@gnu.org>

 > If you mean how would their characters be reordered for display, I
 > described that in my mail Re: "Bidirectional editing in Emacs -- main
 > design decisions", back in October.  I reproduce the relevant excerpt
 > below.
 >
 > If you mean overlays with display properties in some combination with
 > invisible text, please describe the situation in more detail, because
 > I'm not sure I see the difficulty.

I meant neither of them.  From your initial example:

 > For example, suppose the buffer includes the following text (capital
 > letters stand for right-to-left characters):
 >
 >   abcABCxyz

Suppose I put an overlay from the position between "b" and "c" to the
position between "A" and "B" (just like your invisibility property) and
give that overlay a display property, say the character "D".

 > This would normally be displayed like this:
 >
 >   abcCBAxyz

Should we now see "abDxyz", "abDAxyz", "abDCBDxyz", or something else?
Note that the "D" is quite similar to the ellipses for invisible text
you mentioned earlier.  This issue is obviously not very important -
after all an overlay is probably misplaced if its start and end are in
text displayed in different directions - but would have to be solved
somehow anyway.

BTW, I'm not even sure whether

 > The current code would skip C and x, and stop on y.  But because C is
 > encountered when moving backwards from C to A, that causes us to miss
 > A and B entirely and display
 >
 >   abcyz
 >
 > which is clearly incorrect.

_is_ "clearly incorrect".  Conversely, suppose I have the displayed text

abcCBAxyz

with `point' between "b" and "c" and `mark' between "C" and "B" - no
overlays or text properties involved.  When I now kill the region what
will show up on the kill ring - "cAB" or "cC"?

martin




  reply	other threads:[~2010-01-17  8:59 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-16 16:54 Handling invisible text in bidirectional display Eli Zaretskii
2010-01-16 18:43 ` martin rudalics
2010-01-16 20:32   ` Eli Zaretskii
2010-01-17  8:59     ` martin rudalics [this message]
2010-01-17 19:06       ` Eli Zaretskii
2010-01-18  8:11         ` martin rudalics
2010-01-18  9:54           ` Eli Zaretskii
2010-01-18 10:39             ` martin rudalics
2010-01-18 12:35               ` Eli Zaretskii
2010-01-16 19:15 ` David Kastrup
2010-01-16 20:37   ` Eli Zaretskii
2010-01-17 16:05     ` Richard Stallman
2010-01-17 19:29       ` Eli Zaretskii
2010-01-17 20:17         ` David Kastrup
2010-01-17 20:39           ` Ehud Karni
2010-01-17 20:51           ` Eli Zaretskii
2010-01-18  6:42             ` David Kastrup
2010-01-18  8:52               ` Eli Zaretskii
2010-01-16 19:56 ` Stefan Monnier
2010-01-16 20:53   ` Eli Zaretskii
2010-01-17 16:04     ` Richard Stallman
2010-01-17 18:24       ` Eli Zaretskii
2010-01-18 11:56         ` Richard Stallman
2010-01-22 13:41       ` Bidi TODO (was: Handling invisible text in bidirectional display) Eli Zaretskii
2010-02-01 14:48         ` [emacs-bidi] " Ehud Karni
2010-01-18  1:27     ` Handling invisible text in bidirectional display Kenichi Handa
2010-01-18  4:00       ` Eli Zaretskii
2010-01-18  7:40         ` Kenichi Handa
2010-01-18  8:56           ` Eli Zaretskii
2010-01-18 11:09             ` Kenichi Handa

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=4B52D165.40008@gmx.at \
    --to=rudalics@gmx.at \
    --cc=eliz@gnu.org \
    --cc=emacs-bidi@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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).