[Top][All Lists]

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

Re: [AUCTeX-devel] [PATCH 1/3] Parse env's defined with `\lstnewenvironm

From: Tassilo Horn
Subject: Re: [AUCTeX-devel] [PATCH 1/3] Parse env's defined with `\lstnewenvironment'.
Date: Tue, 02 Jun 2015 13:27:05 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Arash Esbati <address@hidden> writes:

> Thanks for your response.  I saw your patch in git and may I suggest
> to extend it to:
>   ;; Ditto for environments with optional args
>   (mapc (lambda (entry)
>         (add-to-list 'LaTeX-auto-environment
>                      (list (nth 0 entry) 'LaTeX-env-args (vector "argument")
>                            (1- (string-to-number (nth 1 entry))))))
>       LaTeX-auto-env-args-with-opt)
> The definition above then results in
>     ("colorenv" LaTeX-env-args ["argument"] 1)
> in (LaTeX-environment-list) and AUCTeX asks for the optional argument
> while inserting the environment.



reply via email to

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