Function: TeX-arg-date
TeX-arg-date is a byte-compiled function defined in latex.el.
Signature
(TeX-arg-date OPTIONAL &optional PROMPT)
Documentation
Prompt for a date, defaulting to the current date.
If OPTIONAL is non-nil, insert the resulting value as an optional argument, otherwise as a mandatory one. Use PROMPT as the prompt string.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun TeX-arg-date (optional &optional prompt)
"Prompt for a date, defaulting to the current date.
If OPTIONAL is non-nil, insert the resulting value as an optional
argument, otherwise as a mandatory one. Use PROMPT as the prompt
string."
(let ((default (format-time-string TeX-date-format (current-time))))
(TeX-argument-insert
(TeX-read-string
(TeX-argument-prompt optional
(when prompt
(format (concat prompt " (default %s)") default))
(format "Date (default %s)" default))
nil nil default)
optional)))