auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] tex-symb repository at Google Code Hosting


From: Ralf Angeli
Subject: Re: [AUCTeX-devel] tex-symb repository at Google Code Hosting
Date: Sat, 10 Feb 2007 18:04:43 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux)

* Ralf Angeli (2007-02-10) writes:

> (lambda ()
>   (save-excursion
>     (backward-char)
>     (or (TeX-fold-macro) (TeX-fold-math))))

Uh, better use the internal function providing proper return values.
With a test for the value of the variable controlling activation of
the feature and with support for environments it could like this:

(lambda ()
  (when TeX-fold-auto
    (save-excursion
      (backward-char)
      (or (TeX-fold-item 'macro)
          (TeX-fold-item 'math)
          (TeX-fold-item 'env)))))

-- 
Ralf




reply via email to

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