From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: vsuharnikov@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#22641: 24.5; Double import on completion in python mode Date: Fri, 12 Feb 2016 04:58:44 +0300 Message-ID: <3816349.WWG2T4moTM@fort_dey> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1455294808 31032 80.91.229.3 (12 Feb 2016 16:33:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2016 16:33:28 +0000 (UTC) To: 22641@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 12 17:33:13 2016 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 1aUGee-0004hS-P2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Feb 2016 17:33:13 +0100 Original-Received: from localhost ([::1]:34123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUGee-0005fM-7l for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Feb 2016 11:33:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUGeY-0005ek-UB for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 11:33:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUGeU-0004Cm-Tn for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 11:33:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUGeU-0004Ce-Ph for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 11:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aUGeU-0004Jg-Lp for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 11:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: vsuharnikov@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Feb 2016 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22641 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.145529474616526 (code B ref -1); Fri, 12 Feb 2016 16:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Feb 2016 16:32:26 +0000 Original-Received: from localhost ([127.0.0.1]:38145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aUGdu-0004IU-E4 for submit@debbugs.gnu.org; Fri, 12 Feb 2016 11:32:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35973) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aUGdt-0004I8-Bc for submit@debbugs.gnu.org; Fri, 12 Feb 2016 11:32:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUGdm-0003vi-Rd for submit@debbugs.gnu.org; Fri, 12 Feb 2016 11:32:20 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUGdm-0003vd-Ot for submit@debbugs.gnu.org; Fri, 12 Feb 2016 11:32:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUGdl-0005Ub-Lu for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 11:32:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUGdi-0003t1-OK for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 11:32:17 -0500 Original-Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:34351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUGdi-0003sS-BR for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 11:32:14 -0500 Original-Received: by mail-lb0-x232.google.com with SMTP id aj3so936183lbd.1 for ; Fri, 12 Feb 2016 08:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding:content-type; bh=+570d8SwaqtEUwYzs9lrWIG4g9vtig0uIgHql5ngrTQ=; b=mWw0McjaaTvDyJ8/zQ/0QV2YrBbl2vRijo8Mt6oEjiRSDCyvGMaAR1/hGgpdRJSsgu 82P3nyAXd5z9QI/ucA2ikpVAGB1jdBvaBq1M2YJBCO3vI4eU5VRwhJ2OOurTIqOgsVFE 2EuWICfsg4yDt0aPcQ/NuZD3OV3qzw7Bl/Ux8nXm4btxXE/G6sWKOiPA9gQQxkJnPp+u 08IVdVPfEHDjaujiPsgdDCPzFmwWeYiy3qt5HW64a10F5C9HlM2b5EHWWDGUJJ81TOye DiieWFfS7B78T6LOEvW22RGUTJuxxb+hX4gzPVbcV2ps0n69fNutQFvBzyyVFTdk83RD ZmTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding:content-type; bh=+570d8SwaqtEUwYzs9lrWIG4g9vtig0uIgHql5ngrTQ=; b=YSH0bdcS27ipPMgcf6Yx27u6i6oVv/gcPWsvbz91fTEewFWhZBqwc2qD/F/OxvG+af FK4iZ57Jz75Yrk1OiG0XSQMJKgtXiRpMUWWvaKpHBK9lix0zXYY9WgCNSqoW0wm3/foU ztDHODhCgSakYoenvVw12a2xWac27T8eKsQ26Sk+jOzwa2d84R8lxxGVZ5EopMsy/bSr xc9leGyeUUkqAzBfGYTmZi5iMFp1u1ammzog2xatqHbOGzxTrXmojJtZVXPjFTiGtQVA UDD64RN7nvj6u9IXz/Q1oO/dScQqbdQuXuvcHGicaMGYiPzBCN8zYrKVRw/gF63hzRMe hHIA== X-Gm-Message-State: AG10YOSdfwDZAfQXl/RrixzF90+2XrKw3JT3NR6SPjteZwANvDmed3viZ/EBaZWv2blLhw== X-Received: by 10.112.181.196 with SMTP id dy4mr1030499lbc.42.1455294733583; Fri, 12 Feb 2016 08:32:13 -0800 (PST) Original-Received: from fort_dey.localnet (95-183-89-55.dynvpn.flex.ru. [95.183.89.55]) by smtp.gmail.com with ESMTPSA id h75sm2003002lfi.2.2016.02.12.08.32.12 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 12 Feb 2016 08:32:12 -0800 (PST) User-Agent: KMail/4.14.10 (Linux/4.3.3-gentoo; KDE/4.14.16; x86_64; ; ) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112939 Archived-At: Steps for reproduce: * start emacs: emacs -Q * create an empty python buffer: C-x b foo.py RET * turn on python mode: M-x python-mode RET * start interpreter: C-c C-z (python-shell-switch-to-shell) and answer the prompts (I pressed RET n) * switch back to python buffer: C-x o (other-window) * type "from os import " (there is a space after "import") * press C-M-i (completion-at-point) Observed behaviour: "import " is inserted in the buffer. The buffer now contains "from os import import ". Expected behaviour: completion-at-point offers names from the os module as completion candidates. In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.29) of 2016-01-26 on fort_dey Windowing system distributor `The X.Org Foundation', version 11.0.11800000 System Description: Gentoo Base System release 2.2 Configured using: `configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib64 --program-suffix=-emacs-24 --infodir=/usr/share/info/emacs-24 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --with-gameuser=:gamestat --without-compress-install --with-file-notification=inotify --enable-acl --with-dbus --without-gnutls --with-gpm --without-hesiod --without-kerberos --without-kerberos5 --without-xml2 --without-selinux --without-wide-int --with-zlib --with-sound=alsa --with-x --without-ns --without-gconf --without-gsettings --without-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --without-imagemagick --with-xft --without-libotf --without-m17n-flt --with-x-toolkit=gtk2 GENTOO_PACKAGE=app-editors/emacs-24.5-r1 'CFLAGS=-march=native -O2 -pipe -nopie' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Important settings: value of $LC_ALL: value of $LANG: ru_RU.utf8 locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: tooltip-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: C-x C-g is undefined Quit [3 times] Make dedicated process? (y or n) n Sent python-shell-completion-setup-code Sent python-ffap-setup-code Sent python-eldoc-setup-code No match Making completion list... Quit Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr 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 help-fns mail-prsvr mail-utils compile cl-extra help-mode python easymenu json comint ring cl-loaddefs cl-lib ansi-color time-date cyril-util tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-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 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 make-network-process dbusbind inotify dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 86333 7207) (symbols 48 18744 0) (miscs 40 59 199) (strings 32 12885 4754) (string-bytes 1 391566) (vectors 16 10730) (vector-slots 8 400620 7751) (floats 8 69 423) (intervals 56 343 0) (buffers 960 14) (heap 1024 13190 827))