all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: monnier@iro.umontreal.ca
Cc: emacs-devel@gnu.org
Subject: Re: Adjust point to move it off zero-width characters
Date: Sun, 07 Aug 2011 20:10:11 +0300	[thread overview]
Message-ID: <83y5z5ywp8.fsf@gnu.org> (raw)
In-Reply-To: <83zkjlyxsd.fsf@gnu.org>

> Date: Sun, 07 Aug 2011 19:46:42 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> > > Is there a reason to fuse it with the preceding char rather than fusing
> > > it with the next char?
> > 
> > I think you are right.  I will rework the patch to do that.
> 
> Actually, there could be a problem here: "C-x =" will tell point is on
> an LRM, which will confuse users, because they see the cursor on the
> following character.

There's one other complication: to _really_ DTRT, there's one
directional control that needs to be fused with the preceding
character: the PDF, u+202c (POP DIRECTIONAL FORMATTING).  That's
because copy/paste of a portion of text enclosed in, say, LRO...PDF
should keep the visual appearance of that portion of text, and for
that you need to copy it with LRO before and PDF after.

But hard-coding the special treatment of PDF on the C level sounds too
kludgey, no?



  reply	other threads:[~2011-08-07 17:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-06 14:47 Adjust point to move it off zero-width characters Eli Zaretskii
2011-08-07 16:13 ` Stefan Monnier
2011-08-07 16:39   ` Eli Zaretskii
2011-08-07 16:46     ` Eli Zaretskii
2011-08-07 17:10       ` Eli Zaretskii [this message]
2011-08-08  0:50     ` Stefan Monnier
2011-08-08  3:02       ` Eli Zaretskii
2011-08-08  4:12         ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=83y5z5ywp8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.