aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-10-08 18:51:02 -0300
committerFabián Ezequiel Gallina2012-10-08 18:51:02 -0300
commit51867ae22506264c0893b5e1a9ec7967157b6d96 (patch)
treee94fa29dea5d29eca26827fd1264f34891b3e0ca /lisp/progmodes/python.el
parenta5b773c40ce950ac004be26b9f1bc4fcf985276b (diff)
downloademacs-51867ae22506264c0893b5e1a9ec7967157b6d96.tar.gz
emacs-51867ae22506264c0893b5e1a9ec7967157b6d96.zip
* progmodes/python.el (python-shell-output-filter): Handle extra
carriage return in OSX. Fixes: debbugs:12409
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 3 insertions, 1 deletions
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)