auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] Folding oddity


From: Ralf Angeli
Subject: [AUCTeX-devel] Folding oddity
Date: Sun, 03 Apr 2005 19:48:03 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

The following snippet, executed in the *scratch* buffer, will produce
some weird result.  If you move point horizontally into the folded
content and reveal the \section macro it will get even weirder.

(progn
  (require 'tex-site)
  (global-font-lock-mode 1)
  (latex-mode)
  (TeX-fold-mode 1)
  (setq TeX-fold-macro-spec-list '((1 ("section")) ("xxx" ("bar"))))
  (insert "\n\\section{aaa \\bar aaa}\n")
  (font-lock-fontify-buffer)
  (TeX-fold-region (line-beginning-position 0) (point)))

I'd be very grateful if somebody could tell me what is going on.  I
have no idea.

-- 
Ralf





reply via email to

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