Subject: Re: bug#70369: [PATCH] Fix folding glitch with tmm disabled

From: Arash Esbati <[email-masked]>
Date: Wed, 17 Apr 2024 22:29:03 +0200

Paul Nelson <[email-masked]> writes:

> Steps to reproduce:
> - Disable transient-mark-mode.
> - Create test.tex containing "\emph{foo} \emph{bar}".
> - Move point inside "foo" and set the mark (C-SPC).  Note that this
> does not "activate the region".
> - TeX-fold-buffer (C-c C-o C-b).
> - Move the point into "bar".
>
> What should happen is that the second fold is revealed.  Instead, both
> folds are revealed.
>
> The fix is to replace mark-active with (TeX-active-mark) inside
> TeX-fold-post-command.
>
> I looked for other places where "mark-active" was used incorrectly,
> and fixed a couple minor ones, involving menu entries.

Again, can't apply the patch.  Can you please try to fix as well?

TIA.  Best, Arash