aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix line numbers on Python shell.Fabián Ezequiel Gallina2014-12-231-30/+10
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-shell--save-temp-file): Do not append coding cookie. (python-shell-send-string): Generalize for python-shell-send-region. (python--use-fake-loc): Delete var. (python-shell-buffer-substring): Cleanup fake-loc logic. (python-shell-send-region): Remove fake-loc logic, simplify.
| * python.el: Fix electric colon behaviorFabián Ezequiel Gallina2014-12-221-6/+12
| | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-indent-post-self-insert-function): Make colon to re-indent only for dedenters, handling multiline-statements gracefully. * test/automated/python-tests.el (python-indent-electric-colon-2) (python-indent-electric-colon-3): New tests.
| * python.el: Support interpreter paths with spacesFabián Ezequiel Gallina2014-12-081-1/+2
| | | | | | | | | | | | | | Fixes: debbugs:19289 * lisp/progmodes/python.el (python-shell-parse-command): Quote `python-shell-interpreter`.
* | python.el: Generate clearer shell buffer names.Fabián Ezequiel Gallina2014-12-261-32/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-shell-get-process-name) (python-shell-internal-get-process-name): Use `buffer-name`. (python-shell-internal-get-or-create-process): Simplify. * test/automated/python-tests.el (python-shell-get-process-name-1) (python-shell-internal-get-process-name-1): Cleanup. (python-shell-get-process-name-2) (python-shell-internal-get-process-name-2): New tests. (python-shell-calculate-command-1) (python-shell-calculate-process-environment-3) (python-shell-calculate-exec-path-2, python-shell-make-comint-1) (python-shell-make-comint-2, python-shell-make-comint-4) (python-shell-get-process-1, python-util-clone-local-variables-1): Replace obsolete function and variable references with current.
* | Revert "Prevent Python process shell buffer to pop twice."Fabián Ezequiel Gallina2014-12-261-1/+1
| | | | | | | | This reverts commit 4256626a7ac486446f4dea9c12df3057053825a7.
* | Merge from origin/emacs-24Ted Zlatanov2014-12-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bd6c441 * simple.el (password-word-equivalents): Add "passcode", used for numeric secrets like PINs or RSA tokens. 16d4c1c A better fix for bug#19346 82ec808 * .gitignore: Add !lib/std*.in.h, so as to not ignore the .in.h files. 3cf7629 Git ignore lib/std*.h 301a401 Always define `gnutls-available-p' even if GnuTLS is not available. d76b9b2 Don't break example string between 2 lines (bug#19257) 75b4857 Port commit-msg to mawk 9ac0332 Improve commit-msg messages and autosquash 0c2f254 Support overflow-newline-into-fringe together with word-wrap (bug#19300) 935ee05 * net/tramp-sh.el (tramp-get-remote-path): Use a login shell in order to determine `tramp-own-remote-path'. c2db939 python.el: Support interpreter paths with spaces d83f329 ChangeLog fix 0f9fbb9 Port commit-message checking to FreeBSD 9. 3db1ada admin/MAINTAINERS: Update my interests and responsibilities. 6382f24 * .gitignore: Ignore autosave files. Conflicts: ChangeLog lisp/progmodes/python.el src/gnutls.c
* | * lisp/progmodes/python.el (python-indent-line): Use `noindent' in strings.Stefan Monnier2014-12-121-38/+45
| | | | | | | | | | | | | | (python-indent-levels): Document extra value. (python-indent-calculate-indentation): Return `noindent' in strings. (python-indent-post-self-insert-function) (python-indent-calculate-levels): Handle new value.
* | python.el: Don't change `comint-prompt-read-only' globallyFabián Ezequiel Gallina2014-12-081-2/+2
| | | | | | | | | | | | | | Fixes: debbugs:19288 * lisp/progmodes/python.el (inferior-python-mode): Set `comint-prompt-read-only` to `t` only locally.
* | * lisp/progmodes/python.el: Recognize docstrings.Tom Willemse2014-12-071-1/+21
| | | | | | | | | | | | (python-docstring-at-p, python-font-lock-syntactic-face-function): New functions. (python-mode): Use them.
* | Merge from origin/emacs-24Stefan Monnier2014-12-051-4/+6
|\ \ | |/ | | | | bb19b22 Python.el: Update commentary on RET-behavior
| * Python.el: Update commentary on RET-behaviorRasmus2014-11-291-4/+6
| | | | | | | | Commentary reflect that `electric-indent-mode' in enabled by default.
* | Merge branch 'emacs-24'.Paul Eggert2014-11-281-12/+27
|\ \ | |/
| * * lisp/progmodes/python.el (python-shell-completion-setup-code): UseFabián Ezequiel Gallina2014-11-261-6/+11
| | | | | | | | | | __builtin__ module (or builtins in Python 3) and catch all errors when importing readline and rlcompleter.
| * Set PYTHONUNBUFFERED on shell startup.Fabián Ezequiel Gallina2014-11-221-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: debbugs:18595 * lisp/progmodes/python.el (python-shell-unbuffered): New var. (python-shell-calculate-process-environment): Use it. * test/automated/python-tests.el (python-shell-calculate-process-environment-4) (python-shell-calculate-process-environment-5): New tests. (python-shell-make-comint-3): Use file-equal-p. (python-shell-get-or-create-process-1) (python-shell-get-or-create-process-2) (python-shell-get-or-create-process-3): Fix interpreter for Windows.
* | Merge branch 'emacs-24'Ted Zlatanov2014-11-261-3/+6
|\ \ | |/ | | | | | | | | | | Conflicts: nt/addsection.c nt/inc/ms-w32.h src/w32.c
| * 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