auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Bug with fold mode (tries to fold recursively)


From: Dominic Jänichen
Subject: [AUCTeX] Bug with fold mode (tries to fold recursively)
Date: Mon, 11 Apr 2011 16:26:51 +0200

Hello,

 

I just discovered emacs  24.0.50.1 with AUCTeX 11.86 locking up as I tried to fold code.

It happens if I try to fold code to an _expression_ containing a reference to a parameter (“{1}”), if this parameter includes the same string as one that is not going to be folded.

 

Minimal example:

 

Add “br” to fold as “({1})” in math mode

 

Try to fold

$\br{x_{1}}$

 

AUCTeX then holds emacs (in an infinite loop?)

 

Backtrace is

Debugger entered--Lisp error: (quit)

  byte-code( -- omitted here, but attached -- )

  TeX-fold-expand-spec("({1})" 20 30)

  TeX-fold-hide-item(#<overlay from 20 to 30 in test.txt.tex>)

  TeX-fold-region-macro-or-env(1 91 math)

  TeX-fold-region(1 91)

  TeX-fold-buffer()

  call-interactively(TeX-fold-buffer nil nil)

 

 

If I change $\br{x_{1}}$ to $\br{x_{1 }}$, there is no error.

 

 

 

Sincerely,

Dominic

Attachment: backtrace
Description: Binary data

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]