[Top][All Lists]

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

Re: The correct patch

From: Olive
Subject: Re: The correct patch
Date: Wed, 30 Mar 2005 00:36:39 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040618

Karl Berry wrote:

> In this patch I have replaced the call to "comint-quote-argument" with "shell-quote-argument" which I think is much better.
> That part seems fine, but can you explain this part of the patch?
> !   (setq tex-trailer "\\end\\s-*{document}\n")
> --- 781,787 ----
> !   (setq tex-trailer "\\end{document}\n")

tex-trailer is the string to insert at the end of a region to build the temporary file to compile. It is not a regular expression to search; just a normal string to insert.

> I'm not saying it's wrong, just want to understand it, and it seems
> faster to ask you than research it from scratch :).  I see
> tex-end-of-header has the \\s-*.

Yes, tex-end-of-header is the string to search in the origial document to find the \begin{document}: this is a regular expression.

To answer your previous question, my version of TeX fail with filename with space (I says it fails as is, I have not tried to play with the catcode) but I know that miktex is fine with. But as you says this is off topic.

address@hidden ~]$ latex "this is a try.tex"
This is TeX, Version 3.14159 (Web2C 7.4.5)
! I can't find file `this'.
<*> this
         is a try.tex
Please type another input file name:



reply via email to

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