From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Georges Dupret Newsgroups: gmane.emacs.bugs Subject: bug#25363: 24.5; ipython integration Date: Wed, 4 Jan 2017 17:20:03 -0800 Message-ID: <98108012-0478-5b1a-2078-69b4001b10d7@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1483579345 10181 195.159.176.226 (5 Jan 2017 01:22:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Jan 2017 01:22:25 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 To: 25363@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 05 02:22:17 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 1cOwks-0000l7-5q for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jan 2017 02:22:10 +0100 Original-Received: from localhost ([::1]:43146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOwkv-00070v-QK for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Jan 2017 20:22:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOwkp-0006zU-Mm for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 20:22:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOwkk-0002BX-Oy for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 20:22:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54436) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOwkk-0002BF-MI for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 20:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cOwkk-0007rR-H6 for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 20:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Georges Dupret Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2017 01:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25363 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.148357931730205 (code B ref -1); Thu, 05 Jan 2017 01:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Jan 2017 01:21:57 +0000 Original-Received: from localhost ([127.0.0.1]:41602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOwkf-0007r6-7e for submit@debbugs.gnu.org; Wed, 04 Jan 2017 20:21:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOwj7-0007oK-UE for submit@debbugs.gnu.org; Wed, 04 Jan 2017 20:20:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOwj1-0001eX-F0 for submit@debbugs.gnu.org; Wed, 04 Jan 2017 20:20:16 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOwj1-0001eT-Bo for submit@debbugs.gnu.org; Wed, 04 Jan 2017 20:20:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOwiz-0006Yd-Ax for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 20:20:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOwiu-0001Z2-Cv for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 20:20:13 -0500 Original-Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]:33914) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOwiu-0001T8-3a for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 20:20:08 -0500 Original-Received: by mail-pf0-x22c.google.com with SMTP id 127so4828330pfg.1 for ; Wed, 04 Jan 2017 17:20:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=Z2uVCSMGiNoz+h4DT20Gr3zsIezuCO8HDMDTCd4xid8=; b=S7rU6WifeOe5BX6m6g7AJRqBA3L+L301jj2dH8iuFyxsYuOA4E92DKUinYQ7t2Hhq9 h4RItQtF/+W7t3jBVHS+jesh9IHV60m58qZGJQouioDpSeNGNlQPOvNX3XMdfStEGPG/ uNFD3Du2nG1jWVaNMjuDQagxycDEryWXOgymkgTF4tGXlzc2xbfvOZl5ZNXe29JbSTZp MSRWAKNW4iuiqfnho1Uv6BgOtPGR8RPL1pGAo0WzbsPNTy0Jq9ycCU0+d5DHaKbInlmd 5DuJQkN7xL2uPVdjJk7BOoUlVw768ieVf5mxewizY/Z6y4ZudD0OcTU4ePFZfYdfqPiJ icVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=Z2uVCSMGiNoz+h4DT20Gr3zsIezuCO8HDMDTCd4xid8=; b=gM4PDHhw7Ebk/ytlApJailRdQlWfjaG36NavjKRHYZWsExp+wVM13DyScWfd6zwmIe WGuTYnWi3LwtCnyJ0ES+lSyi1JHXcZu9oSqIAC/kMGklQtlJLmG/pcXYlcwgbpQTDEiZ t64PHLq6v61uCMmcTrfh1scmMjWTXUsGBOXKXsVNI8T+1TXRCSy3sI0ZBDniwB3H5aLV bxI4/Tb7fcjG5wBNVPILzQkdmk7kFivEy7WBxvlFeb+V9iXWvV0D5/1ur/q1ruZ6yzGy 6tR4cD9lFzgsFJRoyhgxrNwY3qOSzvBS1WZL0SbLj0wG8Sf2tr0C8OtaP6yrPQzQXUZR LRMQ== X-Gm-Message-State: AIkVDXIRGVzZyYudh6snEGMNO4joxcSmiRNGjBfJhXubC3BWuTySUH/UlOAtqPdo9mFwcw== X-Received: by 10.98.14.82 with SMTP id w79mr63883297pfi.153.1483579205306; Wed, 04 Jan 2017 17:20:05 -0800 (PST) Original-Received: from [10.8.17.234] ([70.36.190.2]) by smtp.gmail.com with ESMTPSA id x2sm149246541pfx.65.2017.01.04.17.20.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jan 2017 17:20:04 -0800 (PST) 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-Mailman-Approved-At: Wed, 04 Jan 2017 20:21:56 -0500 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:127765 Archived-At: The ipython interpretor called within emacs does not handle identation properly. The following happens when hitting return: In [5]: for x in range(3): File "", line 1 for x in range(3): ^ SyntaxError: unexpected EOF while parsing Note that I have to set this in .emacs otherwise I get bad characters: (setq python-shell-interpreter-args " --simple-prompt --pprint") Best, ged In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-17 on lgw01-04, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.1 LTS Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Inferior Python Minor modes in effect: shell-dirtrack-mode: t pyvenv-mode: t yas-global-mode: t yas-minor-mode: t show-paren-mode: t global-linum-mode: t linum-mode: t TeX-PDF-mode: t compilation-shell-minor-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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 messages: Beginning of buffer [4 times] Loading /home/ged/.emacs... [yas] Prepared just-in-time loading of snippets successfully. Loading /home/ged/.emacs...done Missing module docstring [missing-docstring] Can't guess python-indent-offset, using defaults: 4 Sent: #!/usr/bin/env python... Removed if __main__ == '__main__' construct, use a prefix argument to evaluate. Missing module docstring [missing-docstring] Making completion list... Load-path shadows: /usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.5/lisp/textmodes/rst /usr/share/emacs24/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/24.5/lisp/language/thai-word Features: (shadow sort mail-extr emacsbug sendmail pylint company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-cmake company-xcode company-clang company-eclim company-template company-css company-nxml company-bbdb make-mode ffap thingatpt tramp-sh tramp-cache tramp tramp-compat tramp-loaddefs trampver shell ibuf-ext ibuffer conf-mode vc-git vc-dispatcher vc-svn org-element org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view jka-compr image-mode dired org-bibtex bibtex org-bbdb org-w3m org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs ein py-autopep8 flycheck rx subr-x seq seq-24 dash highlight-indentation flymake eldoc company pcase elpy pyvenv elpy-refactor python json grep files-x etags cus-edit cus-start cus-load wid-edit yasnippet help-mode paren saveplace ido linum leuven-theme ert find-func ewoc debug timezone texinfo toolbar-x prv-emacs reporter desktop frameset context plain-tex tex-buf latex derived edmacro kmacro tex-ispell tex-style tex easy-mmode dbus xml crm advice cl-macs warnings cl gv compile comint ansi-color ring info tex-site autoload lisp-mnt tar-mode misearch multi-isearch mule-util mm-archive message format-spec rfc822 mml easymenu mml-sec mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils network-stream 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 mailcap url-handlers url-parse auth-source eieio byte-opt bytecomp byte-compile cl-extra cl-loaddefs cl-lib cconv eieio-core gnus-util mm-util help-fns mail-prsvr password-cache url-vars epg finder-inf package epg-config server time-date 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 gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 446245 90722) (symbols 48 48335 1131) (miscs 40 1350 577) (strings 32 120840 31866) (string-bytes 1 3373699) (vectors 16 42217) (vector-slots 8 883306 34522) (floats 8 1134 273) (intervals 56 2275 1303) (buffers 960 26) (heap 1024 74635 5094))