[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] org.el (org-do-latex-and-related): Fix duplicate 'latex-and-rela
From: |
Sébastien Miquel |
Subject: |
[PATCH] org.el (org-do-latex-and-related): Fix duplicate 'latex-and-related faces |
Date: |
Fri, 19 Mar 2021 17:56:54 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
Hi,
With the current org-do-latex-and-related function, fontification of
a region before a LaTeX fragment repeatedly adds the
'org-latex-and-related face to the fragment.
You can reproduce with an org buffer with the following content.
#+BEGIN_SRC org
Foo
$a^2 + b^2 = c^2$
#+END_SRC
- Use (setq org-highlight-latex-and-related '(latex))
- Write some text at the end of the first line, triggering
refonfication of the line
- For each character inserted, the org-latex-and-related face is
added (as a duplicate) to the fragment, as you can check using
describe-text-properties.
The attached patch fixes this.
--
Sébastien Miquel
0001-org.el-org-do-latex-and-related-Fix-duplicate-latex-.patch
Description: Text Data
- [PATCH] org.el (org-do-latex-and-related): Fix duplicate 'latex-and-related faces,
Sébastien Miquel <=