Hello

I tried to implement the feature I mentioned yesterday would be easy,
well I have a problem with the symbol ':

Can somebody please tell me of how to pass the ' 
to a shell-command?

On the command line the command in question, which works, is 
latex -jobname=teil1 
'\includeonly{teil1}\edef\jobname{\detokenize{haupt}}\input{haupt}'

In my experimental package (using us-ascii encoding) 

I have the following code


(defvar include-command                   "/usr/bin/latex -jobname=%s
'\includeonly{%s}\edef\jobname{\detokenize{%s}}\input{%s}'"
)


And then later 

        (shell-command
         (format include-command
                         origname 
                         origname 
                         currentname
                         currentname
                         ))

This results in the following error message

--8<------------------------schnipp------------------------->8---
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
! Text line contains an invalid character.
<*> includeonly{teil1}^^[
                         defjobname{^^?etokenize{/home/oub/ALLES/tex/test/ha...

? 
! Emergency stop.
<*> includeonly{teil1}^^[
                         defjobname{^^?etokenize{/home/oub/ALLES/tex/test/ha...

No pages of output.
Transcript written on includeonly{teil1}teil1.log.
--8<------------------------schnapp------------------------->8---


So it looks like a coding problem to me or I have set the syntax in the
defvar not correctly.

Any ideas?

thanks

Uwe Brauer 




_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to