GNU bug report logs - #61290
28.2; Ligatures messing up fontify subscripts in AUCTeX

Previous Next

Package: emacs;

Reported by: Jeremy Van Cleve <jeremy.vancleve <at> gmail.com>

Date: Sun, 5 Feb 2023 07:47:02 UTC

Severity: normal

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 61290 <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Jeremy Van Cleve <jeremy.vancleve <at> gmail.com>, 61290 <at> debbugs.gnu.org
Subject: Re: bug#61290: 28.2; Ligatures messing up fontify subscripts in AUCTeX
Date: Sun, 05 Feb 2023 10:28:42 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

Hi Jeremy & Eli,

> My guess would be that the method used by AUCTeX for displaying
> subscripts is somehow incompatible with character compositions.  How
> are subscripts displayed by AUCTeX?

AUCTeX simply adds a 'raise text property with some computed value per
level, e.g., (raise -0.5) for the first subscript level.

> OTOH, if this is a problem in the Emacs display engine, I'd appreciate
> a simple reproducer that doesn't require AUCTeX to be installed and
> used.
>
> CC'ing Tassilo, in case he has some comments and idea.

I'm somewhat relieved to say its the very same with the stock emacs
tex-mode.el which does pretty much the same as AUCTeX, i.e., a simple
reproducer is to open the tex file

--8<---------------cut here---------------start------------->8---
\documentclass{article}
\begin{document}
\begin{equation}
  A_{x+b-c*d/e}
\end{equation}
Here is a ligature -> and another one !=.
\end{document}
--8<---------------cut here---------------end--------------->8---

with emacs -Q.  It looks correct but gets wonky after evaluating
Jeremy's ligature setup.

Bye,
Tassilo




This bug report was last modified 2 years and 97 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.