[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Management of package options [Was: Re: Add `unit' ty
From: |
Mosè Giordano |
Subject: |
Re: [AUCTeX-devel] Management of package options [Was: Re: Add `unit' type for the parser in siunitx.el] |
Date: |
Thu, 28 Feb 2013 22:54:03 +0100 |
Hi Tassilo,
2013/2/28 Tassilo Horn <address@hidden>:
> Hi Mosè,
>
> can't we just have a variable `LaTeX-provided-package-options' which is
> an alist of the form
>
> (("package1" "option1" "option2=false")
> ("package2" "optionx"))
>
> that's made buffer-local and build up in `LaTeX-auto-cleanup' similar to
> what you suggested.
>
> Then we only need to put
>
> (set (make-local-variable 'LaTeX-provided-package-options)
> <the actual value>)
>
> at the front of the lambda in the auto-parsing file without much magic.
> Then styles can get their options simply with
>
> (cdr (assoc LaTeX-provided-package-options "pkgname"))
That's a great idea, thank you! I will try to work on it in the next
days, time permitting.
Bye,
Mosè Giordano