[Top][All Lists]

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

Re: [AUCTeX-devel] a LaTeX-env-usepackage environment

From: Tassilo Horn
Subject: Re: [AUCTeX-devel] a LaTeX-env-usepackage environment
Date: Thu, 20 Feb 2014 08:40:42 +0100
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux)

Mosè Giordano <address@hidden> writes:

Hi Mosè,

> Any comments about this feature? :-) I'm sending a revised version of
> the patch, the major change is that you aren't prompted for options if
> no package is supplied.

I've had no time to test it so far, but the feature sounds quite useful
and I'm sure you've tested it yourself.  So just go ahead! (Some
nitpicking below.)

> +(defun LaTeX-arg-usepackage-get-packages-options ()

I'd rather name it `LaTeX-arg-usepackage-read-packages-with-options'.

> +  "Get the packages and the options for the usepackage macro.
> +
> +This function returns nil if no package is provided, a cons cell
> +otherwise, whose CAR is the list of packages, and the CDR is the
> +string of the options."

I'd rephrase the docstring so that it explains the normal case (packages
+ options read) first, and then the nil-case.

BTW, the name suggests that I can enter many packages.  Is that correct?
Or is that all due to the special case of


If so, I'd rather prefer to read just one package with it's options, so
that I'd end up with


and name the function accordingly, i.e., "package" (singular), when used

Or it could allow entering multiple packages as it is now, but each
package with its own options.  And then it would return an alist
structurally equal to `LaTeX-provided-package-options'.


reply via email to

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