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 | |
| parent | 5ee2cf8a5a6e0166b6ec123764db2733caff60b8 (diff) | |
| download | emacs-ace4dad6d2edc4cb8b99637aeeda0cd3e0cb7e08.tar.gz emacs-ace4dad6d2edc4cb8b99637aeeda0cd3e0cb7e08.zip | |
shell-quote-argument, not comint-quote-filename
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 8 |
2 files changed, 15 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 157e03282c4..f123732ed9e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2005-03-31 Karl Berry <karl@freefriends.org> | ||
| 2 | |||
| 3 | * textmodes/tex-mode.el (tex-compile): shell-quote-argument, | ||
| 4 | not comint-quote-filename. | ||
| 5 | |||
| 6 | 2005-03-31 Olive Lin <olive.lin@versateladsl.be> (tiny change) | ||
| 7 | |||
| 8 | * textmodes/tex-mode.el (tex-start-tex) shell-quote-argument, | ||
| 9 | not comint-quote-filename. | ||
| 10 | |||
| 1 | 2005-03-31 Thien-Thi Nguyen <ttn@gnu.org> | 11 | 2005-03-31 Thien-Thi Nguyen <ttn@gnu.org> |
| 2 | 12 | ||
| 3 | * help-fns.el (help-with-tutorial): Revert last change. | 13 | * help-fns.el (help-with-tutorial): Revert last change. |
| @@ -157,7 +167,7 @@ | |||
| 157 | * vc.el (vc-do-command): Use a pipe for async processes, so password | 167 | * vc.el (vc-do-command): Use a pipe for async processes, so password |
| 158 | prompts don't show up at places where the user can't reply. | 168 | prompts don't show up at places where the user can't reply. |
| 159 | 169 | ||
| 160 | 2005-03-29 Olive Lin <olive.lin@versateladsl.be> | 170 | 2005-03-29 Olive Lin <olive.lin@versateladsl.be> (tiny change) |
| 161 | 171 | ||
| 162 | * textmodes/tex-mode.el (tex-send-command): shell-quote-argument | 172 | * textmodes/tex-mode.el (tex-send-command): shell-quote-argument |
| 163 | on the file name we pass to the inferior shell. | 173 | on the file name we pass to the inferior shell. |
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) |