| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
in a py-shell. Temp files now get cleaned up.
|
|
|
|
|
|
|
| |
(py-mode-map): Moved py-mark-def-or-class from M-C-h to C-c C-m since
the old binding conflicts with the standard global backward-kill-word
binding, and this new binding is more conformant with other language
modes. Moved py-mark-block to C-c C-k.
|
|
|
|
|
|
|
|
|
|
|
| |
(py-electric-backspace, py-electric-delete): Support the XEmacs 20 Way
for backspace and delete mappings. In XEmacs 19, Emacs 19, and Emacs
20, both backspace and delete keysyms are bound to
py-electric-backspace. In XEmacs 20, backspace and delete keysyms are
bound separately, allowing the user to specify forward or backward
deletion of the delete keysym through the variable
delete-key-deletes-forward. All this is the Right Way To Do It and
this implementation was largely ripped from CC Mode.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(py-execute-file): Better interaction with comint. Set
comint-scroll-to-bottom-on-output to t. Wrapper buffer change in
unwind-protect in case process filter fails.
(py-shell): Start Python with -i flag to fix tty problem on Windows;
presumably -- not yet tested.
(py-clear-queue): New function to clear the pending exec file queue.
Not currently keybound.
(py-execute-region, py-execute-buffer): Added optional async flag (use
via C-u prefix) to execute the region in a new asynchrous buffer, even
if the Python shell is running.
(py-append-to-process-buffer): Removed as obsolete. Comint provides
this functionality.
Removed fbound test defun of match-string. All modern X/Emacsen have
this function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Introductory comment updates.
(python-font-lock-keywords): Added "assert"
(py-block-closing-keywords-re): New variable.
(py-no-outdent-re): Rewrite to use py-block-closing-keywords-re.
(py-shell): py-process-filter should no longer be necessary. Comint
should do all the work. Note that more fixes to the py-shell process
mechanism need to be done.
(py-execute-region): Check for empty region. Some questionable
changes to set-buffer after shell-command-on-region. Again, this all
needs to be closely examined for X/Emacs 19/20 compatibility.
(py-goto-beyond-final-line): py-parse-partial-sexp-works-p should no
longer be necessary.
(py-statement-closes-block-p): Use py-block-closing-keywords-re.
|
|
|
|
|
|
| |
Emacs and XEmacs versions should have working parse-partial-sexp's.
(py-emacs-features): Defined as future placeholder.
|
| |
|
| |
|
| |
|
|
|
|
| |
Emacs 20, and bind TAB key to self-insert-command in *Python* process.
|
| |
|
|
|
|
| |
py-comment-region instead of comment-region.
|
| |
|
|
|
|
|
|
| |
parse-partial-sexp in some Emacsen.
(py-goto-beyond-final-line): use py-parse-partial-sexp-works-p.
|
|
|
|
| |
(py-delete-char): funcall py-delete-function.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
defeat extra outdentation for block closing statements (return, raise,
break, continue, pass).
(py-compute-indentation): extra argument to honor block closing
statements.
(py-electric-colon, py-indent-region): use py-compute-indentation's
extra argument
(py-statement-closes-block-p): `pass' treated as a block closing
statement.
|
|
|
|
|
| |
event of error. Can't use new Emacs primitive save-current-buffer, so
use unwind-protect instead.
|
| |
|
|
|
|
|
|
|
|
| |
add-change-log-entry-other-window is so bad about guessing the proper
name of Python functions, methods and variables, so finally I wrote
the following (unidiff patch against python-mode.el 2.73):
Per Cederqvist <ceder@signum.se>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
hurt for XEmacs.
|
| |
|
| |
|
|
|
|
| |
already outdent for those statements.
|
| |
|
| |
|
|
|
|
| |
underscore.
|
|
|
|
| |
(forward-line -1), to properly catch continued statements.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
imenu-example--python-class-regexp,
imenu-example--python-method-regexp,
imenu-example--python-method-no-arg-parens,
imenu-example--python-method-arg-parens,
imenu-example--generic-python-expression,
imenu-example--python-generic-regexp,
imenu-example--python-generic-parens): New variables.
(imenu-example--create-python-index,
imenu-example--create-python-index-engine): New functions.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
right thing.
(py-comment-region): let-bind comment-start to "## " so commented
regions get transformed into non-indenting comment lines.
(py-compute-region): Implement modification to rule for recognizing
"indenting comment lines".
|
| |
|
| |
|
| |
|
|
|
|
|
| |
column zero. Perhaps a kludge, but similar in nature to Emacs'
beginning-of-defun shortcut.
|
|
|
|
| |
level after a return, raise, break, or continue statement.
|
| |
|
|
|
|
| |
underscores.
|
| |
|
| |
|
|
|
|
| |
blank lines.
|
| |
|