Function: TeX-arg-define-macro-arguments
TeX-arg-define-macro-arguments is a byte-compiled function defined in
latex.el.
Signature
(TeX-arg-define-macro-arguments OPTIONAL &optional PROMPT)
Documentation
Prompt for the number of arguments for a LaTeX macro.
If this is non-zero, also prompt for the default value for the first argument.
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-define-macro-arguments (optional &optional prompt)
"Prompt for the number of arguments for a LaTeX macro.
If this is non-zero, also prompt for the default value for the
first argument.
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 ((arg-count (TeX-read-string
(TeX-argument-prompt optional prompt
"Number of arguments"
nil))))
(unless (or (string= arg-count "0")
(string= arg-count ""))
(TeX-argument-insert arg-count optional)
(unless (string-equal LaTeX-version "2")
(TeX-arg-default-argument-value optional)))))