4 Oct 2011 11:06
Wrong usage of completing-read default argument
Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
2011-10-04 09:06:25 GMT
2011-10-04 09:06:25 GMT
Hi all,
In many places auctex use the default argument formatted in the prompt
argument, could you fix that?
e.g in TeX-command-query:
#+BEGIN_SRC lisp
(answer (or TeX-command-force
(completing-read
(concat "Command: (default " default ") ")
(TeX-mode-specific-command-list major-mode) nil t
nil 'TeX-command-history))))
#+END_SRC
Should use instead:
#+BEGIN_SRC lisp
(answer (or TeX-command-force
(completing-read
"Command: "
(TeX-mode-specific-command-list major-mode) nil t
nil 'TeX-command-history default))))
#+END_SRC
Thanks.
--
--
𝕋𝕙𝕚𝕖𝕣𝕣𝕪
(Continue reading)
RSS Feed