all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#50073: [PATCH] Remove prettification for \par in TeX documents
@ 2021-08-15 23:47 Clément Pit-Claudel
  2021-08-16 12:10 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Clément Pit-Claudel @ 2021-08-15 23:47 UTC (permalink / raw)
  To: 50073

[-- 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#50073: [PATCH] Remove prettification for \par in TeX documents
  2021-08-15 23:47 bug#50073: [PATCH] Remove prettification for \par in TeX documents Clément Pit-Claudel
@ 2021-08-16 12:10 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-16 12:10 UTC (permalink / raw)
  To: Clément Pit-Claudel; +Cc: 50073

Clément Pit-Claudel <cpitclaudel@gmail.com> writes:

> 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.

Makes sense to me; applied to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-16 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-15 23:47 bug#50073: [PATCH] Remove prettification for \par in TeX documents Clément Pit-Claudel
2021-08-16 12:10 ` Lars Ingebrigtsen

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.