[Top][All Lists]

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

Re: [AUCTeX] Auctex prompting for optional arguments

From: Arash Esbati
Subject: Re: [AUCTeX] Auctex prompting for optional arguments
Date: Fri, 16 Nov 2018 22:49:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1

Santiago Mejia <address@hidden> writes:

> Ahhhh.... so refreshing to have this working now!  Thanks so much for the
> tip Mose.  It took me a while to implement it since I am not too fluent
> with the file system in AuCTeX and needed to figure out where to find the
> file ("sudo find / -iname "beamer.el").   Fixing this was easier than I
> expected, but I could not anticipate when I got your e-mail in what was a
> pretty busy week.

Hi all,

I've just pushed a fix to master which makes
`TeX-arg-beamer-overlay-spec' behave more friendly in the style hook.
Now it respects the value of OPTIONAL argument and can be used as a
vector in the style hook which I also changed [1].

> If you (or anyone else in the list) happens to have time, I would
> appreciate knowing how can one know in a more general fashion what
> controls whether AUCTeX prompts for optional arguments or not.

AUCTeX has an option called `TeX-insert-macro-default-style':

,----[ C-h v TeX-insert-macro-default-style RET ]
| TeX-insert-macro-default-style is a variable defined in ‘tex.el’.
| Its value is ‘show-optional-args’
| Documentation:
| Specifies whether ‘TeX-insert-macro’ will ask for all optional arguments.
| If set to the symbol ‘show-optional-args’, ‘TeX-insert-macro’
| asks for optional arguments of TeX marcos, unless the previous
| optional argument has been rejected.  If set to
| ‘show-all-optional-args’, ‘TeX-insert-macro’ asks for all
| optional arguments.  If set to ‘mandatory-args-only’,
| ‘TeX-insert-macro’ asks only for mandatory argument.
| When ‘TeX-insert-macro’ is called with C-u, it’s the other
| way round.
| Note that for some macros, there are special mechanisms, see e.g.
| ‘LaTeX-includegraphics-options-alist’ and ‘TeX-arg-cite-note-p’.
| You can customize this variable.

It doesn't help if functions don't respect it, though.

Best, Arash


reply via email to

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