[Top][All Lists]

[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 17:47:47 +0200

(sent again / removed attachement)




I just discovered emacs 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



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)


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



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






reply via email to

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