From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dan Davison Newsgroups: gmane.emacs.bugs Subject: bug#24322: 25.1.50; Python completion should not strip trailing space Date: Sat, 27 Aug 2016 21:10:23 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ec7f4d7273a053b140fa9 X-Trace: blaine.gmane.org 1472332279 5024 195.159.176.226 (27 Aug 2016 21:11:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 Aug 2016 21:11:19 +0000 (UTC) To: 24322@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 27 23:11:15 2016 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 1bdksk-0000pp-OF for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Aug 2016 23:11:15 +0200 Original-Received: from localhost ([::1]:37211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdksi-00059f-3k for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Aug 2016 17:11:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdksb-00059a-3K for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2016 17:11:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bdksY-0007p3-L0 for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2016 17:11:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdksY-0007oz-HY for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2016 17:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bdksY-0002GG-8O for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2016 17:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Davison Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Aug 2016 21:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24322 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.14723322498672 (code B ref -1); Sat, 27 Aug 2016 21:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Aug 2016 21:10:49 +0000 Original-Received: from localhost ([127.0.0.1]:42236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bdksL-0002Fn-DZ for submit@debbugs.gnu.org; Sat, 27 Aug 2016 17:10:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bdksJ-0002Fa-TQ for submit@debbugs.gnu.org; Sat, 27 Aug 2016 17:10:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bdksC-0007j4-RS for submit@debbugs.gnu.org; Sat, 27 Aug 2016 17:10:42 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdksC-0007ij-J0 for submit@debbugs.gnu.org; Sat, 27 Aug 2016 17:10:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdks9-00058S-Ug for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2016 17:10:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bdks7-0007i4-VT for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2016 17:10:37 -0400 Original-Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]:38565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdks7-0007he-P4 for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2016 17:10:35 -0400 Original-Received: by mail-it0-x235.google.com with SMTP id g62so45681241ith.1 for ; Sat, 27 Aug 2016 14:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=dfTk/oDmZ8VFYsu36v1oRE0eIGgjxCfxX5JM0YjqvEA=; b=fqJEoZCO1yOGZbURlrG5ZHlurhsbnZo/HWbeZXcwZaoLArF5cAytmqQU+alSj+GlcT dBbKBZNLvb9FGyROpBy9jft49iE9vLaNS80xSkhrzbATNVgyOsYzousSAVUnKOjiM3eI B/9J8c/kix9Hb6XrhYgEfCp5GRavXiLLilEDzXTgd9MLLdc5tyxLVQoHbyITh9suMIqW rrTIeh2Lu69aABUi9Abw5Ve+wOX29+He1CnDMk7rtWmjMidb9qOlavnWXZ7OWdwp+BDA aBMedCepWYrNIiAfDVebcSmsMHqwxTVYKJMKVB4kRu8Htp/nZwx0m4sZkXDauXqDFqyX dl/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dfTk/oDmZ8VFYsu36v1oRE0eIGgjxCfxX5JM0YjqvEA=; b=cVTZyPHp+bVRuW1ugTIIdEZBFi8T2mGtA0Yr2eXoEJ1yTjMfLjzt3mMn0Npu3qDkDL Zu9Sr1rHUyE8dSsNgt8kSSf59If2dpcc/ZZs97LIvljRHJ96CoD5zleKVeIbqiH3Ytcu qN9jrJdcpZM06r6ys3SLkKhE2TpyT3aGAdX406fA7nIepu0UKLlXHEToWdk7qGXHFDtc 1xRbimINYABeX4tqHpyGShJmNm/rFE+ih3GypEo9FKFuECmujs4EPLizECyDUexCX22E 9oykqxP9M+RunSULwudBPq2zXRJDKlJP7JOtyHXgky1cemVId+Rw7yXIhPc2ufcDSnD1 uRqA== X-Gm-Message-State: AE9vXwMdW594YSMssZprXAcx2atohXWAMfR0v7m38Lju+swlZilPSpgOq5mtZcla816vu79kFot41wGuAnc83A== X-Received: by 10.107.11.170 with SMTP id 42mr12002805iol.184.1472332234694; Sat, 27 Aug 2016 14:10:34 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:122727 Archived-At: --001a113ec7f4d7273a053b140fa9 Content-Type: text/plain; charset=UTF-8 >From emacs -Q: (setq python-shell-interpreter "ipython" python-shell-interpreter-args "-i") M-x run-python In the python comint buffer insert "from itertools imp" and hit tab. You will see "imp" completed as "import" (no trailing space). However, if you do this in ipython itself, you will see "imp" completed as "import ". This (i.e. what ipython does) is the desired behavior (because import is always followed by another word). In GNU Emacs 25.1.50.1 (x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F27)) of 2016-04-16 built on hemiprocne Repository revision: 934549e23d6bda5231375dbfed7b42a966c85d14 Windowing system distributor 'Apple', version 10.3.1348 Configured using: 'configure --prefix=/usr/local/Cellar/emacs/HEAD --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/HEAD/share/info/emacs --with-xml2 --without-dbus --without-gnutls --with-ns --disable-ns-self-contained' Configured features: JPEG NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 195970 9329) (symbols 48 19431 0) (miscs 40 43 170) (strings 32 14792 5110) (string-bytes 1 431078) (vectors 16 32763) (vector-slots 8 640839 4764) (floats 8 156 54) (intervals 56 194 0) (buffers 976 11)) --001a113ec7f4d7273a053b140fa9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
From emacs -Q:

(setq python-= shell-interpreter "ipython"
=C2=A0 =C2=A0 =C2=A0 python= -shell-interpreter-args "-i")

M-x run-py= thon

In the python comint buffer insert "from= itertools imp" and hit tab.

You will see &qu= ot;imp" completed as "import" (no trailing space).

However, if you do this in ipython itself, you will see &qu= ot;imp" completed
as "import ". This (i.e. what ip= ython does) is the desired behavior
(because import is always fol= lowed by another word).

In GNU Emacs 25.1.50.1 (x8= 6_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F27))
=C2=A0of 2016-04-16 built on hemiprocne
Repository revis= ion: 934549e23d6bda5231375dbfed7b42a966c85d14
Windowing system di= stributor 'Apple', version 10.3.1348
Configured using:
=C2=A0'configure --prefix=3D/usr/local/Cellar/emacs/HEAD
<= div>=C2=A0--enable-locallisppath=3D/usr/local/share/emacs/site-lisp
=C2=A0--infodir=3D/usr/local/Cellar/emacs/HEAD/share/info/emacs --with-x= ml2
=C2=A0--without-dbus --without-gnutls --with-ns --disable-ns-= self-contained'

Configured features:
JPEG NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS

Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major m= ode: Lisp Interaction

Minor modes in effect:
=
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
<= div>=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2= =A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
<= div>=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: = t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mo= de: t
=C2=A0 transient-mark-mode: t

Rece= nt messages:
For information about GNU Emacs and the GNU system, = type C-h C-a.

Load-path shadows:
None fo= und.

Features:
(shadow sort mail-extr em= acsbug message dired dired-loaddefs format-spec
rfc822 mml easyme= nu mml-sec password-cache epa derived epg epg-config
gnus-util rm= ail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse
rfc22= 31 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-= drums mm-util mail-prsvr mail-utils time-date mule-util tooltip
e= ldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
term/ns-win ns-win ucs-normalize term/common-win tool-bar dnd fontset
image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mod= e
prog-mode register page menu-bar rfn-eshadow timer select scrol= l-bar
mouse jit-lock font-lock syntax facemenu font-core term/tty= -colors frame
cl-generic cham georgian utf-8-lang misc-lang vietn= amese tibetan thai
tai-viet lao korean japanese eucjp-ms cp51932 = hebrew greek romanian
slovak czech european ethiopic indian cyril= lic chinese charscript
case-table epa-hook jka-cmpr-hook help sim= ple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs butto= n faces cus-face macroexp files
text-properties overlay sha1 md5 = base64 format env code-pages mule
custom widget hashtable-print-r= eadable backquote kqueue cocoa ns
multi-tty make-network-process = emacs)

Memory information:
((conses 16 1= 95970 9329)
=C2=A0(symbols 48 19431 0)
=C2=A0(miscs 40 = 43 170)
=C2=A0(strings 32 14792 5110)
=C2=A0(string-byt= es 1 431078)
=C2=A0(vectors 16 32763)
=C2=A0(vector-slo= ts 8 640839 4764)
=C2=A0(floats 8 156 54)
=C2=A0(interv= als 56 194 0)
=C2=A0(buffers 976 11))

--001a113ec7f4d7273a053b140fa9--