Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Q] Are those spaces important ?

0 views
Skip to first unread message

Didier Verna

unread,
Nov 13, 2007, 6:06:57 AM11/13/07
to

Hello,

the IfFileExists macro has the following line: \openin\@inputcheck#1 %
I can also see some trailing spaces at other places, like this one:
\immediate\closeout15 %

Are those spaces important ? What's their use ? I'm asking because in
one of my packages, FiNk, the IfFileExists macro is redefined, and the
space in \@inputcheck#1 % seems to trigger a problem in one of my
users'document.


Thanks !

--
Resistance is futile. You will be jazzimilated.

Didier Verna, did...@lrde.epita.fr, http://www.lrde.epita.fr/~didier

EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (1) 44 08 01 85
94276 Le Kremlin-Bicętre, France Fax.+33 (1) 53 14 59 22 did...@xemacs.org

Robin Fairbairns

unread,
Nov 13, 2007, 6:36:27 AM11/13/07
to
Didier Verna <did...@lrde.epita.fr> writes:
>the IfFileExists macro has the following line: \openin\@inputcheck#1 %

this is because \openin is using knuth's syntax for filnames, which
are terminated by space (or eol).

>I can also see some trailing spaces at other places, like this one:
>\immediate\closeout15 %

that's one of the things ben lee is confused about in the tex book: no
explicit termination of a number is a well-known booby-trap.

>Are those spaces important ? What's their use ? I'm asking because in
>one of my packages, FiNk, the IfFileExists macro is redefined, and the
>space in \@inputcheck#1 % seems to trigger a problem in one of my
>users'document.

does the above help?
--
Robin Fairbairns, Cambridge

Didier Verna

unread,
Nov 13, 2007, 7:01:57 AM11/13/07
to
Robin Fairbairns wrote:

> Didier Verna <did...@lrde.epita.fr> writes:
>>the IfFileExists macro has the following line: \openin\@inputcheck#1 %
>
> this is because \openin is using knuth's syntax for filnames, which
> are terminated by space (or eol).
>
>>I can also see some trailing spaces at other places, like this one:
>>\immediate\closeout15 %
>
> that's one of the things ben lee is confused about in the tex book: no
> explicit termination of a number is a well-known booby-trap.

OK, so the first case is a requirement, and the second a safety
precaution. Thanks.

Morten Høgholm

unread,
Nov 13, 2007, 11:58:09 AM11/13/07
to
On Tue, 13 Nov 2007 12:06:57 +0100, Didier Verna wrote:

>
> Hello,
>
> the IfFileExists macro has the following line: \openin\@inputcheck#1 %
> I can also see some trailing spaces at other places, like this one:
> \immediate\closeout15 %
>
> Are those spaces important ? What's their use ? I'm asking because in
> one of my packages, FiNk, the IfFileExists macro is redefined, and the
> space in \@inputcheck#1 % seems to trigger a problem in one of my
> users'document.

I assume this was what was reported on the TeX on Mac OS X list? In that
case it is *not* the space that's the bug. True, the space does make the
bug disappear but only in the same sense removing the tires from my bike
will prevent me from getting a flat... :-) See
<http://tug.org/pipermail/macostex-archives/2007-November/032856.html> for
more.

--
Morten

Didier Verna

unread,
Nov 13, 2007, 12:10:55 PM11/13/07
to
Morten Høgholm <morten....@gmail.com> wrote:

> I assume this was what was reported on the TeX on Mac OS X list? In
> that case it is *not* the space that's the bug.

Yup. Besides, as I have reported on the list (but not sure if the
message went through because I'm not a subscriber), the latest version
of FiNK doesn't redefine IfFileExists (only InputIfFileExists), and the
bug remains.

> True, the space does make the bug disappear but only in the same sense
> removing the tires from my bike will prevent me from getting a flat...
> :-)

Right :-)

--
Resistance is futile. You will be jazzimilated.

EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (1) 44 08 01 85

94276 Le Kremlin-Bicêtre, France Fax.+33 (1) 53 14 59 22 did...@xemacs.org

Didier Verna

unread,
Nov 13, 2007, 12:18:06 PM11/13/07
to
Morten Høgholm <morten....@gmail.com> wrote:

Thanks for that BTW. I'll issue a bugfix release ASAP.

--
Resistance is futile. You will be jazzimilated.

EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (1) 44 08 01 85

94276 Le Kremlin-Bicêtre, France Fax.+33 (1) 53 14 59 22 did...@xemacs.org

Didier Verna

unread,
Nov 14, 2007, 4:04:07 AM11/14/07
to
I wrote:

> Thanks for that BTW. I'll issue a bugfix release ASAP.

Done! FiNK v2.1 will make its way through CTAN like the Morris worm :-)

--
Resistance is futile. You will be jazzimilated.

EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (1) 44 08 01 85

94276 Le Kremlin-Bicętre, France Fax.+33 (1) 53 14 59 22 did...@xemacs.org

0 new messages