auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Font completion for fontspec


From: Tassilo Horn
Subject: Re: [AUCTeX-devel] Font completion for fontspec
Date: Tue, 24 Dec 2013 16:43:25 +0100
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Mosè Giordano <address@hidden> writes:

Hi Mosè,

> I don't know what is wrong with your version :-\

I don't, too.  Anyway, probably an update will fix it.

> I'm sending a patch which replicates the behavior of
> `TeX-arg-input-file-search': this adds an option to decide whether the
> font should be searched or not, and a default list of fonts to be used
> for completion when `luaotfload-tool --list=basename' doesn't work.

Looks good to me.

> I want to make it clear the `luaotfload' bundle is necessary in order
> to use `fontspec' with LuaLaTeX (but not with XeLaTeX), indeed
> `fontspec' loads the `luaotfload' package.  So requiring
> `luaotfload-tool' to make `LaTeX-fontspec-arg-font' completion work is
> not a stringent requirement, it only needs a somewhat recent version
> (I think version 2.3 or higher).

Ok.

> +(defcustom LaTeX-fontspec-arg-font-search t
> +  "If `LaTeX-fontspec-arg-font' should search for fonts.
> +If the value is t, fonts are retrieved and provided for
> +completion.  If the value is nil,
> +`LaTeX-fontspec-font-list-default' is used for completion.  If
> +the value is `ask', you are asked for the method to use every
> +time `LaTeX-fontspec-arg-font' is called.
> +
> +`LaTeX-fontspec-arg-font' calls `luaotf-load --list=basename' to
> +automatically get the list of fonts.  This requires
> +`luaotfload-tool' version 2.3 or higher in order to work."
> +  :group 'LaTeX-style
> +  :type '(choice (const t) (const nil) (const ask)))

Please add some :tag descriptions to the consts.

Other than that, feel free to commit.

Happy Xmas!
Tassilo



reply via email to

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