all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: RLM and LRM are composed?
Date: Mon, 29 Mar 2010 19:06:32 +0300	[thread overview]
Message-ID: <837hov159z.fsf@gnu.org> (raw)

Evaluate this form:

  (aset standard-display-table ?‎ (vconcat "->"))

and then visit a file with this single line:

    Hebrew ‏(עברית)	שלום

The character being set up in the standard-display-table is RLM,
RIGHT-TO-LEFT MARK.  If you are reading this in a GUI session, chances
are it will be displayed as whitespace.  The same character is before
the left paren after "Hebrew".  However, Emacs does not display "->"
instead of it, as I'd expect.  It thinks it does (try "C-u C-x =" on
that character), but it doesn't.

If I step with a debugger through produce_glyphs (in the TTY case) or
through x_produce_glyphs (in the GUI case), I see that the glyph we
produce for displaying this character is not IT_CHARACTER, but
IT_COMPOSITION.

Questions:

1. Why do we display this character as composition?  It is not
   supposed to be composed with anything, AFAIK.

2. Is it a bug or a feature that composed characters don't go through
   the display table?  If it's a feature, what is its purpose?

TIA





             reply	other threads:[~2010-03-29 16:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29 16:06 Eli Zaretskii [this message]
2010-03-29 16:53 ` RLM and LRM are composed? Eli Zaretskii
2010-04-01  6:39 ` Kenichi Handa
2010-04-01  7:56   ` Eli Zaretskii
2010-04-01 12:55     ` 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

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

  git send-email \
    --in-reply-to=837hov159z.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.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 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.