aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Berry2005-05-28 16:57:21 +0000
committerKarl Berry2005-05-28 16:57:21 +0000
commitb5352ff5ec4f313dc5e4035041fbae2d21029281 (patch)
tree0ea9f27c9a6fe6e60d1bc1e2ebe9a4b7f44e92a5
parent8164904190cf82406b0dbd9b5a4437635caeb0dc (diff)
downloademacs-b5352ff5ec4f313dc5e4035041fbae2d21029281.tar.gz
emacs-b5352ff5ec4f313dc5e4035041fbae2d21029281.zip
remove extraneous calls to shell-quote-argument
-rw-r--r--lisp/ChangeLog13
-rw-r--r--lisp/textmodes/tex-mode.el18
2 files changed, 16 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8963e850a18..839f7783404 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12005-05-28 Karl Berry <karl@gnu.org>
2
3 * textmodes/tex-mode.el: now that tex-send-command calls
4 shell-quote-argument (2005-03-31 change), remove all calls to
5 shell-quote-argument; they all end up invoking tex-send-command.
6 The double quoting loses on filenames with non-safe characters,
7 such as "@". Reported by Frederik Fouvry.
8
12005-05-29 Nick Roberts <nickrob@snap.net.nz> 92005-05-29 Nick Roberts <nickrob@snap.net.nz>
2 10
3 * progmodes/gdb-ui.el (gdb-assembler-custom): Be more careful 11 * progmodes/gdb-ui.el (gdb-assembler-custom): Be more careful
@@ -3106,11 +3114,6 @@
3106 (fill-newline): Use fill-text-properties-at instead of 3114 (fill-newline): Use fill-text-properties-at instead of
3107 text-properties-at. 3115 text-properties-at.
3108 3116
31092005-03-31 Karl Berry <karl@freefriends.org>
3110
3111 * textmodes/tex-mode.el (tex-compile): Use shell-quote-argument,
3112 not comint-quote-filename.
3113
31142005-03-31 Olive Lin <olive.lin@versateladsl.be> (tiny change) 31172005-03-31 Olive Lin <olive.lin@versateladsl.be> (tiny change)
3115 3118
3116 * textmodes/tex-mode.el (tex-start-tex) Use shell-quote-argument, 3119 * textmodes/tex-mode.el (tex-start-tex) Use shell-quote-argument,
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index e3efa32d551..1b91afeac8d 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1633,11 +1633,11 @@ If NOT-ALL is non-nil, save the `.dvi' file."
1633(defvar tex-compile-commands 1633(defvar tex-compile-commands
1634 '(((concat "pdf" tex-command 1634 '(((concat "pdf" tex-command
1635 " " (if (< 0 (length tex-start-commands)) 1635 " " (if (< 0 (length tex-start-commands))
1636 (shell-quote-argument tex-start-commands)) " %f") 1636 tex-start-commands) " %f")
1637 t "%r.pdf") 1637 t "%r.pdf")
1638 ((concat tex-command 1638 ((concat tex-command
1639 " " (if (< 0 (length tex-start-commands)) 1639 " " (if (< 0 (length tex-start-commands))
1640 (shell-quote-argument tex-start-commands)) " %f") 1640 tex-start-commands) " %f")
1641 t "%r.dvi") 1641 t "%r.dvi")
1642 ("yap %r &" "%r.dvi") 1642 ("yap %r &" "%r.dvi")
1643 ("xdvi %r &" "%r.dvi") 1643 ("xdvi %r &" "%r.dvi")
@@ -1900,8 +1900,8 @@ FILE is typically the output DVI or PDF file."
1900 (prog1 (file-name-directory (expand-file-name file)) 1900 (prog1 (file-name-directory (expand-file-name file))
1901 (setq file (file-name-nondirectory file)))) 1901 (setq file (file-name-nondirectory file))))
1902 (root (file-name-sans-extension file)) 1902 (root (file-name-sans-extension file))
1903 (fspec (list (cons ?r (shell-quote-argument root)) 1903 (fspec (list (cons ?r root)
1904 (cons ?f (shell-quote-argument file)))) 1904 (cons ?f file)))
1905 (default (tex-compile-default fspec))) 1905 (default (tex-compile-default fspec)))
1906 (list default-directory 1906 (list default-directory
1907 (completing-read 1907 (completing-read
@@ -1922,14 +1922,13 @@ FILE is typically the output DVI or PDF file."
1922 (compile-command 1922 (compile-command
1923 (if star 1923 (if star
1924 (concat (substring command 0 star) 1924 (concat (substring command 0 star)
1925 (shell-quote-argument file) 1925 file
1926 (substring command (1+ star))) 1926 (substring command (1+ star)))
1927 (concat command " " 1927 (concat command " "
1928 tex-start-options 1928 tex-start-options
1929 (if (< 0 (length tex-start-commands)) 1929 (if (< 0 (length tex-start-commands))
1930 (concat 1930 (concat tex-start-commands " "))
1931 (shell-quote-argument tex-start-commands) " ")) 1931 file))))
1932 (shell-quote-argument file)))))
1933 (tex-send-tex-command compile-command dir))) 1932 (tex-send-tex-command compile-command dir)))
1934 1933
1935(defun tex-send-tex-command (cmd &optional dir) 1934(defun tex-send-tex-command (cmd &optional dir)
@@ -2232,8 +2231,7 @@ is provided, use the alternative command, `tex-alt-dvi-print-command'."
2232 (tex-start-shell)) 2231 (tex-start-shell))
2233 (tex-send-command 2232 (tex-send-command
2234 (if alt tex-alt-dvi-print-command tex-dvi-print-command) 2233 (if alt tex-alt-dvi-print-command tex-dvi-print-command)
2235 (shell-quote-argument 2234 print-file-name-dvi
2236 print-file-name-dvi)
2237 t)))) 2235 t))))
2238 2236
2239(defun tex-alt-print () 2237(defun tex-alt-print ()