aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/ChangeLog
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2014-07-19 10:13:07 -0300
committerFabián Ezequiel Gallina2014-07-19 10:13:07 -0300
commitd949ade3c101981d015b3d78d061bdff584df13a (patch)
treed5e486ede2477b8f139720eabda8f6965086daef /lisp/ChangeLog
parent64384ca4ded41824f30a0a2470a65160dd486207 (diff)
downloademacs-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 'lisp/ChangeLog')
-rw-r--r--lisp/ChangeLog29
1 files changed, 29 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0e82c4bbc46..2a1266a6031 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,32 @@
12014-07-17 Fabián Ezequiel Gallina <fgallina@gnu.org>
2
3 Autodetect Python shell prompts. (Bug#17370)
4 * progmodes/python.el:
5 (python-shell-interpreter-interactive-arg)
6 (python-shell-prompt-detect-enabled)
7 (python-shell-prompt-detect-failure-warning)
8 (python-shell-prompt-input-regexps)
9 (python-shell-prompt-output-regexps): New vars.
10 (python-shell-prompt-calculated-input-regexp)
11 (python-shell-prompt-calculated-output-regexp): New vars.
12 (python-shell-get-process-name)
13 (python-shell-internal-get-process-name)
14 (python-shell-output-filter)
15 (python-shell-completion-get-completions): Use them.
16 (python-shell-prompt-detect)
17 (python-shell-prompt-validate-regexps): New functions.
18 (python-shell-prompt-set-calculated-regexps): New function.
19 (inferior-python-mode): Use it. Also honor overriden
20 python-shell-interpreter and python-shell-interpreter-args.
21 (python-shell-make-comint): Honor overriden
22 python-shell-interpreter and python-shell-interpreter-args.
23 (python-shell-get-or-create-process): Make it testable by allowing
24 to call run-python non-interactively.
25 (python-util-valid-regexp-p): New function.
26 (python-shell-prompt-regexp, python-shell-prompt-block-regexp)
27 (python-shell-prompt-output-regexp)
28 (python-shell-prompt-pdb-regexp): Use it as defcustom :safe.
29
12014-07-16 Glenn Morris <rgm@gnu.org> 302014-07-16 Glenn Morris <rgm@gnu.org>
2 31
3 * desktop.el (after-init-hook): Disable startup frame restoration 32 * desktop.el (after-init-hook): Disable startup frame restoration