Fred Drake [Fri, 3 Apr 1998 05:16:31 +0000 (05:16 +0000)]
Normalized case rules in section headings.
Moved stuff from "Recent Additions to 1.1" to "More on Defining Functions".
This means there's now a short section on "Defining Functions" immediately
followed by a long section "More on Defining Functions."
Fred Drake [Thu, 2 Apr 1998 20:14:04 +0000 (20:14 +0000)]
This fixes a (minor) problem discovered by AMK when you don't want any
special markup for the first column of a table using {tableii} or {tableiii}.
In LaTeX, this requires using "textrm" as the formatting function, and this
is needed to remove the bogus "<textrm>" that gets generated otherwise.
There should probably be a more general mapping of specified markup to useful
markup, but that doesn't appear needed at the moment.
do_env_tableii(), do_env_tableiii(): If the markup for the first column is
\textrm, make it empty.
do_cmd_lineii(), do_cmd_lineiii(): If the markup for the first column is
empty, don't add markup around the text.
Fred Drake [Thu, 2 Apr 1998 06:47:24 +0000 (06:47 +0000)]
Markup consistency & nits.
Fix typo in a C code example: KeyError is spelled PyExc_KeyError in C; the
"K" is upper case!
Some index entries.
On function signatures, always use parameter names. Make return types match
what's in the header files. When the return type is a pointer, always omit
the space between te type name and the "*"; leaving it in results in
Barry Warsaw [Wed, 1 Apr 1998 21:13:51 +0000 (21:13 +0000)]
Two patches for Emacs 20.2 compatibility:
(py-compute-indentation): int-to-char isn't defined in Emacs, but we
don't really need it anyway, so just remove this conversion. XEmacs
is happy either way.
(py-parse-state): The Emacs branch (i.e. w/o buffer-syntactic-context)
wasn't adjusting point correctly.
Guido van Rossum [Tue, 31 Mar 1998 14:31:39 +0000 (14:31 +0000)]
Tim Peters' program for checking whether a program's indentation is
sensitive to tab size. Uses a different strategy than tabpolice.py,
but has compatible usage.
Fred Drake [Fri, 27 Mar 1998 05:22:53 +0000 (05:22 +0000)]
Add comments about several of the environments.
Cleaned up some problems that caused minor warnings.
Added environments for object methods and members, with non-indexing variants.
This includes reduced use of the indexsubitem setting, allowing more robust
index generation.
Guido van Rossum [Thu, 26 Mar 1998 22:12:22 +0000 (22:12 +0000)]
Don't write "if self.dict: self.dict.close()"; just write
"self.dict.close()" and ignore the exception. The "if self.dict:"
part would be calculated through len(self.dict.keys()), which is very
expensive for a large dictionary...
Barry Warsaw [Thu, 26 Mar 1998 16:08:59 +0000 (16:08 +0000)]
(py-postprocess-output-buffer): Return t if an exception was found,
otherwise return nil.
(py-execute-region): When executing the buffer asynchronously in a
subprocess, if an exception occurred, show both the output buffer and
the file containing the exception, leaving point on the source line
containing bottom-most error in the traceback. If no exception
occurred, jump to the output buffer (no change).
Fred Drake [Wed, 25 Mar 1998 14:53:43 +0000 (14:53 +0000)]
Change uses of \pdfinfo and \pdfcatalog to use the new syntax from the
latest pdftex. (Which we have here at CNRI.) This makes the PDF targets
work again.
Barry Warsaw [Fri, 20 Mar 1998 17:06:11 +0000 (17:06 +0000)]
Removed all the mixed indentation face stuff. It's not as helpful as
it at first seems. I think we've got a good idea of what to do, but
it'll be a bit of work... for later.
Barry Warsaw [Thu, 19 Mar 1998 22:48:02 +0000 (22:48 +0000)]
(py-in-literal, py-fast-in-literal): New functions (mostly) stolen
from CC Mode.
(py-guess-indent-offset): Teach it about colons in `literals'
(e.g. comments and strings). Don't false hit colons in literals; keep
searching for a real block introducing line.
Barry Warsaw [Thu, 19 Mar 1998 22:33:06 +0000 (22:33 +0000)]
#minor change to eval-while-compile so that it must both find
#custom.el and have an up-to-date version (i.e. one that defines
#defcustom -- which Emacs 19.34's by default does not).
Barry Warsaw [Thu, 19 Mar 1998 21:52:06 +0000 (21:52 +0000)]
(py-tab-face, python-font-lock-keywords): Color all tabs at the start
of a line in py-tab-face to aid in seeing mixed tab/space indentation.
This face defaults to the `default' face so it is unobtrusive until
you `M-x customize-face' py-tab-face to something obnoxious like
"Yellow".