bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

command in tex-mode fails for file containing special character


From: Olive
Subject: command in tex-mode fails for file containing special character
Date: Sun, 27 Mar 2005 22:11:20 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040618

Hello,

The commands in (the standard) tex-mode fail for files containing special characters. I propose (in attachment) a patch which call "shell-quote-argument" at the appropriate place (to be applied against tex-mode.el in emacs version 21.3.2)

Olive
*** tex-mode.el.orig    2005-02-23 10:41:13.000000000 +0100
--- tex-mode.el 2005-03-27 21:54:19.000000000 +0200
***************
*** 1352,1359 ****
            (concat
             (if file
                 (if star (concat (substring cmd 0 star)
!                                 file (substring cmd (1+ star)))
!                  (concat cmd " " file))
               cmd)
             (if background "&" ""))))
        ;; Switch to buffer before checking for subproc output in it.
--- 1352,1359 ----
            (concat
             (if file
                 (if star (concat (substring cmd 0 star)
!                                 (shell-quote-argument file) (substring cmd 
(1+ star)))
!                  (concat cmd " " (shell-quote-argument file) ))
               cmd)
             (if background "&" ""))))
        ;; Switch to buffer before checking for subproc output in it.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]