Commit 4f45adda authored by Jim Blandy's avatar Jim Blandy
Browse files

* tex-mode.el (tex-send-command): Fix the command sent so that no

        blank is inserted when replacing the asterisk with the file name.
parent 210b2b4f
......@@ -656,11 +656,14 @@ preceded by a blank, to COMMAND. If FILE is nil, no substitution will be made
in COMMAND. COMMAND can be any expression that evaluates to a command string."
(let* ((cmd (eval command))
(star (string-match "\\*" cmd)))
(star (string-match "\\*" cmd))
(front (substring cmd 0 star))
(back (if star (substring cmd (1+ star)) "")))
(comint-proc-query (get-process "tex-shell")
(concat (substring cmd 0 star)
(if file (concat " " file) "")
(if star (substring cmd (1+ star) nil) "")
(if file (if star (concat front file back)
(concat cmd " " file))
(if background "&\n" "\n"))))))
(defun tex-delete-last-temp-files ()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment