[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] \\_> in tex-fold
From: |
Masayuki Ataka |
Subject: |
[AUCTeX-devel] \\_> in tex-fold |
Date: |
Sun, 17 Apr 2005 06:15:15 +0900 (JST) |
Hi,
In tex-fold.el, TeX-fold-region uses \\_> to match `the empty
string, but only at the end of a symbol'.
(defun TeX-fold-region (start end &optional type)
... (snip)
(t
;; "\\_>" is only available with Emacs
;; 21.4 or later (checked into CVS Emacs
;; on 2004-05-19). (This could be used in
;; font-latex as well for
;; `font-latex-match-variable-make' and
;; friends instead of "\\>" and would fix
;; issues with starred macros.)
(concat (regexp-quote TeX-esc)
(regexp-opt item-list t)
(if (string-match "\\_>" "X")
"\\_>"
"address@hidden")))))
(1)
This comment is not correct, anymore. "\\_>" is only available
with Emacs 22, and font-latex does not have
`font-latex-match-variable-make'.
(2)
(string-match "\\_>" "")
=> 1
This means
$1\leq2$, $1\neq2$, $1\to2$
are not folded when we set TeX-fold-macro-spec-list for \leq,
\neq, and \to, respectively.
But I don't have good solution to fix issues with starred
macros without "\\_>" Xp
Any good idea?
---
email: address@hidden
Name:: Masayuki Ataka // (Japan)
- [AUCTeX-devel] \\_> in tex-fold,
Masayuki Ataka <=