[forwarded from http://bugs.debian.org/226337\]
Dave Love writes:
I made a load of changes to python-mode.el and realized
of them fix (at least in Emacs 21) old Debian bugs:
164423, 164424 and 159628. Here's what I sent to
python-mode in case
This patch against recent CVS fixes/adds a bunch of
* Runtime use of cl, per Emacs rules -- actually,
avoid it completely;
* Proper syntactic fontification in Emacs 21;
* Non-ASCII identifiers in Emacs 21;
* Missing cases for Emacs;
* Menu lossage in transient-mark-mode;
* Char tables not defined in the approved way (so you
can M-C-x them);
* Hooks not local that need to be;
* Hooks not removed when unloading;
* Losing use of `py-shell-alist';
* Compilation warnings.
This is mostly for Emacs 21, but as far as I can tell,
it hasn't broken anything in XEmacs.
Note that the licence is inconsistent with the use of
GPL'ed code in bits copied from elsewhere.
2003-12-01 Dave Love <firstname.lastname@example.org>
* python-mode.el: Doc fixes.
(custom, cl, compile): Don't require.
(comint-last-input-end): Defvar when compiling.
py-forward-into-nomenclature): Use it.
warning in Emacs.
(py-highlight-line, py-mouseto-exception): Add
(py-in-literal): Define separate cases for
Emacs and XEmacs, and
avoid warning. Simplify Emacs case.
py-which-bufname): Move before
(py-pdbtrack-grub-for-buffer): Bind buf, not
(py-output-buffer): defvar, not defconst.
(py-help-at-point): Avoid `search'.
(py-temp-directory): Maybe use
py-shift-region-right): Fix use of
(py-beginning-of-def-or-class): Re-run if it
lands in a string.
(py-goto-beginning-of-tqs): Don't lose if delim
(py-shell-alist): Don't quote cdrs.
(py-mode-map, py-shell-map, py-mode-output-map)
(py-imenu-create-index-engine): Avoid `first',
(py-shell): Only add to
(py-execute-region): Fix choosing shell.
(py-mark-block): Activate mark.
(py-python-version): New. Use it with
(debug-ignored-errors): Add errors used here.
(py-shell-map): Don't bind tab.
(py-pychecker-run): Use read-shell-command
(py-mode-output-map): Maybe bind mouse-2. Use
Log in to post a comment.