[Top][All Lists]

[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: Tassilo Horn
Subject: Re: [AUCTeX-devel] Management of package options [Was: Re: Add `unit' type for the parser in siunitx.el]
Date: Thu, 28 Feb 2013 20:16:24 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

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"))


reply via email to

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