aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Restore file pending consideration of legal issues.Glenn Morris2007-04-261-0/+2307
|
* Remove python.el due to unclear legal issues.Chong Yidong2007-04-241-2307/+0
|
* (python-end-of-block): Avoid looping forever if python-next-statementChong Yidong2007-04-161-2/+6
| | | | fails.
* (python-mode): Skip comments when parsing.Stefan Monnier2007-03-281-0/+1
|
* (python-default-template): Doc fix.Juanma Barranquero2007-03-191-2/+2
| | | | (python-buffer): Fix typo in docstring.
* (python-send-command): Restart proc if necessary.Stefan Monnier2007-03-051-6/+6
| | | | (python-proc): Simplify.
* (python-quote-syntax): Don't bother with syntax-ppss-context.Stefan Monnier2007-03-011-10/+13
| | | | | (python-fill-paragraph): Make sure that fenced-string delimiters that stand on their own line stay there
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (python-indent): Add safe-local-variable prop.Richard M. Stallman2006-12-041-0/+1
|
* (inferior-python-mode-syntax-table): New var.Stefan Monnier2006-11-141-1/+9
| | | | (inferior-python-mode): Use it.
* 2006-10-22 John Wiegley <johnw@newartisans.com>John Wiegley2006-10-221-1/+9
| | | | | | | | * progmodes/python.el (python-use-skeletons): python-mode was auto-inserting templates (for those with abbrev-mode on), not only by default -- *but without a configuration variable to disable it*. This rendered python-mode completely useless for me, so I have added `python-use-skeletons', which is now off by default.
* (python-preoutput-filter): Fix arg order to string-match.Richard M. Stallman2006-09-161-1/+1
|
* (python-font-lock-keywords): Add `self' and other quasi-keywords.Stefan Monnier2006-09-091-1/+3
|
* Quieten the compiler about hippie-expand vars.Stefan Monnier2006-09-091-6/+9
| | | | (python-send-string): Be slightly more careful about adding \n.
* (python-eldoc-function): Re-enable quit while waiting for process.Stefan Monnier2006-08-301-18/+20
|
* (python-send-command): Simplify.Stefan Monnier2006-08-281-24/+24
| | | | | (run-python): Don't generate a new buffer unless `new' was specified. Make sure we send `import emacs' to the proper process.
* (python-send-command): Don't wait for the commandStefan Monnier2006-08-281-4/+9
| | | | to terminate. Don't fiddle with compilation-parsing-end.
* (python-send-receive): Wait in the process's buffer so as to check the rightStefan Monnier2006-08-261-7/+8
| | | | buffer-local variables.
* (python-preoutput-skip-next-prompt): New var.Stefan Monnier2006-08-251-109/+125
| | | | | | | | | | | | | | | | (python-preoutput-continuation): Remove. (python-preoutput-filter): Simplify correspondingly. Remove handling of _emacs_ok. Make sure we skip _emacs_out's prompts. Loop around to catch embedded _emacs_out output. (run-python): Send the import&print command on a single line. (python-send-command): Send command&print on a single line. (python-send-string): Only add double \n if needed. (python-send-receive): Loop until the result comes. (python-mode-running): Defvar it. (python-setup-brm): Remove unused var `menu'. Only bind py-mode-map and `features' around brm-init. (python-calculate-indentation): Remove unused var `point'. (python-beginning-of-defun): Remove unused var `def-line'.
* Remove * in defcustom docstrings.Stefan Monnier2006-08-201-17/+22
| | | | | (run-python, python-proc, python-try-complete): Use derived-mode-p. (python-mode): Set tab-width and indent-tabs-mode.
* Update to Dave Love's latest version.Stefan Monnier2006-08-201-461/+925
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (python-font-lock-keywords, python-mode): Don't use font-lock-syntax-table, but match symbol elements explicitly instead. (python-mode-map): Add help, and a few more key bindings. (python-skip-comments/blanks): Move out of comments as well. (python-continuation-line-p): Behave better with unbalanced parens. (python-blank-line-p): New fun. (python-open-block-statement-p): Don't use a heuristic. (python-outdent-p): Better handle blocks-in-the-same-line. (python-calculate-indentation): Misc improvements. (python-comment-indent): Remove. (python-block-pairs): New var. (python-first-word): New fun. (python-indentation-levels): Handle more common cases. (python-indent-line-1): Add `leave' argument. (python-indent-region): New fun. (python-skip-out): New fun. (python-beginning-of-statement, python-end-of-statement): Use it. (python-next-statement): Return correct count even at eob. (python-end-of-block): Fix paren-typo. (python-imenu-create-index): Add module variables. (run-python): Add `new' arg. Check we're at a prompt before returning. (python-send-command): Move to end of buffer. Wait for prompt to return. (python-set-proc): New fun. (python-imports): New var. (python-describe-symbol): Use it. Adjust to new interface of `ehelp'. (python-eldoc-function): Try to move out of arg list. (python-outline-level): Offset by 1. (python-find-imports): New fun. (python-symbol-completions): Use python-imports. (python-module-path, ffap-alist): Add support for ffap. (python-skeletons, python-mode-abbrev-table, def-python-skeleton) (pythin-insert-*, python-default-template, python-expand-template): Add templates/skeletons. (python-setup-brm): Support for Bicycle Repair Man. (python-abbrev-syntax-table): New var. (python-abbrev-pc-hook, python-pea-hook): New funs.
* (python-continuation-line-p, python-beginning-of-statement):Stefan Monnier2006-04-261-5/+7
| | | | syntax-ppss may return a negative depth.
* (python-mode): Fix typo.Dan Nicolaescu2006-04-191-1/+1
|
* (python-mode): Add support forDan Nicolaescu2006-04-181-0/+8
| | | | hs-minor-mode.
* Update copyright for 2006.Nick Roberts2006-02-101-1/+1
|
* (python-mode) <eldoc-mode-hook>: Pass nil as the first arg to run-python.Eli Zaretskii2006-01-211-1/+1
|
* Install to the CVS repository what I forgot to install in myMasatake YAMATO2005-10-181-1/+1
| | | | | | | | | 2005-10-16 changes. * progmodes/python.el (python-complete-symbol): Pass the common prefix substring of completion to `display-completion-list'. * textmodes/org.el (org-complete): Ditto.
* (python-describe-symbol): Add globals() and locals() to the argumentsEli Zaretskii2005-09-241-3/+3
| | | | of emacs.ehelp.
* * progmodes/compile.el (compilation-start): Add autoload cookie.Romain Francoise2005-08-271-1/+0
| | | | | | * progmodes/antlr-mode.el: Don't autoload `compilation-start'. * textmodes/sgml-mode.el: Likewise. * progmodes/python.el: Likewise.
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (python): Finish `defgroup' description with period.Juanma Barranquero2005-07-041-2/+2
| | | | (inferior-python-mode): "?\ " -> "?\s".
* (python-check): Require `compile' before modifying its variables.Stefan Monnier2005-06-291-0/+1
|
* (python-mode): Use new name eldoc-documentation-function.Richard M. Stallman2005-04-261-2/+2
|
* (python-preoutput-filter): Fix last change.Stefan Monnier2005-03-291-2/+2
|
* (python-preoutput-leftover): New var.Stefan Monnier2005-03-281-15/+29
| | | | | (python-preoutput-filter): Use it. (python-send-receive): Loop until all the result has been received.
* (python-close-block-statement-p)Stefan Monnier2005-03-251-10/+11
| | | | (python-outdent-p, python-current-defun): Use symbol-end.
* Change release version from 21.4 to 22.1 throughout.Kim F. Storm2005-02-091-1/+1
| | | | Change development version from 21.3.50 to 22.0.50.
* (python-mode): Use mode-require-final-newline.Richard M. Stallman2004-12-311-1/+1
|
* (python-font-lock-syntactic-keywords): Fix previous change.Richard M. Stallman2004-12-031-1/+1
|
* (python-font-lock-syntactic-keywords): Check for escapes in the regexp.Richard M. Stallman2004-11-251-25/+26
| | | | (python-quote-syntax): Don't do it here.
* (run-python): Don't hard code *Python*. Don't modify process-environment.Stefan Monnier2004-11-221-29/+21
| | | | | | (python-send-region, python-load-file): Don't assume that python-buffer == (process-buffer (python-proc)). (python-switch-to-python): Simplify.
* Don't alter debug-ignored-errors.Richard M. Stallman2004-11-201-2/+0
|
* (python-switch-to-python): If Python isn't running, start it.Richard M. Stallman2004-11-201-3/+7
|
* (python-beginning-of-statement): Exit the loop if backward-up-list gets error.Richard M. Stallman2004-07-021-10/+11
|
* (python-open-block-statement-p): FixEli Zaretskii2004-06-121-1/+2
| | | | indentation after a block opening that contains a comment.
* (help-buffer): Autoload when compiling.Stefan Monnier2004-05-101-6/+9
| | | | | (python-after-info-look): Don't assume Info-goto-node returns non-nil. (run-python): Prepend to any existing PYTHONPATH.
* (inferior-python-mode-map): Remove erroneous C-c C-z binding.Stefan Monnier2004-05-101-3/+1
|
* (python-describe-symbol): Pass INTERACTIVE-P argument to `help-setup-xref'.Juanma Barranquero2004-05-081-2/+2
|
* Changes largely merged in from Dave Love's code. Doc fixes.Stefan Monnier2004-05-061-129/+293
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* (python-compilation-line-number): Remove.Stefan Monnier2004-05-011-35/+7
| | | | | | | (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.