Subject: Re: bug#78752: 31.0.50; New tex-mode prettify-symbols-mode rule causes visual regression

From: "Paul D. Nelson" <[email-masked]>
Date: Tue, 10 Jun 2025 20:11:18 +0200

Tony Zorman <[email-masked]> writes:
> ever since ef6203b64aaf (Extend prettify-symbols-alist in TeX mode)
> 'tex--prettify-symbols-alist' contains the line
>
>     ("\\ " . 9141) ; Literal ?⎵ breaks indentation
>
> However, this is problematic and results in false positives
> ...
> While I agree that a double backslash not followed by a newline is
> confusing, some of my coauthors don't

ef6203b64aaf was my attempt to share the less controversial
prettifications accumulated in my config, but I'm happy to "unshare"
this one (attached patch) if it's causing false positives.

Thanks, best,

Paul

>From 3caf90d89af17f3e10e1934e8eca026f8f81f04e Mon Sep 17 00:00:00 2001
From: Paul Nelson <[email-masked]>
Date: Tue, 10 Jun 2025 20:02:35 +0200
Subject: [PATCH] Remove literal space from prettify symbols alist

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist):
Remove entry for literal space that caused issues in tex code
with double backslash not followed by a newline (bug#78752).
---
 lisp/textmodes/tex-mode.el | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index ea1bf3807c3..ae44bca17d5 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -3840,7 +3840,6 @@ tex--prettify-symbols-alist
     ("\\S" . ?§)
     ("\\Finv" . ?Ⅎ)
     ("\\Game" . ?⅁)
-    ("\\ " . 9141) ; Literal ?⎵ breaks indentation
     ("\\lvert" . ?|)
     ("\\rvert" . ?|)
     ("\\lVert" . ?‖)
-- 
2.39.3 (Apple Git-145)