Answers:
你不能。根据helm
作者的说法,这是AUCTEX的错误,因为未completing-read
正确使用使得helm-mode
原样返回候选者。链接的线程中描述了一种可能的解决方法,它可以使AUCTEX的作者针对每个实例修复该错误,也可以自行对其进行completing-read
修补。
为此,应该执行以下操作(未经测试,大多数代码均来自AUCTEX):
(eval-after-load 'latex
'(defun LaTeX-environment (arg)
(interactive "*P")
(let ((environment (completing-read (concat "Environment type: (default "
(if (TeX-near-bobp)
"document"
LaTeX-default-environment)
") ")
(LaTeX-environment-list) nil t nil
'LaTeX-environment-history LaTeX-default-environment)))
;; Get default
(cond ((and (zerop (length environment))
(TeX-near-bobp))
(setq environment "document"))
((zerop (length environment))
(setq environment LaTeX-default-environment))
(t
(setq LaTeX-default-environment environment)))
(let ((entry (assoc environment (LaTeX-environment-list))))
(if (null entry)
(LaTeX-add-environments (list environment)))
(if arg
(LaTeX-modify-environment environment)
(LaTeX-environment-menu environment))))))