[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: |
Mosè Giordano |
Subject: |
Re: [AUCTeX-devel] Use user-full-name as initial input to author macro |
Date: |
Tue, 16 Apr 2013 19:57:10 +0200 |
Hi Tassilo,
2013/4/16 Tassilo Horn <address@hidden>:
>> +(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.
Because there is the possible value
(const :tag "User name in Emacs" user-full-name)
If one sets `LaTeX-default-author' using customize interface (few
people use customize, but... who knows?) and chooses the previous
option, its value will be 'user-full-name (quoted). But the simplest
solution is to remove that value, one can easily restore default value
erasing customization.
Thank you, bye
Mosè