Staging
v0.5.1
https://github.com/python/cpython
Revision a0ee8cd982940e57a2df05de9be0bd16b561cb3b authored by Barry Warsaw on 26 November 1997, 01:04:44 UTC, committed by Barry Warsaw on 26 November 1997, 01:04:44 UTC
to the Web site.

(py-defun-start-re, py-class-start-re): Changed to defconst.

(py-traceback-line-re): Regular expression describing what traceback
lines look like.

(py-point): New defsubst copied from CC Mode.

(py-highlight-line): Function which does the work of making a
traceback line mouseable.  This only works on XEmacs.  Someone familar
with Emacs text properties and such will have to do that port.

(py-mode-map): Added C-c- bound to py-up-exception and C-c= bound to
py-down-exception.  Also, more concise form for mapcar.

(py-mode-output-map): New keymap for the *Python Output* buffer which
only has keybindings for py-mouseto-exception and py-goto-exception.
All other self-insert-command's are bound to beep.  This is actually
bogus because the buffer should really be made read-only and the
functions that insert in that buffer should bind inhibit-read-only.
Also, this map should be bound to highlighted extents in a *Python*
shell buffer, but this stuff hasn't been migrated into there.

(py-postprocess-output-buffer): New function which extentifies the
*Python Output* buffer.  The bogosities are that this only runs when
the synchronous process in the buffer is finished (so it doesn't work
for async procs), and it should also be merged into py-process-filter
so the *Python* shell gets mouseable too.

(py-shell): Added C-c- and C-c= to the comint buffer's keymap.  The
bogosity is that py-goto-exception should also be bound, but it cannot
be bound to C-cC-c (since that interferes with
comint-interrupt-subjob's typical binding).  Also, traceback lines
aren't mouseable in this buffer.

(py-execute-region): Support for traceback jumping.  This really is
quite a kludge, but necessary based on the way all this stuff works.
There's bound to be broken interactions here.

(py-jump-to-exception, py-mouseto-exception, py-goto-exception,
py-find-next-exception, py-down-exception, py-up-exception): All new
commands and functions to implement traceback jumping.

(py-compute-indentation): Hope this change doesn't get lost in all the
noise above!!!!  This fixes broken non-indentation of a line when TAB
is hit inside a string that isn't a multi-line string.
1 parent ee9f820
History
Tip revision: a0ee8cd982940e57a2df05de9be0bd16b561cb3b authored by Barry Warsaw on 26 November 1997, 01:04:44 UTC
Added comment about where to find details on python-mode.el, pointing
Tip revision: a0ee8cd
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.hgtags -rw-r--r-- 1000 bytes
Makefile.in -rw-r--r-- 15.8 KB
README -rw-r--r-- 34.4 KB
acconfig.h -rw-r--r-- 2.7 KB
config.h.in -rw-r--r-- 9.9 KB
configure -rwxr-xr-x 111.9 KB
configure.in -rw-r--r-- 17.2 KB
install-sh -rwxr-xr-x 2.1 KB

README

back to top