From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina Newsgroups: gmane.emacs.bugs 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 Message-ID: <5071DD38.1060907@anue.biz> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1349639506 29608 80.91.229.3 (7 Oct 2012 19:51:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2012 19:51:46 +0000 (UTC) To: 12409@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 07 21:51:52 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 1TKwt9-0003k6-Kk for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Oct 2012 21:51:47 +0200 Original-Received: from localhost ([::1]:43382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKwt3-0005WY-O9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Oct 2012 15:51:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKwt1-0005WP-SW for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 15:51:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKwt0-0002Y9-UQ for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 15:51:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKwt0-0002XT-Qr for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 15:51:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TKwtN-0004Eq-K7 for bug-gnu-emacs@gnu.org; Sun, 07 Oct 2012 15:52:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Oct 2012 19:52: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.134963948616242 (code B ref 12409); Sun, 07 Oct 2012 19:52:01 +0000 Original-Received: (at 12409) by debbugs.gnu.org; 7 Oct 2012 19:51:26 +0000 Original-Received: from localhost ([127.0.0.1]:60359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TKwso-0004Du-DV for submit@debbugs.gnu.org; Sun, 07 Oct 2012 15:51:26 -0400 Original-Received: from mail-gg0-f172.google.com ([209.85.161.172]:56599) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TKwsl-0004Df-Cl for 12409@debbugs.gnu.org; Sun, 07 Oct 2012 15:51:24 -0400 Original-Received: by mail-gg0-f172.google.com with SMTP id i4so1019650ggn.3 for <12409@debbugs.gnu.org>; Sun, 07 Oct 2012 12:50:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=iGslyp8ubPELEvSX5OBlH7nb/wU5UTzgiLlfuD9j8hM=; b=Qf5xNXKUeasm/63RqFzkfJbMP2DTqTeWqVZkt96c7YQkk7f50yjlOb3CTSc/FhJbIv vWR2Ue/WZ0+JBOL5feKF6FVpe30/wLn3AQSohSf4n25X6ScaEH6gdjW4enneVTlm1INA /Y6Fk3JMLjcH98kB/IGgjDt9eFwAPootwF7MFPOyo2qLnX/cEa0gwxNEomGhPb75K42n p604x+LBfEPkmhH4bIgwLnHv3q/+jTfJ3iqfexOtpjF6dlx4bOH+YHgGBvPYJ9Luhoat OiJuD0fkjTKW6SBRa2SoXdNUrASURM7NSMf+C/LZj1YW6tDK6cxbzGQvZgqfXbaJ9i7c SIPA== Original-Received: by 10.236.75.228 with SMTP id z64mr2075718yhd.1.1349639454286; Sun, 07 Oct 2012 12:50:54 -0700 (PDT) Original-Received: from [192.168.1.25] (host17.181-14-226.telecom.net.ar. [181.14.226.17]) by mx.google.com with ESMTPS id t46sm23150957yhi.3.2012.10.07.12.50.52 (version=SSLv3 cipher=OTHER); Sun, 07 Oct 2012 12:50:53 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120910 Thunderbird/15.0.1 X-Gm-Message-State: ALoCoQlJBR42aTlENVDBMxvGTJK+FuaiJNSQPRFgUDjAPYZWf6DMO+SuwVqSGJaDmHT+6dz5Qu3u 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:65356 Archived-At: 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)