bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12409: 24.2.50; OS X Python completion leaks junk to inferior-python


From: Fabián Ezequiel Gallina
Subject: bug#12409: 24.2.50; OS X Python completion leaks junk to inferior-python-mode buffer
Date: Sun, 07 Oct 2012 16:51:20 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120910 Thunderbird/15.0.1

Does the attached patch fix that?


=== modified file 'lisp/progmodes/python.el'
*** lisp/progmodes/python.el    2012-10-07 19:37:37 +0000
--- lisp/progmodes/python.el    2012-10-07 19:47:52 +0000
***************
*** 1887,1893 ****
     python-shell-output-filter-buffer
     (concat python-shell-output-filter-buffer string))
    (when (string-match
!          (format "\n\\(?:%s\\|%s\\|%s\\)$"
                   python-shell-prompt-regexp
                   python-shell-prompt-block-regexp
                   python-shell-prompt-pdb-regexp)
--- 1887,1895 ----
     python-shell-output-filter-buffer
     (concat python-shell-output-filter-buffer string))
    (when (string-match
!          ;; It seems on OSX an extra carriage return might be attached
!          ;; to the end of output.
!          (format " ?\n\\(?:%s\\|%s\\|%s\\)$"
                   python-shell-prompt-regexp
                   python-shell-prompt-block-regexp
                   python-shell-prompt-pdb-regexp)







reply via email to

[Prev in Thread] Current Thread [Next in Thread]