[AUCTeX-devel] Improve LaTeX macro definition argument prompts

2016-03-15 Thread Matthew Leach
Hi all, When inserting a \newcommand macro with AUCTeX, I've found a couple of small annoyances and have attached a patch to try and mitigate them. First, the user is prompted for the number of arguments that a macro should take. If a '0' entered at the prompt, then '[0]' is added at the point.

Re: [AUCTeX-devel] Improve LaTeX macro definition argument prompts

2016-03-15 Thread Mosè Giordano
Hi Matt, 2016-03-15 21:16 GMT+01:00 Matthew Leach : > Hi all, > > When inserting a \newcommand macro with AUCTeX, I've found a couple of > small annoyances and have attached a patch to try and mitigate them. > > First, the user is prompted for the number of arguments that a macro > should take. I

Re: [AUCTeX-devel] Improve LaTeX macro definition argument prompts

2016-03-15 Thread Matthew Leach
Mosè Giordano writes: > Hi Matt, Hi Mosè, Many thanks for the feedback. > 2016-03-15 21:16 GMT+01:00 Matthew Leach : >> Hi all, >> >> When inserting a \newcommand macro with AUCTeX, I've found a couple of >> small annoyances and have attached a patch to try and mitigate them. >> >> First, the

[AUCTeX-devel] Prompt for optional short caption parameter.

2016-03-15 Thread Matthew Leach
Hi all, I quite frequently use the optional short-caption parameter that one can pass LaTeX's \caption macro. However, when defining a new figure, I'm not prompted for \caption's optional argument and usually have to add this in manually. This patch adds a new prompt when creating a new figure e