From: Michael Welsh Duggan <md5i@md5i.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Display question
Date: Wed, 08 Jun 2011 09:13:20 -0400 [thread overview]
Message-ID: <87boy8h3f3.fsf@maru.md5i.com> (raw)
In-Reply-To: <8339jkdam3.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 08 Jun 2011 10:51:32 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Michael Welsh Duggan <md5i@md5i.com>
>> Date: Wed, 08 Jun 2011 01:55:54 -0400
>>
>> Afterward, I get a character that looks like a double-boxed RLO. Image
>> included:
>>
>> Is this expected? If I just do (insert RLO RLO RLO) a few times in a
>> non-font-locked buffer, I get a box around RLO, with a tiny space
>> between the boxes, and not the double box seen here.
>
> The difference between these two use cases is that characters
> delivered from display tables are not subject to the treatment we give
> to "glyphless characters", which is what u+200b ZERO WIDTH SPACE is.
> You expect this character to be displayed as a thin space (probably to
> get the boxed "RLO" look prettier), but this thin space will only show
> when u+200b is treated as a glyphless character, which can happen when
> it comes from the buffer, but not from a display table.
[...]
> Btw, you cannot expect that u+200b is displayed as a thin space,
> because the user could change that via glyphless-char-display-control,
> which see. So this particular use of u+200b is questionable to begin
> with, IMO.
I wasn't actually thinking it would appear as a space when I initially
tried it. I was using it to separate two runs of character properties
so the boxes wouldn't join if they were next to each other. (This does
and does not work if I set u+200b to zero-width. I think this confuses
the display mechanism a little.) I did not know about
glyphless-char-display, which seems to have the feature I was trying to
implement built in. Thanks for the help.
(I was playing around with ideas on how to display and undisplay bidi control
characters, as you might have guessed.)
--
Michael Welsh Duggan
(md5i@md5i.com)
next prev parent reply other threads:[~2011-06-08 13:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-08 5:55 Display question Michael Welsh Duggan
2011-06-08 7:51 ` Eli Zaretskii
2011-06-08 13:13 ` Michael Welsh Duggan [this message]
2011-06-08 16:16 ` Eli Zaretskii
2011-06-09 19:10 ` Michael Welsh Duggan
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=87boy8h3f3.fsf@maru.md5i.com \
--to=md5i@md5i.com \
--cc=eliz@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 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.