"Michael Forster" <[EMAIL PROTECTED]> writes:
> Is that too old? I know nothing about texinfo, but I suspect a different
> problem. Makeinfo actually chokes on the following two lines in
> preview/preview-dtxdoc.texi:
>
> \DescribeMacro{\PreviewOpen}
> \DescribeMacro{\PreviewClose}
>
> This looks different than other such lines in the file. Could it be line 65 in
> preview-dtxdoc.pl?
>
> if (s/\\DescribeMacro\{(.*?)\}[ \n]/[EMAIL PROTECTED] $1\n/) {
>
> Maybe the [ \n] matches on unix, but not on Windows? Note that cvs translates
> line endings if the file is checked in as ASCII.
Well, looks like \n is not a single character on Windows. Does the
following patch help?
--- preview-dtxdoc.pl 22 Mar 2005 03:22:52 +0100 1.8
+++ preview-dtxdoc.pl 18 May 2005 21:51:05 +0200
@@ -62,9 +62,9 @@
s/\\char.//g;
s/\\raggedright\n//g;
s/\\DescribeEnv\{(.*?)\} /[EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]/;
- if (s/\\DescribeMacro\{(.*?)\}[ \n]/[EMAIL PROTECTED] $1\n/) {
+ if (s/\\DescribeMacro\{(.*?)\}( |\n)/[EMAIL PROTECTED] $1\n/) {
# Index entries for two important macros
- if (/(\\Preview(Macro|Environment))[ \n]/) {
+ if (/(\\Preview(Macro|Environment))( |\n)/) {
$_ .= "[EMAIL PROTECTED] $1\n";
}
}
Actually, we get into pretty much the opposite problem as expected, I
think. Unix file endings will not get recognized by \n in Perl. This
is really a bunch of crummy junk if I ever saw it. I have no idea how
to deal with this: a distribution tarball will obviously not
distinguish between binary and non-binary files and we seemingly need
DOS line endings after all.
And I really do not want to think about what we have to expect on
Macintoshes.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex