I noticed this problem mentioned on the fink list. In the
Docs/info directory, executing "make" leads to an Emacs
error:
% pwd
/Users/skip/src/python/head/dist/src/Doc/info
% make
Using emacs to build the info docs
EMACS=emacs ../tools/mkinfo ../lib/lib.tex python-lib.texi
python-lib.info
emacs -batch -q --no-site-file -l /Users/skip/src/python/
head/dist/src/Doc/tools/py2texi.el --eval (setq py2texi-dirs
'("./" "../texinputs/" "/Users/skip/src/python/head/dist/src/
Doc/lib")) --eval (setq py2texi-texi-file-name "python-
lib.texi") --eval (setq py2texi-info-file-name "python-
lib.info") --eval (py2texi "/Users/skip/src/python/head/dist/
src/Doc/lib/lib.tex") -f kill-emacs
Mark set
Args out of range: 405571, 405573
make: *** [python-lib.info] Error 255
The regular expression used to match Latex commands
will skip over an optional argument, but that argument
can't contain a right square bracket. This is okay:
\versionchanged[foo bar baz]{2.3}
but this is not
\versionchanged[foo [bar] baz]{2.3}
The \versionchanged macro at the end of libre.tex violates
this property. I'm not sure what to do about it since
regular expressions can't count nesting depth. A
quick hack appears to be to change the search pattern in
py2texi-process-commands to
"\\\\\\([a-zA-Z*]+\\)\\(\\[[^}]*\\]\\)?"
but I'm not sure what other side-effects that might have
on the info file generation.
|