Tassilo Horn <t...@gnu.org> writes:

Hi Tassilo,

> I've applied all three PATCHES.

Thank you very much for applying them.  Unfortunately, I made a mistake
here and this particular patch lacks a feature: It doesn't care about
the optional argument.  And I can't see that AUCTeX cares about
opt. argument for user defined environments as opposed to commands,
e.g.:

--8<---------------cut here---------------start------------->8---
\documentclass[a4paper]{article}

\usepackage{color}

\newenvironment{colorenv}[2][red]{\color{#1}#2}{}
\newcommand{\colorcmd}[2][red]{{\color{#1}#2}}
\newcommand{\colorcmds}[3][red]{\color{#1}#2}#3}

\begin{document}
\begin{colorenv}
%  (insert (format "\n%s" (LaTeX-environment-list)))
((abstract) (array LaTeX-env-array) (center) (colorenv) [snipped] )
\end{colorenv}

% (insert (format "\n%s" TeX-auto-symbol))
((colorcmds [argument] 2) (colorcmd [argument] 1))
--8<---------------cut here---------------end--------------->8---

Am I missing something?  Any hint is appreciated.

Best, Arash


_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to