branch: master
commit a0ba387b2cf614a03143a3f4711a5f7ef7f4b4b2
Author: Ikumi Keita <ik...@ikumi.que.jp>
Commit: Ikumi Keita <ik...@ikumi.que.jp>

    ; Trivial cleanups
    
    * latex.el (LaTeX-environment-menu): Use `TeX-argument-prompt'.
    * tex.el: Delete spurious defvar for `TeX-output-dir'.
---
 latex.el | 4 ++--
 tex.el   | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/latex.el b/latex.el
index 1d203d5e..5fc9f735 100644
--- a/latex.el
+++ b/latex.el
@@ -632,8 +632,8 @@ It may be customized with the following variables:
              (dolist (elt prompts)
                (let* ((optional (vectorp elt))
                       (elt (if optional (elt elt 0) elt))
-                      (arg (TeX-read-string (concat (when optional "(Optional) 
")
-                                                elt ": "))))
+                      (arg (TeX-read-string
+                            (TeX-argument-prompt optional elt nil))))
                  (setq args (concat args
                                     (cond ((and optional (> (length arg) 0))
                                            (concat LaTeX-optop arg 
LaTeX-optcl))
diff --git a/tex.el b/tex.el
index 976fafba..317b8b49 100644
--- a/tex.el
+++ b/tex.el
@@ -92,7 +92,6 @@
 (defvar LaTeX-optop)
 (defvar LaTeX-largest-level)
 (defvar LaTeX-section-list)
-(defvar TeX-output-dir)
 ;; tex-ispell.el
 (defvar TeX-ispell-verb-delimiters)
 ;; Others:

Reply via email to