* command in tex-mode fails for file containing special character
@ 2005-03-27 20:11 Olive
0 siblings, 0 replies; 2+ messages in thread
From: Olive @ 2005-03-27 20:11 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 257 bytes --]
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
[-- Attachment #2: tex-mode.el.patch --]
[-- Type: text/x-patch, Size: 742 bytes --]
*** 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.
[-- Attachment #3: Type: text/plain, Size: 149 bytes --]
_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: command in tex-mode fails for file containing special character
@ 2005-03-29 14:56 Karl Berry
0 siblings, 0 replies; 2+ messages in thread
From: Karl Berry @ 2005-03-29 14:56 UTC (permalink / raw)
Hi Olive,
The commands in (the standard) tex-mode fail for files containing
special characters. I propose (in attachment) a patch which call
Your patch looks fine to me -- I installed it. Thanks!
Happy hacking,
karl
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-29 14:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-27 20:11 command in tex-mode fails for file containing special character Olive
-- strict thread matches above, loose matches on Subject: below --
2005-03-29 14:56 Karl Berry
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).