Thank you Paul!
Below you find a minimal working example. When TeX-fold is activated, *all* "}" in the document get
replaced by "”". It's true that disabling TeX-fold-quotes fixes the problem, but then also
"\enquote{" will not be folded. I could also modify TeX-fold-close-quote, but then I would see
something like “text}.
It isn't a real problem for me, as I don't think I'll use TeX-fold. But thought
that it could be useful to signal this glitch.
Kind regards,
Luca
--8<--
\documentclass{article}
\usepackage{csquotes}
\begin{document}
$\alpha$
This \enquote{is quoted text}
\newcommand{\xxxx}{xxxx}
\end{document}
--8<--
On 250929 12:27, Paul D. Nelson wrote:
Hi Luca,
To understand the issue better, it would help to see the tex file
you used to produce the example.
One quick fix would be to disable the folding of quotes by removing
TeX-fold-quotes from the defcustom TeX-fold-region-functions, e.g.:
(setopt TeX-fold-region-functions '(TeX-fold-verbs))
Thanks, best, Paul