GNU bug report logs - #70369
[PATCH] Fix folding glitch with tmm disabled

Previous Next

Package: auctex;

Reported by: Paul Nelson <ultrono <at> gmail.com>

Date: Sat, 13 Apr 2024 22:00:04 UTC

Severity: normal

Tags: patch

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Nelson <ultrono <at> gmail.com>
To: 70369 <at> debbugs.gnu.org
Subject: bug#70369: [PATCH] Fix folding glitch with tmm disabled
Date: Sat, 13 Apr 2024 23:58:50 +0200
[Message part 1 (text/plain, inline)]
Hello,

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.

Thanks, best,

Paul
[0001-Change-some-mark-active-to-TeX-active-mark.patch (application/octet-stream, attachment)]

This bug report was last modified 1 year and 94 days ago.

Previous Next


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