From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Davison Newsgroups: gmane.emacs.bugs Subject: bug#12409: 24.2.50; OS X Python completion leaks junk to inferior-python-mode buffer Date: Mon, 10 Sep 2012 22:22:02 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1347345878 15957 80.91.229.3 (11 Sep 2012 06:44:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2012 06:44:38 +0000 (UTC) To: 12409@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 11 08:44:40 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 1TBKD9-0004XA-6J for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2012 08:44:39 +0200 Original-Received: from localhost ([::1]:49268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBKD5-00026a-Kp for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2012 02:44:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBKCx-0001ys-DV for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2012 02:44:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBKCu-0003C2-TW for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2012 02:44:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBKCu-0003Bs-OQ for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2012 02:44:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TBKDW-0001uD-Qm for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2012 02:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Davison Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Sep 2012 06:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12409 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13473458637263 (code B ref -1); Tue, 11 Sep 2012 06:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Sep 2012 06:44:23 +0000 Original-Received: from localhost ([127.0.0.1]:53501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBKCr-0001t4-5x for submit@debbugs.gnu.org; Tue, 11 Sep 2012 02:44:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42442) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBIvu-0007b4-UP for submit@debbugs.gnu.org; Tue, 11 Sep 2012 01:22:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBIvG-0004Zz-TV for submit@debbugs.gnu.org; Tue, 11 Sep 2012 01:22:08 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:45658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBIvG-0004Zv-Po for submit@debbugs.gnu.org; Tue, 11 Sep 2012 01:22:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBIvF-0007S2-94 for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2012 01:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBIvD-0004ZP-MY for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2012 01:22:05 -0400 Original-Received: from mail-ie0-f169.google.com ([209.85.223.169]:52329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBIvD-0004ZI-Ib for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2012 01:22:03 -0400 Original-Received: by iec9 with SMTP id 9so255014iec.0 for ; Mon, 10 Sep 2012 22:22:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1vtrwrm90xOc2F6tGgXjigXzCVpckGgHe3qjKYnZJVw=; b=JsU5ffC/a2cd2p0E73kQavV/kd9PXf+XmhQ9QIa8hwWvPQUPk+MPJ62ZenoxWAGdGM zsz2B3TItiC9/dc2/xs8mfww+Sze3j38zQysIv+VC4jp72Vv77+CS6PyLPV8Kr2sYQlF LhisDge4SNWlFgGBt+wYaqP3LAmoem05vsZ6Db8Vj01QwFS1Vn2ZhNYcYUdN1MswiQeW cwzLYyaW168pJijr4H0CRW1DsPmYGFETJ699lDRRIs4gm+IcyaX2Vs9xq+I9R26Fc6nB 6mVigiMczA+fl02Zf3cDoxuX26/A53sspGAK+fvglVaY3Z54ffSya+hS0wvsVkwHTeUE xWQg== Original-Received: by 10.50.36.161 with SMTP id r1mr14942878igj.10.1347340922621; Mon, 10 Sep 2012 22:22:02 -0700 (PDT) Original-Received: by 10.64.56.10 with HTTP; Mon, 10 Sep 2012 22:22:02 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 11 Sep 2012 02:44:19 -0400 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:64087 Archived-At: 1. emacs -nw -q 2. M-x run-python 3. At the prompt, enter "aaaa = 4" followed by RETURN 4. At the prompt, enter "aaaaaa = 6" followed by RETURN 5. At the prompt enter "aa" followed by TAB to request a completion After step (4) the buffer contents look like: >>> aaaa = 4 >>> aaaaaa = 6 >>> After step (5) it looks like: >>> aaaa = 4 >>> aaaaaa = 6 >>> 'aaaa;aaaaaa' >>> aaaa Notice that the string containing possible completions was leaked to the shell buffer. The bug occurs both when running emacs in a terminal with `emacs -nw -q` and when running the emacs cocoa app. Some discussion of this bug can be found at https://github.com/fgallina/python.el/issues/92. It seems to be OS X-specific, related to `accept-process-output`. Dan In GNU Emacs 24.2.50.1 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36) of 2012-09-10 on cotinga.local Windowing system distributor `Apple', version 10.3.1038 Configured using: `configure '--with-ns' '--with-png=no' '--with-gif=no'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Inferior Python Minor modes in effect: compilation-shell-minor-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: SPC ESC O A ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D ESC O D RET ESC O B ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C RET C-x o ESC O A ESC O B ESC O B ESC O B C-x o ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O A ESC O B ESC O A ESC x r e p o TAB r TAB TAB RET C-g C-x b * P y TAB RET C-h v m a j o TAB RET C-x C-f C-g C-u C-g C-x C-f DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL d a v TAB n o n TAB p y t TAB . TAB z TAB . p y RET d e f s DEL a TAB ESC O B TAB ESC O B TAB ESC O B a TAB ESC O B DEL ESC x c o m p l TAB i TAB a t TAB RET a ESC x ESC O A RET C-x b RET ESC x r e p o r TAB RET Recent messages: Can't guess python-indent-offset, using defaults: 4 Loading vc-git...done ...on_work/python.el/z.py locked by davison@cotin... (pid 2599): (s, q, p, ?)? Please type q, s, or p; or ? for help ...on_work/python.el/z.py locked by davison@cotin... (pid 2599): (s, q, p, ?)? Please type q, s, or p; or ? for help ...on_work/python.el/z.py locked by davison@cotin... (pid 2599): (s, q, p, ?)? byte-code: End of buffer [4 times] Making completion list... You can run the command `completion-at-point' with C-M-i [2 times] Load-path shadows: None found. Features: (shadow sort mail-extr vc-git pp browse-url wid-edit network-stream starttls url-http tls url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util password-cache url-vars mailcap emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils compile python rx comint ring ansi-color help-mode easymenu help-fns time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)