reftex-what-special-env

reftex-what-special-env is an autoloaded Lisp function in `reftex-parse.el'.

(reftex-what-special-env WHICH &optional BOUND)

Run the special environment parsers and return the matches.

The return value is (e.g.) either ("my-parser-function" . (point))
or a list of them.

If WHICH is nil, immediately return nil.
If WHICH is 1, return innermost enclosing environment.
If WHICH is t, return list of all environments enclosing point.
If WHICH is a list of environments, look only for those environments and
return the name of the first environment in this list found to enclose
point.