From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#24322: [PATCH] Re: 25.1.50; Python completion should not strip trailing space Date: Mon, 03 Jul 2017 18:02:13 -0400 Message-ID: <87lgo5i3h6.fsf@users.sourceforge.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499119272 21474 195.159.176.226 (3 Jul 2017 22:01:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Jul 2017 22:01:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: 24322@debbugs.gnu.org To: Dan Davison Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 04 00:01:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dS9P1-0005IP-NS for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Jul 2017 00:01:07 +0200 Original-Received: from localhost ([::1]:37424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dS9P7-0001fx-3b for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jul 2017 18:01:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dS9P1-0001f5-LH for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2017 18:01:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dS9Ow-0007Ty-R8 for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2017 18:01:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dS9Ow-0007TY-NM for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2017 18:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dS9Ow-0005b8-9W for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2017 18:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jul 2017 22:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24322 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24322-submit@debbugs.gnu.org id=B24322.149911924521488 (code B ref 24322); Mon, 03 Jul 2017 22:01:02 +0000 Original-Received: (at 24322) by debbugs.gnu.org; 3 Jul 2017 22:00:45 +0000 Original-Received: from localhost ([127.0.0.1]:50880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dS9Of-0005aR-Cg for submit@debbugs.gnu.org; Mon, 03 Jul 2017 18:00:45 -0400 Original-Received: from mail-it0-f66.google.com ([209.85.214.66]:36260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dS9Od-0005a9-Gx; Mon, 03 Jul 2017 18:00:43 -0400 Original-Received: by mail-it0-f66.google.com with SMTP id k3so9215742ita.3; Mon, 03 Jul 2017 15:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=vZSEFiSEi+0u3yXXOShQNg7b7307jeAug7/acbMKDxA=; b=ckuCYG2AfZUMl1pPzTtWBpHx8WDUMDJRFE1PpM1vKFi37BbUCM3mR3zvRYMmlj8tbl G8RuG31+gOF30a4N+zS3fBGzU/yuowZ5ZvAaucahQBLEEY15S20kapo1PWQwhjVCwf2D fbpqrWuPzsPzhSyOCordlUTJShb3DeNjLDK5DFKQYZ04bhNXCxtPCeuNyr0J/CJEBy35 5JR+A7+toB7qUfAvc8GqM1RgqfvXe57prbE1g052Mixmp6bZZp9+fzeGtBNZ5wKPUKq9 YZpQ/yobBhl5vWXsXJ+iPevu/SaRZ9OTZDMVSBYXqTlpKp4JcoWcVEb3hQpBTTFeihaS 4Uew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=vZSEFiSEi+0u3yXXOShQNg7b7307jeAug7/acbMKDxA=; b=pfMrZh7ijxEayHQJZST9fUW3xWX6zkQiUFZ5of7tkUl2HFaplHAdbCD7YvkVr0EK05 zIKkn3/z5jjvQlHAGkNQMd7O83oRBjBOz2X0SMdSmZDf/nVVH7ra9ZAIpl5kb0d/DdwD RpJ0wXegcmtV5za4Wb7JpS8m70vK3Rrl8JnVzt7S7fAXFiRdMaO/Ih3Mgj9CrZuv30Vw vvUM0wT9QUbIzew0X8PYGaI3Y8ld+gPHbVWRWe9lZhpe+/kNqek+CYLB0UZ9TpUD24ap Y6ceC+gQSMipRfwh5QY85ZoYFsqxyauDyj4hkRYaxR9k8NYVonqaqLvDMTOTU+UCVedx NjeA== X-Gm-Message-State: AIVw110KKMwg4EQNGLHHFEbPjUIdHlSJCmXZDPnXBsQck9+GJm/Yol0Z oMnsrzYBO/7vPfN4 X-Received: by 10.36.19.5 with SMTP id 5mr10930507itz.65.1499119237602; Mon, 03 Jul 2017 15:00:37 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id b14sm3366827itb.18.2017.07.03.15.00.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jul 2017 15:00:36 -0700 (PDT) In-Reply-To: (Dan Davison's message of "Sat, 27 Aug 2016 22:58:25 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:134147 Archived-At: tags 24322 + confirmed severity 24322 minor quit Sorry it took so long for someone to reach this report. Dan Davison writes: >>>> From emacs -Q: >>>> >>>> (setq python-shell-interpreter "ipython" >>>> python-shell-interpreter-args "-i") Using plain "python" shows the behaviour you describe. I can't really get ipython working properly unless I add --simple-prompt to python-shell-interpreter-args, and then it seems that ipython itself prints the completions without a space. I'm using ipython 5.1.0, I think I've read in some other bug that the --simple-prompt started being necessary from version 5.x. > The patch currently only fixes "native" (readline-based) completion. If it > is agreed that this is the correct direction I can prepare a similar patch > for the non-native / legacy completion function > `python-shell-completion-get-completions', which shows the same behavior. Yes please!