aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * Prevent resizing the echo area when iPython is enabledFabián Ezequiel Gallina2014-11-161-3/+6
| | | | | | | | | | | | | | Fixes: debbugs:18794 * lisp/progmodes/python.el (python-eldoc--get-doc-at-point): Strip shell output before returning.
* | * lisp/progmodes/python.el (python-mode): Avoid use of set-local toFabián Ezequiel Gallina2014-11-161-2/+3
| | | | | | | | keep Emacs 24.x compatibility.
* | Fixes: debbugs:18596Fabián Ezequiel Gallina2014-11-161-6/+8
| | | | | | | | | | * lisp/progmodes/python.el (run-python): Allow CMD to be optional and default it to a safe command, even for Windows. (bug#18596)
* | * lisp/progmodes/python.el (python-shell-calculate-command): RenameFabián Ezequiel Gallina2014-11-161-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | from python-shell-parse-command. Cleanup. (run-python, run-python-internal): Use it. (python-shell-calculate-pythonpath): Rename from python-new-pythonpath. (python-shell-calculate-process-environment): Use it. (python-shell-calculate-exec-path): Add comment. * test/automated/python-tests.el (python-shell-calculate-process-environment-2): Fix test. (python-shell-calculate-process-environment-1) (python-shell-calculate-process-environment-3): Cleanup.
* | Merge from emacs-24Stefan Monnier2014-11-161-19/+33
|\ \ | |/
| * Fixes: debbugs:18432Fabián Ezequiel Gallina2014-11-151-1/+5
| | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-indent-calculate-levels): Fix indentation behavior multiline dedenter statement. * test/automated/python-tests.el (python-indent-dedenters-8): New test for Bug#18432.
| * Fix region indentationFabián Ezequiel Gallina2014-11-151-18/+28
| | | | | | | | | | | | | | | | | | | | | | Fixes: debbugs:18843 * lisp/progmodes/python.el (python-indent-region): Use python-indent-line and skip special cases. * test/automated/python-tests.el (python-indent-region-1) (python-indent-region-2, python-indent-region-3) (python-indent-region-4, python-indent-region-5): New tests.
| * Backport Use derived-mode-p in python.el instead of equality test with ↵Ivan Andrus2014-11-141-1/+1
| | | | | | | | | | | | | | | | | | major-mode Fixes: debbugs:18854 * progmodes/python.el (python-ffap-module-path): Use `derived-mode-p' instead of equality test on `major-mode'.
| * * lisp/progmodes/python.el (inferior-python-mode): Use add-hook.Stefan Monnier2014-10-201-3/+3
| |
* | Eldoc setup code enhancementsFabián Ezequiel Gallina2014-11-151-5/+6
| | | | | | | | | | | | | | Fixes: debbugs:18962 * lisp/progmodes/python.el (python-eldoc-setup-code): Enhance string type checks, simplify printing.
* | Use derived-mode-p in python.el instead of equality test on major-modeIvan Andrus2014-11-141-4/+4
| | | | | | | | | | | | | | * progmodes/python.el (python-shell-font-lock-kill-buffer): (python-shell-font-lock-with-font-lock-buffer) (python-shell-get-buffer, python-ffap-module-path): Use `derived-mode-p' instead of equality test on `major-mode'.
* | Rename python-shell-virtualenv-path to fit GNU conventionsFabián Ezequiel Gallina2014-11-141-10/+13
| | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-shell-virtualenv-root): Rename from python-shell-virtualenv-path. (python-shell-internal-get-process-name) (python-shell-calculate-process-environment) (python-shell-calculate-exec-path): Use it.
* | * lisp/progmodes/python.el (python-shell-completion-get-completions):Fabián Ezequiel Gallina2014-11-141-6/+2
| | | | | | | | Fix previous merge.
* | Merge from emacs-24; up to 2014-07-26T11:58:24Z!schwab@linux-m68k.orgGlenn Morris2014-10-121-2/+6
|\ \ | |/
| * Fix import completion. Fabián Ezequiel Gallina2014-10-121-5/+2
| | | | | | | | | | | | | | * lisp/progmodes/python.el (python-shell-completion-get-completions): Fix import case regexp. Fixes: debbugs:18582
* | * lisp/progmodes/python.el: Avoid building unneeded markers.Stefan Monnier2014-10-031-14/+10
| | | | | | | | | | | | | | (python-font-lock-keywords, python-indent-dedent-line) (python-fill-paren, python-shell-completion-complete-or-indent): Prefer point over point-marker. (inferior-python-mode): Remove redundant completion settings.
* | Merge from emacs-24Stefan Monnier2014-10-021-23/+22
|\ \ | |/
| * * lisp/progmodes/python.el (python-shell-completion-get-completions):Stefan Monnier2014-09-301-29/+28
| | | | | | | | | | | | | | | | Use python-shell--prompt-calculated-input-regexp from the process buffer. Don't assume that `line' comes from the process buffer. Fixes: debbugs:18582
* | Merge from emacs-24Stefan Monnier2014-09-301-2/+4
|\ \ | |/
| * * lisp/progmodes/python.el (python-fill-paren): Don't inf-loop at EOB.Leonardo Nobrega2014-09-301-2/+4
| | | | | | | | Fixes: debbugs:18462
* | Rename 24.5 to 25.1Stefan Monnier2014-09-291-5/+5
| | | | | | | | Except where we expect to backport the corresponding change.
* | Spelling fixes.Paul Eggert2014-09-111-2/+2
| | | | | | | | | | | | | | * lisp/ses.el (ses-file-format-extend-parameter-list): Rename from ses-file-format-extend-paramter-list. All uses changed. * lisp/gnus-cloud.el (gnus-cloud-parse-version-1): Fix misspelling of ":delete".
* | Merge from emacs-24; up to 2014-07-04T02:28:54Z!dmantipov@yandex.ruGlenn Morris2014-09-021-1/+7
|\ \ | |/
| * * lisp/progmodes/python.el (python-indent-post-self-insert-function):Fabián Ezequiel Gallina2014-09-011-1/+7
| | | | | | | | | | | | | | Avoid electric colon at beginning-of-defun. * test/automated/python-tests.el: (python-indent-electric-colon-1): New test. (Bug#18228)
* | Merge from emacs-24; up to 2014-07-02T00:57:53Z!juri@jurta.orgGlenn Morris2014-08-271-5/+7
|\ \ | |/
| * * lisp/progmodes/python.el (python-shell-prompt-detect): Remove redundantStefan Monnier2014-08-181-5/+7
| | | | | | | | | | | | executable-find. Fixes: debbugs:18244
* | Extract python-new-pythonpath to handle PYTHONPATH in user codeSam Steingold2014-08-201-7/+11
| | | | | | | | | | * lisp/progmodes/python.el (python-new-pythonpath): Extract from `python-shell-calculate-process-environment'.
* | * lisp/progmodes/python.el: Fix completions inside (i)pdb.Fabián Ezequiel Gallina2014-08-041-8/+12
| | | | | | | | | | | | | | (python-shell-completion-pdb-string-code): Make obsolete. (python-shell-completion-get-completions): Use python-shell-completion-string-code resending setup code continuously for (i)pdb.
* | * progmodes/python.el: Completion code cleanups.Fabián Ezequiel Gallina2014-08-021-24/+18
| | | | | | | | | | | | | | (python-shell-completion-get-completions): Detect and send import statements directly to completion function. (python-shell-completion-at-point): Simplify prompt calculation and import vs input completion logic.
* | * lisp/progmodes/python.el: Shell output capture enhancements.Fabián Ezequiel Gallina2014-07-311-9/+25
| | | | | | | | | | | | (python-shell-accept-process-output): New function. (inferior-python-mode) (python-shell-send-setup-code): Use it.
* | * lisp/progmodes/python.el (inferior-python-mode): Make input promptsFabián Ezequiel Gallina2014-07-281-1/+6
| | | | | | | | read-only.
* | Merge from emacs-24; up to 2014-06-26T06:55:15Z!rgm@gnu.orgGlenn Morris2014-07-281-2/+1
|\ \ | |/
| * * lisp/progmodes/python.el (inferior-python-mode): Doc fix.Fabián Ezequiel Gallina2014-07-261-1/+0
| |
| * Spelling fixes.Paul Eggert2014-07-211-1/+1
| |
* | Parse completion input in a iPython friendly way.Fabián Ezequiel Gallina2014-07-281-27/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-shell-completion-at-point): Rename from python-shell-completion-complete-at-point. (inferior-python-mode): Use it. (python-completion-at-point): Rename from python-completion-complete-at-point. Parse input up to first backward occurrence of whitespace, open-paren, close-paren or string delimiter. (python-mode): Use it. Fixes: debbugs:18084
* | Prevent Python process shell buffer to pop twice.Fabián Ezequiel Gallina2014-07-281-1/+1
| | | | | | | | | | * lisp/progmodes/python.el (python-shell-switch-to-shell): Do not call pop-to-buffer.
* | * lisp/progmodes/python.elFabián Ezequiel Gallina2014-07-281-60/+78
| | | | | | | | | | | | | | | | | | | | | | (python-shell-with-shell-buffer): New macro. (python-shell-font-lock-get-or-create-buffer) (python-shell-font-lock-kill-buffer) (python-shell-font-lock-with-font-lock-buffer) (python-shell-font-lock-cleanup-buffer) (python-shell-font-lock-toggle): Use it. (python-shell-font-lock-turn-on) (python-shell-font-lock-turn-off): Use it. Make command.
* | Grab all Python process output before inferior-python-mode hooks.Fabián Ezequiel Gallina2014-07-271-8/+5
| | | | | | | | | | | | | | | | * lisp/progmodes/python.el (inferior-python-mode): Call accept-process-output and sit-for to ensure all output for process has been received before running hooks. (python-shell-internal-get-or-create-process): Cleanup accept-process-output and sit-for calls.
* | More robust shell startup and code setup.Fabián Ezequiel Gallina2014-07-271-35/+33
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-shell-make-comint): Remove accept-process-output call. (python-shell-get-buffer): Return current buffer if major-mode is inferior-python-mode. (python-shell-get-or-create-process): Use it. (python-shell-send-setup-code): Send all setup code in one string, output success message and accept-process-output.
* | Cleanup error signals. Fabián Ezequiel Gallina2014-07-271-14/+6
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-indent-shift-left): Use user-error instead. (python-shell-prompt-detect): Use lwarn with python group. (python-completion-complete-at-point) (python-eldoc--get-doc-at-point): Don't signal error. Fixes: debbugs:18067
* | Support for packages in Python shell. Fabián Ezequiel Gallina2014-07-271-2/+93
| | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-shell--package-depth): New var. (python-shell-package-enable): New command. (python-util-list-directories, python-util-list-files) (python-util-list-packages): New functions. Fixes: debbugs:13570
* | * python.el (python-shell-enable-font-lock): Fix typo in earlier change.Glenn Morris2014-07-261-3/+3
| |
* | Faster comint output.Fabián Ezequiel Gallina2014-07-261-9/+21
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el: (python-comint-output-filter-function): Make obsolete. (python-comint-postoutput-scroll-to-bottom): New function. (inferior-python-mode): Set comint-output-filter-functions to a minimum. Fixes: debbugs:16875
* | * lisp/progmodes/python.el (python-shell-font-lock-post-command-hook):Fabián Ezequiel Gallina2014-07-261-18/+26
| | | | | | | | Safeguard current point and undo history.
* | Robust shell syntax highlighting. (Bug#18084, Bug#16875)Fabián Ezequiel Gallina2014-07-261-53/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el: (python-shell-prompt-input-regexps): Add iPython block prompt. (python-shell-output-syntax-table): Delete var. (python-shell-font-lock-with-font-lock-buffer): New macro. (python-shell-font-lock-get-or-create-buffer) (python-shell-font-lock-kill-buffer) (python-shell-font-lock-cleanup-buffer) (python-shell-font-lock-post-command-hook) (python-shell-font-lock-turn-off): New functions. (python-shell-font-lock-turn-on): New function. (inferior-python-mode): Use it. (python-shell-font-lock-toggle): New command. (python-shell-font-lock-enable): Rename from python-shell-enable-font-lock. (run-python-internal): Use it. (python-shell-font-lock-comint-output-filter-function): New function. (python-shell-comint-end-of-output-p): New function. (python-shell-output-filter): Use it. (python-util-comint-last-prompt): New function. (python-util-text-properties-replace-name): New function.
* | Merge from emacs-24; up to 2014-06-25T10:17:41Z!rgm@gnu.orgGlenn Morris2014-07-211-134/+373
|\ \ | |/
| * * lisp/progmodes/python.el: Add comment about pipe buffering andFabián Ezequiel Gallina2014-07-201-0/+8
| | | | | | | | | | | | solutions for missing/delayed output in inferior Python shells. Fixes: debbugs:17304
| * * lisp/progmodes/python.el (python-mode): Don't setFabián Ezequiel Gallina2014-07-201-2/+0
| | | | | | | | | | | | mode-require-final-newline. Fixes: debbugs:17990
| * Make python.el work with IPython automatically. Fabián Ezequiel Gallina2014-07-201-102/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el: (python-shell-completion-setup-code): New value supporting iPython. (python-shell-completion-string-code): New value supporting iPython. (python-shell-completion-get-completions): Use them. (python-shell-completion-module-string-code): Make obsolete. (python-shell-prompt-input-regexps) (python-shell-prompt-output-regexps): Add safeguard for ipdb. (python-shell-output-filter): Fix comment typo. * test/automated/python-tests.el: (python-util-clone-local-variables-1): Fix test. Fixes: debbugs:15510
| * Fix Python shell prompts detection for remote hosts.Fabián Ezequiel Gallina2014-07-191-16/+21
| | | | | | | | | | * lisp/progmodes/python.el (python-shell-prompt-detect): Replace call-process with process-file and make it more robust.