Fred Drake [Mon, 11 May 1998 18:23:35 +0000 (18:23 +0000)]
In package Override, use the getcwd() function from the Cwd module instead of
the one from Override.pm (part of latex2html).
Absolutize the TEXINPUTS environment variable, since we can't count on
latex2html doing it for us (even though I sent in a patch, and it really
should).
Implement round() slightly different, so that for negative ndigits no
additional errors happen in the last step. The trick is to avoid
division by 0.1**n -- multiply by 10.0**n instead.
Fix by Sean Reifschneider:
- When facility not specified to syslog() method, use default from openlog()
(This is how it was claimed to work in the documentation)
- Potential resource leak of o_ident, now cleaned up in closelog()
- Minor comment accuracy fix.
Make Tim O'Malley's requested change: in FieldStorage.__init__(), when
method='GET', always get the query string from environ['QUERY_STRING']
or sys.argv[1] -- ignore an explicitly passed in fp.
Fred Drake [Fri, 8 May 1998 04:02:42 +0000 (04:02 +0000)]
l2h target: Do the "right thing" regarding the paper-*/ subdirs as the other
"big" targets. Fix is to set the TEXINPUTS on the command line of the
sub-make.
Fred Drake [Fri, 8 May 1998 04:00:56 +0000 (04:00 +0000)]
Some versions of latex2html don't automatically append the .tex extension to
the name of the main .tex source file if it's not in the current directory.
Fred Drake [Fri, 8 May 1998 03:46:38 +0000 (03:46 +0000)]
$(KPSEWHICH): Use the older style of calling kpsewhich with the arg
specifying *which* type of path to search. This works for both
teTeX 0.4 and 0.9. This is what we call portability these days! ;-)
Fred Drake [Thu, 7 May 1998 19:30:16 +0000 (19:30 +0000)]
Cleaned out some more cruft.
Added some new cruft.
For some of the "big" targets, force things to happen in the "right"
subdirectory, i.e., "make" will build the DVI and PostScript files in the
paper-letter/ directory, and "make PAPER=a4" will build DVI and PostScript
files in the paper-a4/ directory.
Fred Drake [Thu, 7 May 1998 15:03:25 +0000 (15:03 +0000)]
Support the new directory structure.
Some targets may be a little raw, but the basic formatting targets are all
tested, primarily for use from the subdirs. There are probably a few
gotchas, and the paper-*/ directories could use "helper" Makefiles.
Jack Jansen [Thu, 7 May 1998 13:08:58 +0000 (13:08 +0000)]
An applet with Popt and GUSI preferences but without alis resource
didn't work, because the resource file chain was incomplete when we
tried to open the preference file. Fixed.
Fred Drake [Thu, 7 May 1998 01:38:16 +0000 (01:38 +0000)]
New helper script to build the .dvi for a Python manual; usable for the
api, ext, ref, and tut manuals. The Library Reference requires too much
special index processing to make it beneficial to extend this to support
it.
Fred Drake [Wed, 6 May 1998 17:28:23 +0000 (17:28 +0000)]
When a file name is selected ("OK" button, <Return> in the filename entry),
and the "key" keyword parameter was used to invoke .go(), use the directory
of the selected file as the stored directory to return to when the same key
is used again. This is useful since the user may well entry at least part
of the path in the filename box instead of doing a lot of clicking around in
the listboxes.
After variable expansion, what was formerly a single word can now
contain multiple words, all of which may have to be joined with the
path of the extension directory.
(Sjoerd)
Patches to make the proxy code work again. (Why does that always break
as soon as I change things even just a little bit? :-) Even works
when accessing a password-protected page through the proxy. Prompted
by complaints from, and correct operation verified by, Nigel O'Brian.
Take out the check for AUTH-LOGIN or AUTH=LOGIN in login() -- some
servers support LOGIN but don't advertise it. If it's not supported
the protocol will respond NO. Approved by Piers Lauder.
Another optimization, probably of negligeable effect: instead of
calling self.tk.getint() and self.tk.getdouble(), call the globals
getint() and getdouble(), which in turn are just names for the Python
builtins int() and double(). (Making them globals actually save a
dict lookup compared to using the built-in.) The corresponding
methods of class Misc have been changed similarly. (Note that
getboolean() hasn't been changed because there's no Python
equivalent.)
The use of int() and float() has another advantage: if/when Tcl calls
can actually return Tcl objects with other types than string, use of
int() and float() is essential.
Save a tiny bit of time: self.tk.call takes a tuple argument so it's
not needed to say apply(self.tk.call, t); self.tk.call(t) has the same
effect. This cuts down tremendously on the number of apply() calls
made. No measurable effect, but at the very least it saves the lookup
of apply() in the globals!
Still somewhat experimental speedup. This appears to speed up the
most common interface to Tcl, the call() method, by maybe 20-25%.
The speedup code avoids the construction of a Tcl command string from
the argument list -- the Tcl argument list is immediately parsed back
by Tcl_Eval() into a list that is *guaranteed* (by Tcl_Merge()) to be
exactly the same list, so instead we look up the command info and call
the command function directly. If the lookup fails, we fall back to
the old method (Tcl_Merge() + Tcl_Eval()) so we don't need to worry
about special cases like undefined commands or the occasional command
("after") that sets the info.proc pointer to NULL -- let TclEval()
deal with these.