From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12409: 24.2.50; OS X Python completion leaks junk to inferior-python-mode buffer Date: Mon, 08 Oct 2012 15:07:57 -0400 Message-ID: References: <5071DD38.1060907@anue.biz> <5072DE3E.4010300@anue.biz> <58092581-B530-421B-8B25-97D0D09C7D4F@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349723319 18006 80.91.229.3 (8 Oct 2012 19:08:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2012 19:08:39 +0000 (UTC) Cc: 12409@debbugs.gnu.org, =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 08 21:08:45 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 1TLIh2-0003po-04 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Oct 2012 21:08:44 +0200 Original-Received: from localhost ([::1]:41675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLIgv-00069W-LH for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Oct 2012 15:08:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLIgt-00069L-Nw for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2012 15:08:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLIgr-0006NL-Hg for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2012 15:08:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLIgr-0006Ma-Ec for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2012 15:08:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TLIhJ-0008By-TI for bug-gnu-emacs@gnu.org; Mon, 08 Oct 2012 15:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Oct 2012 19:09: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.134972331531454 (code B ref 12409); Mon, 08 Oct 2012 19:09:01 +0000 Original-Received: (at 12409) by debbugs.gnu.org; 8 Oct 2012 19:08:35 +0000 Original-Received: from localhost ([127.0.0.1]:34144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLIgs-0008BH-Nl for submit@debbugs.gnu.org; Mon, 08 Oct 2012 15:08:34 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:34775) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TLIgr-0008B6-84 for 12409@debbugs.gnu.org; Mon, 08 Oct 2012 15:08:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FxLQG/2dsb2JhbABEsEiDSYEIghYBBVYjEAs0EhQYDSSIIboJkEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="200875275" Original-Received: from 69-196-180-6.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Oct 2012 15:07:58 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1A9F8594D1; Mon, 8 Oct 2012 15:07:57 -0400 (EDT) In-Reply-To: <58092581-B530-421B-8B25-97D0D09C7D4F@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv?="'s message of "Mon, 8 Oct 2012 20:46:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) 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:65400 Archived-At: > (format "\r?\n\\(?:%s\\|%s\\|%s\\)$" works. It is a bad idea to use literal > ^M in files, so take Andreas advice and use \r. BTW, could someone investigate into the cause of these ^M? IOW, we need to look at the actual bytes that Python sends to Emacs, then figure out why Emacs's EOL-conversion doesn't handle them (are the bytes wrong, or is the process's coding-system set incorrectly?). Stefan