[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Use user-full-name as initial input to author macro
From: |
Tassilo Horn |
Subject: |
Re: [AUCTeX-devel] Use user-full-name as initial input to author macro |
Date: |
Tue, 16 Apr 2013 19:39:26 +0200 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Mosè Giordano <address@hidden> writes:
Hi Mosè,
> I'm sending a patch defining a new customizable variable (whose
> default value is `user-full-name') to be used as initial input to
> `\author' macro. Any comments?
That's a good idea. One comment below.
> Some minutes ago I've documented some missing features in
> `doc/auctex.texi', I hope it's OK.
Sure. Feel free to commit docfixes and simple bugfixes without
discussion.
> +(defun LaTeX-arg-author (optional)
> + "Prompt for author name.
> +Insert the given value as a TeX macro argument. If OPTIONAL is
> +non-nil, insert it as an optional argument. Use
> +`LaTeX-default-author' as initial input."
> + (let ((author (if LaTeX-default-author
> + (read-string "Author(s): " (eval LaTeX-default-author))
Why the `eval'? Just LaTeX-default-author will also do.
Bye,
Tassilo