unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Trojan Source detection/highlight in Emacs?
Date: Wed, 03 Nov 2021 19:28:06 +0200	[thread overview]
Message-ID: <83o871gndl.fsf@gnu.org> (raw)
In-Reply-To: <HE1PR0502MB300463FCAAE84C64EA0AB1B4B48C9@HE1PR0502MB3004.eurprd05.prod.outlook.com> (message from Anders Munch on Wed, 3 Nov 2021 15:17:32 +0000)

> From: Anders Munch <ajm@flonidan.dk>
> Date: Wed, 3 Nov 2021 15:17:32 +0000
> 
> Eli Zaretskii wrote:
> > Anders Munch <ajm@flonidan.dk> wrote:
> >> Can we get a recipe, please?
> >
> > Customize the variable glyphless-char-display-control.
> 
> Thanks for the pointer, that would be the 'format-control' group?

Yes.

> I see it set to "Display as thin space".

Yes.

> But that's only half the story. The other half of how bidi control characters display is the effect that they have on surrounding text. 
> glyphless-char-display-control does not affect that.

That you cannot change easily, and you shouldn't try.  Emacs
implements the Unicode Bidirectional Algorithm when it produces
character glyphs for display, and that includes reordering them into
the so-called "visual" order.

> I went looking for a bidi off switch precisely because I'm aware that the Unicode bidi rules are complicated, or at least confusing when put into practice, and for those of us that don't read RTL languages, it might be better to switch it off completely than to try to understand it.
> 
> bidi-paragraph-direction was the only candidate to a bidi off switch that I could find.
> If that's not what it is, then where is the master switch to turn bidi processing off?

There is no such switch in Emacs.  Bidi reordering is always turned
on.  (And don't believe people who will tell you about
bidi-display-reordering: that variable doesn't disable the reordering
completely, exists only for my own debugging, and if turned off, will
cause the display code work unreliably in some situations.)



  reply	other threads:[~2021-11-03 17:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-03 15:17 Trojan Source detection/highlight in Emacs? Anders Munch
2021-11-03 17:28 ` Eli Zaretskii [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-11-03  8:52 Anders Munch
2021-11-03 13:03 ` Eli Zaretskii
2021-11-01 22:19 Skip Montanaro
2021-11-01 23:25 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-02 14:09   ` Eli Zaretskii
2021-11-02 14:56     ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-02 15:19       ` Eli Zaretskii
2021-11-02 14:14   ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-02 14:01 ` Eli Zaretskii
2021-11-02 15:01   ` Skip Montanaro
2021-11-02 15:13     ` Eli Zaretskii
2021-11-02 15:12   ` Stefan Monnier via Users list for the GNU Emacs text editor

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=83o871gndl.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.
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).