From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#12409: 24.2.50; OS X Python completion leaks junk to inferior-python-mode buffer Date: Mon, 8 Oct 2012 09:24:03 +0200 Message-ID: References: <5071DD38.1060907@anue.biz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1349681088 22106 80.91.229.3 (8 Oct 2012 07:24:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2012 07:24:48 +0000 (UTC) Cc: 12409@debbugs.gnu.org To: =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 08 09:24:54 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TL7hu-0003c7-2h for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Oct 2012 09:24:54 +0200 Original-Received: from localhost ([::1]:38636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TL7hn-0004pI-Tt for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Oct 2012 03:24:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TL7hg-0004oI-De for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2012 03:24:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TL7hc-0006EQ-BS for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2012 03:24:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TL7hc-0006EL-88 for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2012 03:24:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TL7i1-0004Dc-Ip for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2012 03:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Oct 2012 07:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12409 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12409-submit@debbugs.gnu.org id=B12409.134968108616192 (code B ref 12409); Mon, 08 Oct 2012 07:25:01 +0000 Original-Received: (at 12409) by debbugs.gnu.org; 8 Oct 2012 07:24:46 +0000 Original-Received: from localhost ([127.0.0.1]:60690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TL7hl-0004D5-Cf for submit@debbugs.gnu.org; Mon, 08 Oct 2012 03:24:46 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:35175) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TL7hj-0004Cs-0P for 12409@debbugs.gnu.org; Mon, 08 Oct 2012 03:24:43 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 51C8A9DAB for <12409@debbugs.gnu.org>; Mon, 8 Oct 2012 09:24:10 +0200 (CEST) Original-Received: (qmail 7059 invoked by uid 89); 8 Oct 2012 07:23:37 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 8 Oct 2012 07:23:37 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id B72637FA05E; Mon, 8 Oct 2012 09:24:09 +0200 (CEST) In-Reply-To: <5071DD38.1060907@anue.biz> X-Mailer: Apple Mail (2.1499) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65370 Archived-At: Hello. 7 okt 2012 kl. 21:51 skrev Fabi=E1n Ezequiel Gallina : > Does the attached patch fix that? >=20 >=20 No, unfortunately it does not. The value of python-shell-output-filter-buffer is: ';'.join(__COMPLETER_all_completions('''aaaa'''))^M 'aaaa;aaaaaa'^M >>> Jan D. > =3D=3D=3D 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) >=20 >=20 >=20 >=20