Commit graph

568 commits

Author SHA1 Message Date
Richard M. Stallman
7c6152ff9e (python-switch-to-python): If Python isn't running, start it. 2004-11-20 20:39:16 +00:00
Richard M. Stallman
b830b63b85 (python-beginning-of-statement): Exit the loop if backward-up-list gets error. 2004-07-02 23:49:50 +00:00
Eli Zaretskii
cebe0988ca (python-open-block-statement-p): Fix
indentation after a block opening that contains a comment.
2004-06-12 10:26:37 +00:00
Stefan Monnier
522067b2d4 (help-buffer): Autoload when compiling.
(python-after-info-look): Don't assume Info-goto-node returns non-nil.
(run-python): Prepend to any existing PYTHONPATH.
2004-05-10 18:36:09 +00:00
Stefan Monnier
07c7712fae (inferior-python-mode-map): Remove erroneous C-c C-z binding. 2004-05-10 15:32:01 +00:00
Juanma Barranquero
3299a03a32 (python-describe-symbol): Pass INTERACTIVE-P argument to `help-setup-xref'. 2004-05-08 16:40:01 +00:00
Stefan Monnier
24d5055cef Changes largely merged in from Dave Love's code. Doc fixes.
(python-mode-map): Add python-complete-symbol.
(python-comment-line-p, python-beginning-of-string): Use syntax-ppss.
(python-comment-indent, python-complete-symbol)
(python-symbol-completions, python-partial-symbol)
(python-try-complete): New.
(python-indent-line): Remove optional arg.  Use python-block-end-p.
(python-check): Bind compilation-error-regexp-alist.
(inferior-python-mode): Use rx.  Move keybindings to top level.
Set comint-input-filter.
(python-preoutput-filter): Use rx.
(python-input-filter): Re-introduce.
(python-proc): Start new process if necessary.
Check python-buffer non-nil.
(view-return-to-alist): Defvar.
(python-send-receive): New.
(python-eldoc-function): Use it.
(python-mode-running): Don't defvar.
(python-mode): Set comment-indent-function.
Maybe update hippie-expand-try-functions-list.
(python-indentation-levels): Initialize differently.
(python-block-end-p): New.
(python-indent-line): Use it.
(python-compilation-regexp-alist): Augment.
(run-python): Import `emacs' module to Python rather than loading
code directly.  Set python-buffer differently.
(python-send-region): Use emacs.eexecfile.  Fix orig-start calculation.
Use python-proc.
(python-send-command): Go to end of comint buffer.
(python-load-file): Use python-proc, emacs.eimport.
(python-describe-symbol): Simplify interactive form.
Use emacs.help.  Do use temp-buffer-show-hook.
Call print-help-return-message.
(hippie-exp): Require when compiling.
(python-preoutput-continuation): Use rx.
2004-05-06 20:22:32 +00:00
Stefan Monnier
ee99b45b27 (python-compilation-line-number): Remove.
(python-compilation-regexp-alist): Don't use it any more.
(python-orig-start, python-input-filter): Remove.
(inferior-python-mode): Don't set up comint-input-filter-functions.
(python-send-region): Use compilation-fake-loc.
2004-05-01 21:16:07 +00:00
Stefan Monnier
56e6d6fecc (python-send-command): New fun.
(python-send-region, python-load-file): Use it.
2004-04-29 20:34:11 +00:00
Stefan Monnier
c3f85d9536 (python-maybe-jython): Don't assume point-min==1. 2004-04-21 20:48:47 +00:00
Stefan Monnier
c02484a0f2 (python-compilation-line-number): Fix braindamage.
(python-load-file): Fix python-orig-start setting.
2004-04-16 23:36:13 +00:00
Stefan Monnier
b6ea794037 (python-after-info-look): Use with-no-warnings. 2004-04-16 22:58:28 +00:00
Stefan Monnier
a1ae0e9c89 (python-orig-start-line, python-orig-file): Remove.
(python-orig-start): New var.
(python-input-filter, python-compilation-line-number)
(python-send-region, python-load-file): Use it.
2004-04-14 20:31:53 +00:00
Stefan Monnier
32efc702b3 (run-python): Fix use of \n.
(python-load-file): Remove `try' from Python fragment.
(python-describe-symbol): Fix message.
2004-04-14 20:16:05 +00:00
Stefan Monnier
1e328a982c (python-mouse-2-command, python-RET-command): Remove unused functions. 2004-04-14 18:59:10 +00:00
Stefan Monnier
0578dead3a Doc fixes. Changes for compiler warnings.
(syntax): Don't require.
(python) <defgroup>: Add :version.
(python-quote-syntax): Re-written.
(inferior-python-mode): Move stuff here from run-python and add
some more.
(python-preoutput-continuation, python-preoutput-result)
(python-dotty-syntax-table): New.
(python-describe-symbol): Use them.
(run-python): Move stuff to inferior-python-mode.  Modify code
loaded into Python.
(python-send-region): Use python-proc, python-send-string.
(python-send-string): Send newlines too.  Callers changed.
(python-load-file): Re-written.
(python-eldoc-function): New.
(info-look): Don't require.
(python-after-info-look): New.  A modified version of former
top-level code for use with eval-after-load.
(python-maybe-jython, python-guess-indent): Use widened buffer.
(python-fill-paragraph): Re-written.
(python-mode): Fix outline-regexp.  Set outline-heading-end-regexp,
eldoc-print-current-symbol-info-function.  Add to eldoc-mode-hook.
2004-04-13 18:02:03 +00:00
Stefan Monnier
f9f25632b3 (run-python): Use compilation-shell-minor-mode.
Set compilation-error-regexp-alist earlier.
2004-04-13 16:05:36 +00:00
Stefan Monnier
6f480c7a38 New file. 2004-04-12 01:58:43 +00:00