From: "Clément Pit-Claudel" <cpitclaudel@gmail.com>
To: 50073@debbugs.gnu.org
Subject: bug#50073: [PATCH] Remove prettification for \par in TeX documents
Date: Sun, 15 Aug 2021 19:47:41 -0400 [thread overview]
Message-ID: <2cd6a7fd-db1c-0f52-8a63-aa5f25b8f6e5@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 246 bytes --]
The attached patch disables prettification for \par in tex-mode.el. The problem is that many fonts don't display anything for the character it was mapped to (#x2029 PARAGRAPH SEPARATOR), so enabling prettification makes every `\par' disappear.
[-- Attachment #2: 0001-Remove-prettification-for-par.patch --]
[-- Type: text/x-patch, Size: 962 bytes --]
From 6e5d0371c657ed40496ddb6451a5ccd37f4887df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Pit-Claudel?= <clement.pitclaudel@live.com>
Date: Sun, 15 Aug 2021 19:27:44 -0400
Subject: [PATCH] Remove prettification for \par
* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Remove
prettified version of `\par'. Many fonts don't display anything for
the character it was mapped to (#x2029 PARAGRAPH SEPARATOR), so
enabling prettification makes every `\par' disappear.
---
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 d9d8059f96..6caa9c1b7d 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -3337,7 +3337,6 @@ tex--prettify-symbols-alist
("\\oplus" . ?⊕)
("\\oslash" . ?⊘)
("\\otimes" . ?⊗)
- ("\\par" . ?
)
("\\parallel" . ?∥)
("\\partial" . ?∂)
("\\perp" . ?⊥)
--
2.25.1
next reply other threads:[~2021-08-15 23:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-15 23:47 Clément Pit-Claudel [this message]
2021-08-16 12:10 ` bug#50073: [PATCH] Remove prettification for \par in TeX documents Lars Ingebrigtsen
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=2cd6a7fd-db1c-0f52-8a63-aa5f25b8f6e5@gmail.com \
--to=cpitclaudel@gmail.com \
--cc=50073@debbugs.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.