diff options
| author | Fabián Ezequiel Gallina | 2014-07-19 10:13:07 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2014-07-19 10:13:07 -0300 |
| commit | d949ade3c101981d015b3d78d061bdff584df13a (patch) | |
| tree | d5e486ede2477b8f139720eabda8f6965086daef /test/ChangeLog | |
| parent | 64384ca4ded41824f30a0a2470a65160dd486207 (diff) | |
| download | emacs-d949ade3c101981d015b3d78d061bdff584df13a.tar.gz emacs-d949ade3c101981d015b3d78d061bdff584df13a.zip | |
Autodetect Python shell prompts.
* lisp/progmodes/python.el:
(python-shell-interpreter-interactive-arg)
(python-shell-prompt-detect-enabled)
(python-shell-prompt-detect-failure-warning)
(python-shell-prompt-input-regexps)
(python-shell-prompt-output-regexps): New vars.
(python-shell-prompt-calculated-input-regexp)
(python-shell-prompt-calculated-output-regexp): New vars.
(python-shell-get-process-name)
(python-shell-internal-get-process-name)
(python-shell-output-filter)
(python-shell-completion-get-completions): Use them.
(python-shell-prompt-detect)
(python-shell-prompt-validate-regexps): New functions.
(python-shell-prompt-set-calculated-regexps): New function.
(inferior-python-mode): Use it. Also honor overriden
python-shell-interpreter and python-shell-interpreter-args.
(python-shell-make-comint): Honor overriden
python-shell-interpreter and python-shell-interpreter-args.
(python-shell-get-or-create-process): Make it testable by allowing
to call run-python non-interactively.
(python-util-valid-regexp-p): New function.
(python-shell-prompt-regexp, python-shell-prompt-block-regexp)
(python-shell-prompt-output-regexp)
(python-shell-prompt-pdb-regexp): Use it as defcustom :safe.
* test/automated/python-tests.el (python-shell-make-comint-1):
(python-shell-make-comint-2): Fix indentation.
(python-shell-make-comint-3)
(python-shell-make-comint-4): New tests.
(python-shell-get-or-create-process-1): Fix test.
(python-shell-get-or-create-process-2)
(python-shell-get-or-create-process-3): New tests.
(python-shell-internal-get-or-create-process-1): Fix test.
(python-shell-prompt-detect-1): New test.
(python-shell-prompt-detect-2): New test. (Bug#17370)
(python-shell-prompt-detect-3)
(python-shell-prompt-detect-4)
(python-shell-prompt-detect-5)
(python-shell-prompt-detect-6)
(python-shell-prompt-validate-regexps-1)
(python-shell-prompt-validate-regexps-2)
(python-shell-prompt-validate-regexps-3)
(python-shell-prompt-validate-regexps-4)
(python-shell-prompt-validate-regexps-5)
(python-shell-prompt-validate-regexps-6)
(python-shell-prompt-validate-regexps-7)
(python-shell-prompt-set-calculated-regexps-1)
(python-shell-prompt-set-calculated-regexps-2)
(python-shell-prompt-set-calculated-regexps-3)
(python-shell-prompt-set-calculated-regexps-4)
(python-shell-prompt-set-calculated-regexps-5)
(python-shell-prompt-set-calculated-regexps-6)
(python-util-valid-regexp-p-1): New tests.
Diffstat (limited to 'test/ChangeLog')
| -rw-r--r-- | test/ChangeLog | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index cf4ddc83544..b4b3bedcbdc 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,34 @@ | |||
| 1 | 2014-07-17 Fabián Ezequiel Gallina <fgallina@gnu.org> | ||
| 2 | |||
| 3 | * automated/python-tests.el (python-shell-make-comint-1): | ||
| 4 | (python-shell-make-comint-2): Fix indentation. | ||
| 5 | (python-shell-make-comint-3) | ||
| 6 | (python-shell-make-comint-4): New tests. | ||
| 7 | (python-shell-get-or-create-process-1): Fix test. | ||
| 8 | (python-shell-get-or-create-process-2) | ||
| 9 | (python-shell-get-or-create-process-3): New tests. | ||
| 10 | (python-shell-internal-get-or-create-process-1): Fix test. | ||
| 11 | (python-shell-prompt-detect-1): New test. | ||
| 12 | (python-shell-prompt-detect-2): New test. (Bug#17370) | ||
| 13 | (python-shell-prompt-detect-3) | ||
| 14 | (python-shell-prompt-detect-4) | ||
| 15 | (python-shell-prompt-detect-5) | ||
| 16 | (python-shell-prompt-detect-6) | ||
| 17 | (python-shell-prompt-validate-regexps-1) | ||
| 18 | (python-shell-prompt-validate-regexps-2) | ||
| 19 | (python-shell-prompt-validate-regexps-3) | ||
| 20 | (python-shell-prompt-validate-regexps-4) | ||
| 21 | (python-shell-prompt-validate-regexps-5) | ||
| 22 | (python-shell-prompt-validate-regexps-6) | ||
| 23 | (python-shell-prompt-validate-regexps-7) | ||
| 24 | (python-shell-prompt-set-calculated-regexps-1) | ||
| 25 | (python-shell-prompt-set-calculated-regexps-2) | ||
| 26 | (python-shell-prompt-set-calculated-regexps-3) | ||
| 27 | (python-shell-prompt-set-calculated-regexps-4) | ||
| 28 | (python-shell-prompt-set-calculated-regexps-5) | ||
| 29 | (python-shell-prompt-set-calculated-regexps-6) | ||
| 30 | (python-util-valid-regexp-p-1): New tests. | ||
| 31 | |||
| 1 | 2014-07-09 Fabián Ezequiel Gallina <fgallina@gnu.org> | 32 | 2014-07-09 Fabián Ezequiel Gallina <fgallina@gnu.org> |
| 2 | 33 | ||
| 3 | * automated/python-tests.el | 34 | * automated/python-tests.el |
| @@ -34,13 +65,12 @@ | |||
| 34 | (python-info-dedenter-statement-p-4) | 65 | (python-info-dedenter-statement-p-4) |
| 35 | (python-info-dedenter-statement-p-5): New tests. | 66 | (python-info-dedenter-statement-p-5): New tests. |
| 36 | 67 | ||
| 37 | |||
| 38 | 2014-07-01 Fabián Ezequiel Gallina <fgallina@gnu.org> | 68 | 2014-07-01 Fabián Ezequiel Gallina <fgallina@gnu.org> |
| 39 | 69 | ||
| 40 | * automated/python-tests.el | 70 | * automated/python-tests.el |
| 41 | (python-tests-self-insert): New function. | 71 | (python-tests-self-insert): New function. |
| 42 | (python-triple-quote-pairing): Use it. | 72 | (python-triple-quote-pairing): Use it. |
| 43 | (python-util-forward-comment-1): New test. (Bug#17658) | 73 | (python-parens-electric-indent-1): New test. (Bug#17658) |
| 44 | 74 | ||
| 45 | 2014-06-28 Leo Liu <sdl.web@gmail.com> | 75 | 2014-06-28 Leo Liu <sdl.web@gmail.com> |
| 46 | 76 | ||