diff options
| author | Karl Berry | 2005-03-31 00:24:57 +0000 |
|---|---|---|
| committer | Karl Berry | 2005-03-31 00:24:57 +0000 |
| commit | ace4dad6d2edc4cb8b99637aeeda0cd3e0cb7e08 (patch) | |
| tree | a3da1514fa6206b3be28911709310eef4e48b3cd /lisp/textmodes | |
| parent | 5ee2cf8a5a6e0166b6ec123764db2733caff60b8 (diff) | |
| download | emacs-ace4dad6d2edc4cb8b99637aeeda0cd3e0cb7e08.tar.gz emacs-ace4dad6d2edc4cb8b99637aeeda0cd3e0cb7e08.zip | |
shell-quote-argument, not comint-quote-filename
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 285f25dec88..cc9ed23c6be 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -1887,8 +1887,8 @@ FILE is typically the output DVI or PDF file." | |||
| 1887 | (prog1 (file-name-directory (expand-file-name file)) | 1887 | (prog1 (file-name-directory (expand-file-name file)) |
| 1888 | (setq file (file-name-nondirectory file)))) | 1888 | (setq file (file-name-nondirectory file)))) |
| 1889 | (root (file-name-sans-extension file)) | 1889 | (root (file-name-sans-extension file)) |
| 1890 | (fspec (list (cons ?r (comint-quote-filename root)) | 1890 | (fspec (list (cons ?r (shell-quote-argument root)) |
| 1891 | (cons ?f (comint-quote-filename file)))) | 1891 | (cons ?f (shell-quote-argument file)))) |
| 1892 | (default (tex-compile-default fspec))) | 1892 | (default (tex-compile-default fspec))) |
| 1893 | (list default-directory | 1893 | (list default-directory |
| 1894 | (completing-read | 1894 | (completing-read |
| @@ -1909,14 +1909,14 @@ FILE is typically the output DVI or PDF file." | |||
| 1909 | (compile-command | 1909 | (compile-command |
| 1910 | (if star | 1910 | (if star |
| 1911 | (concat (substring command 0 star) | 1911 | (concat (substring command 0 star) |
| 1912 | (comint-quote-filename file) | 1912 | (shell-quote-argument file) |
| 1913 | (substring command (1+ star))) | 1913 | (substring command (1+ star))) |
| 1914 | (concat command " " | 1914 | (concat command " " |
| 1915 | tex-start-options | 1915 | tex-start-options |
| 1916 | (if (< 0 (length tex-start-commands)) | 1916 | (if (< 0 (length tex-start-commands)) |
| 1917 | (concat | 1917 | (concat |
| 1918 | (shell-quote-argument tex-start-commands) " ")) | 1918 | (shell-quote-argument tex-start-commands) " ")) |
| 1919 | (comint-quote-filename file))))) | 1919 | (shell-quote-argument file))))) |
| 1920 | (tex-send-tex-command compile-command dir))) | 1920 | (tex-send-tex-command compile-command dir))) |
| 1921 | 1921 | ||
| 1922 | (defun tex-send-tex-command (cmd &optional dir) | 1922 | (defun tex-send-tex-command (cmd &optional dir) |