From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Trojan Source detection/highlight in Emacs? Date: Wed, 03 Nov 2021 15:03:18 +0200 Message-ID: <83mtmlie7d.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38475"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 03 14:04:51 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1miFwg-0009mE-L1 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 Nov 2021 14:04:50 +0100 Original-Received: from localhost ([::1]:56546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miFwe-0002fa-Fb for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 Nov 2021 09:04:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miFvD-0002dN-UC for help-gnu-emacs@gnu.org; Wed, 03 Nov 2021 09:03:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miFvD-0006Mm-Lb for help-gnu-emacs@gnu.org; Wed, 03 Nov 2021 09:03:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qqYusmWfwjMRRAfD7rMEpjqIlQpOpV3aA3vT4gRc+Xg=; b=BQmiTtIAYhM5 8dG+D6W7lQf9YLo5oAlzL5w9jtmOxmiuWUpL88FnJapnwJ5w7ocHtQQ36OThBwOUiRfG3sCEl08Vc 0gcWHYjK6GSMOP+Kb4jzAHvjzb6XF8x2p1WgaALJunrZFNHLE9U0AAkMqxvFlDqFc4ZQwmXuiVoRV 4/RgASecdoG/M48SkL0da9/lHTDKOBn7BjVibKUm39rhg92EZfjy4nIvXFo6ANcf6ghFUyGCT66kh RLvtExXKI0GBrhHeVNU8DNz5918BgrSelSk+lj3zoHt2tFHqNdtK3bKolyvsZkeqCLlmZyBgpLobr wZaFGShksW+zfv/B+NNj4w==; Original-Received: from [87.69.77.57] (port=2654 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miFvD-0001YJ-6G for help-gnu-emacs@gnu.org; Wed, 03 Nov 2021 09:03:19 -0400 In-Reply-To: (message from Anders Munch on Wed, 3 Nov 2021 08:52:52 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134329 Archived-At: > From: Anders Munch > Date: Wed, 3 Nov 2021 08:52:52 +0000 > Accept-Language: en-US > > Eli Zaretskii wrote: > > Stefan Monnier wrote: > >> A simple and straightforward way to do that is to highlight any > >> non-ASCII char, and to render all the "non printing" chars (such as > >> RIGHT-TO-LEFT OVERRIDE) as tofu or something like that (otherwise, the > >> highlighting applied to it wouldn't be visible). > > > > That's already available, no changes needed. > > Can we get a recipe, please? Customize the variable glyphless-char-display-control. > I tried customising bidi-paragraph-direction, setting it to 'left-to-right, but I'm not seeing any effect, despite the docstring saying it /forces/ directionality. The doc string says it forces the directionality of the paragraph. If you don't already know what that means, I suggest to read the "Bidirectional Editing" node in the Emacs manual, it should explain that. > I guess it just sets a default, and explicit bidi control characters take precedence. Not exactly, but something like that. The paragraph direction is not relevant to this issue, since in prog-mode descendants we already set the value to left-to-right.