Barry Warsaw [Thu, 27 May 1999 23:13:21 +0000 (23:13 +0000)]
posix_listdir(): When an error occurs, call
posix_error_with_filename() instead of posix_error(), passing in the
name argument, so you get information on which directory was being
listed.
Fred Drake [Wed, 26 May 1999 13:03:34 +0000 (13:03 +0000)]
Change the example of configuring for large file support under Solaris
to use `getconf LFS_CFLAGS`. Steve Clift (the author of the section
and large file support) agrees that this is the right thing to do.
Barry Warsaw [Mon, 24 May 1999 21:43:37 +0000 (21:43 +0000)]
(py-electric-backspace): I'm not sure this function should be special
casing when py-honor-comment-indentation is nil, but this could be a
religious issue with some. Seems to me we should still be dedenting
such comment lines one level.
Barry Warsaw [Mon, 24 May 1999 19:57:32 +0000 (19:57 +0000)]
(py-parse-state): When running under Emacs -- which doesn't have
buffer-syntactic-context -- just short circuit the TQS test by jumping
to point-min and doing the test from there. For long files, this will
be faster than looping with a re-search-backwards.
Just van Rossum [Fri, 21 May 1999 21:42:27 +0000 (21:42 +0000)]
Oliver Steele writes:
"""Despite the best intentions of Anarchie and Internet Explorer, I often end
up with Python source files (and other text files that I'd like to edit with
PythonIDE) that use '\n' instead of '\r' as a line separator (and therefore
sh
Guido van Rossum [Fri, 21 May 1999 16:12:30 +0000 (16:12 +0000)]
Andy Dustman writes:
I noticed while watching (with lsof) my forking SocketServer app running
that I would get multiple processes listening to the socket. For the most
part, this doesn't hurt things, but if you terminate the server, this can
prevent it from restarting because it cannot bind to the port due to any
running children which also have the socket open. The following one-liner
fixes this.
Fred Drake [Tue, 18 May 1999 17:34:51 +0000 (17:34 +0000)]
Modify to perform "---" to "—" conversion outside of
verbatim-like environments. The list of verbatim-like environments is
a defined by a variable in main().
Fred Drake [Mon, 17 May 1999 14:47:10 +0000 (14:47 +0000)]
\declaremodule: Make this more robust. Only attempt to add an index
entry based on the module type if the type is known.
Otherwise, spit out a warning the the module type
parameter was bad and generate a "plain" index entry.
Without this, the bad module type was emitted as
text.
Problem noticed by processing Michael Hudson's docs for
bytecodehacks.
Fred Drake [Thu, 13 May 1999 18:36:54 +0000 (18:36 +0000)]
make_index_entry(): Remove. Not only did this override the
l2hinit.perl version of the function (which
overrode a version in latex2html), but
do_cmd_index() was overridden. Since
do_cmd_index() was the only caller, we can trash
this.
define_indexing_macro(): New function used during setup to support
more dynamic dispatch for indexing.
process_index_macros(): New function; implement dynamic dispatching
of indexing support functions, allowing many
targets used in indexing to be shared by
multiple index entries. I.e., something like
\index{foo}\bifuncindex{bar} can now share a
single target anchor.
These indexing changes reduce the amount of clutter in the generated
HTML files. In the reference manual, this cuts the number of targets
by 44%. Targets are less affected when generated by environments
rather than macros.
Fred Drake [Fri, 7 May 1999 21:14:28 +0000 (21:14 +0000)]
ExtendedEsisBuilder.push(): Override inherited definition. We don't
want to push nodes into the document, but into a document
fragment, since we're not necesarily working with something
that's well-formed.
Fred Drake [Thu, 6 May 1999 19:37:38 +0000 (19:37 +0000)]
Make it work for "manual" documents as well as "howto" documents.
This still doesn't understand anything about multiple source files or
checking time dependencies.
1. Fixes float divmod so that the quotient it returns is always an integral
value.
2. Fixes float % and float divmod so that the remainder always gets the
right sign (the current code uses a "are the signs different?" test that
doesn't work half the time <wink> when the product of the divisor and the
remainder underflows to 0).
Nathan Paul Simons noticed that the grid_remove() method was missing.
(The difference between grid_remove() and grid_forget() is that the
former remembers the options for the slave.)
I'm still unsure, but couldn't stand the virtual event trickery so tried a
different sin (adding undo_block_start/stop methods to the Text instance in
EditorWindow.py). Like it or not, it's efficient and works <wink>. Better
idea?
Give the attached a whirl. Even if you hate the implementation, I think
you'll like the results. Think I caught all the "block edit" cmds,
including Format Paragraph, plus subtler ones involving smart indents and
backspacing.
[W]hile trying to dope out how redirection works, stumbled into two
possible glitches. In the first, it doesn't appear to make sense to try to
rename a command that's already been destroyed; in the second, the name
"previous" doesn't really bring to mind "ignore the previous value" <wink>.
Fred Drake [Mon, 3 May 1999 14:29:07 +0000 (14:29 +0000)]
Make sure latex2html doesn't produce a hard link between foo/foo.html
and foo/index.html. Make a copy instead. (Appearantly some tar
openers on non-Unixlike systems can't handle hard links.)
Fred Drake [Mon, 3 May 1999 14:27:45 +0000 (14:27 +0000)]
Make sure latex2html doesn't produce a hard link from $part/$part.html
and $part/index.html. Make a copy instead. (Appearantly some tar
openers on non-Unixlike systems can't handle hard links.)
Greg Ward [Sun, 2 May 1999 21:42:05 +0000 (21:42 +0000)]
The 'copy_file()' and 'copy_tree()' functions in util.py now have
meaningful return values: respectively, whether the copy was done, and
the list of files that were copied. This meant some trivial changes in
core.py as well: the Command methods that mirror 'copy_file()' and
'copy_tree()' have to pass on their return values.
Greg Ward [Sun, 2 May 1999 21:39:13 +0000 (21:39 +0000)]
Rearranged things so that compilation of .py files is the responsibility
of the 'install_py' command rather than 'build_py'. Obviously, this
meant that the 'build_py' and 'install_py' modules had to change; less
obviously, so did 'install' and 'build', since these higher-level
commands must make options available to control the lower-level
commands, and some compilation-related options had to migrate with the
code.
Fred Drake [Thu, 29 Apr 1999 19:06:56 +0000 (19:06 +0000)]
make_nav_panel(): Remove the spurious NAME="tex2html\d+" attributes
added to the anchors in the navigation bars. These
are added somewhere deep with l2h, and are stupid.
Fred Drake [Thu, 29 Apr 1999 15:42:19 +0000 (15:42 +0000)]
Generate index.html from index.html.in. This avoids having to modify the
index to update the version number; boilerplate.tex remains the only document
source for this information.