From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 18:15:59 2015 Received: (at submit) by debbugs.gnu.org; 14 May 2015 22:15:59 +0000 Received: from localhost ([127.0.0.1]:45490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yt1Q4-0006w8-S8 for submit@debbugs.gnu.org; Thu, 14 May 2015 18:15:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36048) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yt1Nm-0006s6-U8 for submit@debbugs.gnu.org; Thu, 14 May 2015 18:13:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yt1Nf-0004P2-NH for submit@debbugs.gnu.org; Thu, 14 May 2015 18:13:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yt1Nf-0004Ov-Jv for submit@debbugs.gnu.org; Thu, 14 May 2015 18:13:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yt1Nd-0004bY-Vr for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 18:13:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yt1Na-0004Nh-M4 for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 18:13:25 -0400 Received: from giraff.fripost.org ([178.16.208.44]:35313 helo=outgoing.fripost.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yt1Na-0004My-6t for bug-gnu-emacs@gnu.org; Thu, 14 May 2015 18:13:22 -0400 Received: from localhost (localhost [127.0.0.1]) by outgoing.fripost.org (Postfix) with ESMTP id E5C4A17EAD for ; Fri, 15 May 2015 00:13:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fripost.org; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from; s=20140703; t=1431641599; x= 1433456000; bh=7oWo/IZ4Y+C7/tYUNjYxvESvolr6mpGWRjA7F41dw9A=; b=A vM0Stt/c3aACcwCm/qez1+2bSEnyArunGRD1LXqfF1FVr5fFOi5xTRvd/XJ2gBPq TIiEFWAIcn2l1kZBNF8J0qrL1YTuA0/sJgyc56LhVYGEWvt1gnHNZ9ctnBiwczpt 8HC0p2sSBaelWrv0GByTsNxB5dBm8TqZcOiSuWaErI= X-Virus-Scanned: Debian amavisd-new at fripost.org Received: from outgoing.fripost.org ([127.0.0.1]) by localhost (giraff.fripost.org [127.0.0.1]) (amavisd-new, port 10040) with LMTP id 4TcTb0f4x0Bu for ; Fri, 15 May 2015 00:13:19 +0200 (CEST) Received: from smtp.fripost.org (mistral.fripost.org [178.16.208.43]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mistral.fripost.org", Issuer "mistral.fripost.org" (not verified)) by outgoing.fripost.org (Postfix) with ESMTPS id C32A717EAA for ; Fri, 15 May 2015 00:13:19 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) by smtp.fripost.org (Postfix) with ESMTPSA id 9518B20277 for ; Fri, 15 May 2015 00:13:19 +0200 (CEST) From: andreas.tjarnberg@fripost.org (Andreas =?utf-8?Q?Tj=C3=A4rnberg?=) To: bug-gnu-emacs@gnu.org Subject: 25.0.50; python-shell-completion-complete-or-indent hangs emacs with ipython v 3.1.0 Date: Fri, 15 May 2015 00:13:11 +0200 Message-ID: <87617u7qq0.fsf@fripost.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 14 May 2015 18:15:54 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Hi, Short description: When activating python with the ipython shell interpreter version 3.1.0 (latest) inside a virtual environment, TAB completion both in the (run-python) shell and in a python file buffer hangs emacs. I have to C-g to get back to the cursor. Long description: I use el-get to fetch the pyvenv package. recipe to duplicate starting with: $ emacs -q -l setup.el 8< cut here -------- setup.el -------- begin (setq emacs-init-dir (file-name-directory (or load-file-name (buffer-file-name)))) (setq el-get-dir (expand-file-name "el-get" emacs-init-dir)) (add-to-list 'load-path (concat emacs-init-dir "el-get/el-get")) (unless (require 'el-get nil 'noerror) (with-current-buffer (url-retrieve-synchronously "https://raw.github.com/dimitri/el-get/master/el-get-install.el") (let (el-get-master-branch) (goto-char (point-max)) (eval-print-last-sexp)))) (add-to-list 'el-get-recipe-path (concat emacs-init-dir "recipes")) (el-get 'sync '(pyvenv)) (setq python-shell-interpreter "ipython" python-shell-interpreter-args "--no-confirm-exit --no-banner" python-shell-prompt-regexp "In \\[[0-9]+\\]: " python-shell-prompt-output-regexp "Out\\[[0-9]+\\]: ") 8< cut here -------------------------- end now I proceed to create a virtual environment for python in the terminal $ mkvirtualenv ipython_hangs_emacs and install ipython with: $ pip install ipython Inside emacs I now use pyvenv-workon to work in this virtual environment. and do M-x run-python Here is where the trouble start. The command hangs emacs but still launches a *Python* shell buffer. C-g will give back control to me. Now switching to the *Python* buffer and pressing TAB will hang emacs until I C-g. Running the code from the command (message python-shell-completion-setup-code) directly in the python shell will complete without error, and I can call the function ';'.join(__PYTHON_EL_get_completions('''%s''')) from the variable (python-shell-completion-module-string-code), typed in to the python buffer with %s changed to something like "from sy" will return a string with completions. If I just run the above with the ipython version got from apt-get in Ubuntu, everything works as expected but switching to an environment and pip installing ipython doesn't. The TAB key is mapped to (python-shell-completion-complete-or-indent) but the code for completion seems to work, however the help "C-h f" buffer does not suggest a file of origin for this function so I couldn't go further and doubt it would have helped any way becouse my elisp knowledge only stretch so far. But I assume, based on this, that the issue is there somewhere. Thank you for your help. Regards Andreas ------------------------------------------------------------------------- In GNU Emacs 25.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of 2015-05-08 on lgw01-14 Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.2 LTS Configured using: `configure --build=x86_64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib --program-suffix=-snapshot --with-x=yes --with-x-toolkit=gtk3 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' CPPFLAGS=-D_FORTIFY_SOURCE=2 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB Important settings: value of $LC_MONETARY: sv_SE.UTF-8 value of $LC_NUMERIC: sv_SE.UTF-8 value of $LC_TIME: sv_SE.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus 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 Recent messages: Mark set Mark saved where search started Mark set [2 times] Mark deactivated Auto-saving...done previous-line: Beginning of buffer [9 times] Mark set [3 times] Mark deactivated Mark set [2 times] Mark deactivated Load-path shadows: /usr/share/emacs/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/25.0.50/lisp/textmodes/flyspell /usr/share/emacs/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/25.0.50/lisp/textmodes/ispell Features: (misearch multi-isearch shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail eieio-opt speedbar sb-image ezimage dframe find-func python debug pyvenv json easy-mmode .loaddefs compile comint ansi-color ring el-get el-get-autoloading el-get-list-packages el-get-dependencies el-get-build el-get-status pp el-get-methods el-get-fossil el-get-svn el-get-pacman el-get-github-zip el-get-github-tar el-get-http-zip el-get-http-tar el-get-hg el-get-go el-get-git-svn el-get-fink el-get-emacswiki el-get-http el-get-notify help-mode easymenu el-get-emacsmirror el-get-github el-get-git el-get-elpa package epg-config el-get-darcs el-get-cvs el-get-bzr el-get-brew el-get-builtin el-get-apt-get el-get-recipes derived el-get-byte-compile el-get-custom el-get-core autoload lisp-mnt cl dired mail-utils timezone parse-time gnutls network-stream nsm starttls url-http tls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums 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 cl-macs eieio eieio-core cl-generic byte-opt gv bytecomp byte-compile cl-extra seq cconv cl-loaddefs pcase cl-lib gnus-util mm-util help-fns mail-prsvr password-cache url-vars mailcap mule-util time-date tooltip eldoc 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 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 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 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 dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 150050 17509) (symbols 48 24372 19) (miscs 40 574 382) (strings 32 32667 4967) (string-bytes 1 933676) (vectors 16 16961) (vector-slots 8 469120 10313) (floats 8 173 500) (intervals 56 450 156) (buffers 976 23) (heap 1024 29754 7019)) From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 05 22:16:04 2015 Received: (at control) by debbugs.gnu.org; 6 Jul 2015 02:16:04 +0000 Received: from localhost ([127.0.0.1]:41237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBvwx-0005id-ES for submit@debbugs.gnu.org; Sun, 05 Jul 2015 22:16:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54533) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBvwv-0005i7-Hg for control@debbugs.gnu.org; Sun, 05 Jul 2015 22:16:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBvwk-0003lF-SZ for control@debbugs.gnu.org; Sun, 05 Jul 2015 22:15:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBvwk-0003lA-D3 for control@debbugs.gnu.org; Sun, 05 Jul 2015 22:15:50 -0400 Received: from [190.246.172.180] (port=50837 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZBvwj-0002gl-M2 for control@debbugs.gnu.org; Sun, 05 Jul 2015 22:15:50 -0400 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: control@debbugs.gnu.org Subject: 25.0.50; python.el and IPython Date: Sun, 05 Jul 2015 23:15:46 -0300 Message-ID: <87mvzarpyl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) merge 20708 20580 merge 19906 20742 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 06 01:04:57 2015 Received: (at 20580-close) by debbugs.gnu.org; 6 Jul 2015 05:04:57 +0000 Received: from localhost ([127.0.0.1]:41326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZByaO-0003bH-Rb for submit@debbugs.gnu.org; Mon, 06 Jul 2015 01:04:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37389) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZByaM-0003b2-Tl for 20580-close@debbugs.gnu.org; Mon, 06 Jul 2015 01:04:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZByaE-0005Sv-EH for 20580-close@debbugs.gnu.org; Mon, 06 Jul 2015 01:04:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZByaE-0005Sl-BS for 20580-close@debbugs.gnu.org; Mon, 06 Jul 2015 01:04:46 -0400 Received: from [190.246.172.180] (port=51041 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZByaD-0008Sp-Jl for 20580-close@debbugs.gnu.org; Mon, 06 Jul 2015 01:04:46 -0400 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 20580-close@debbugs.gnu.org Subject: 25.0.50; python-shell-completion-complete-or-indent hangs emacs with ipython v 3.1.0 Date: Mon, 06 Jul 2015 02:04:43 -0300 Message-ID: <87zj39anbo.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 20580-close X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Fixed at 02dc8da in the master branch. -- Thanks, Fabi=C3=A1n. From unknown Sat Sep 06 13:45:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 03 Aug 2015 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator