diff options
| author | Fabián Ezequiel Gallina | 2012-10-08 18:51:02 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-10-08 18:51:02 -0300 |
| commit | 51867ae22506264c0893b5e1a9ec7967157b6d96 (patch) | |
| tree | e94fa29dea5d29eca26827fd1264f34891b3e0ca | |
| parent | a5b773c40ce950ac004be26b9f1bc4fcf985276b (diff) | |
| download | emacs-51867ae22506264c0893b5e1a9ec7967157b6d96.tar.gz emacs-51867ae22506264c0893b5e1a9ec7967157b6d96.zip | |
* progmodes/python.el (python-shell-output-filter): Handle extra
carriage return in OSX.
Fixes: debbugs:12409
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1d7d2af60c7..d3275ce3671 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2012-10-08 Fabián Ezequiel Gallina <fgallina@cuca> | 1 | 2012-10-08 Fabián Ezequiel Gallina <fgallina@cuca> |
| 2 | 2 | ||
| 3 | * progmodes/python.el (python-shell-output-filter): Handle extra | ||
| 4 | carriage return in OSX (Bug#12409). | ||
| 5 | |||
| 6 | 2012-10-08 Fabián Ezequiel Gallina <fgallina@cuca> | ||
| 7 | |||
| 3 | Fix shell handling of unbalanced quotes and parens in output. | 8 | Fix shell handling of unbalanced quotes and parens in output. |
| 4 | * progmodes/python.el (python-rx-constituents): Added | 9 | * progmodes/python.el (python-rx-constituents): Added |
| 5 | string-delimiter. | 10 | string-delimiter. |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index d35dbc69a48..018d6a7a1f2 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1866,7 +1866,9 @@ detecting a prompt at the end of the buffer." | |||
| 1866 | python-shell-output-filter-buffer | 1866 | python-shell-output-filter-buffer |
| 1867 | (concat python-shell-output-filter-buffer string)) | 1867 | (concat python-shell-output-filter-buffer string)) |
| 1868 | (when (string-match | 1868 | (when (string-match |
| 1869 | (format "\n\\(?:%s\\|%s\\|%s\\)$" | 1869 | ;; XXX: It seems on OSX an extra carriage return is attached |
| 1870 | ;; at the end of output, this handles that too. | ||
| 1871 | (format "\r?\n\\(?:%s\\|%s\\|%s\\)$" | ||
| 1870 | python-shell-prompt-regexp | 1872 | python-shell-prompt-regexp |
| 1871 | python-shell-prompt-block-regexp | 1873 | python-shell-prompt-block-regexp |
| 1872 | python-shell-prompt-pdb-regexp) | 1874 | python-shell-prompt-pdb-regexp) |