From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?H=C3=A5kon_?= =?UTF-8?Q?H=C3=A6gland?= Newsgroups: gmane.emacs.bugs Subject: bug#27655: 25.2; Lisp nesting exceeds max-lisp-eval-depth in python-mode 6.2.3 Date: Tue, 11 Jul 2017 21:11:18 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11484638e191c905540f765e" X-Trace: blaine.gmane.org 1499800334 13517 195.159.176.226 (11 Jul 2017 19:12:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Jul 2017 19:12:14 +0000 (UTC) To: 27655@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 11 21:12: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 1dV0Zo-00033K-SB for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 21:12:05 +0200 Original-Received: from localhost ([::1]:48561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dV0Zu-0003PY-As for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 15:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dV0Zo-0003PS-3N for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 15:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dV0Zm-0001nw-SI for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 15:12:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59884) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dV0Zm-0001nr-PA for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 15:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dV0Zm-0001hn-KA for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 15:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?H=C3=A5kon_?= =?UTF-8?Q?H=C3=A6gland?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jul 2017 19:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27655 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.14998003156539 (code B ref -1); Tue, 11 Jul 2017 19:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jul 2017 19:11:55 +0000 Original-Received: from localhost ([127.0.0.1]:34328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dV0Ze-0001hO-3F for submit@debbugs.gnu.org; Tue, 11 Jul 2017 15:11:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dV0Zc-0001hC-L5 for submit@debbugs.gnu.org; Tue, 11 Jul 2017 15:11:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dV0ZW-0001hI-5j for submit@debbugs.gnu.org; Tue, 11 Jul 2017 15:11:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35252) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dV0ZW-0001hC-1w for submit@debbugs.gnu.org; Tue, 11 Jul 2017 15:11:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dV0ZU-0003HZ-HI for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 15:11:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dV0ZT-0001g8-5Z for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 15:11:44 -0400 Original-Received: from mail-vk0-x22c.google.com ([2607:f8b0:400c:c05::22c]:35217) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dV0ZT-0001VC-0X for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 15:11:43 -0400 Original-Received: by mail-vk0-x22c.google.com with SMTP id 191so838876vko.2 for ; Tue, 11 Jul 2017 12:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4Dm52Y44HsPMEz1YMGprZLNwpnpPc/c5vkF1rSYODt8=; b=V1fW3dC6jL7WcyYKnqEgDFl1d55+6lH/IOWWdygYvIMEzlPzYqnYB1qzDJuWQVRMLG PW3Hf6GTtFjdQ8nS1JwGVDffEQp4Ucw6hYG2+lDfvWMhKkSIPXQ2QxDnNh6U7ZzbTOss OYzKfs41O1zfI8LkGrH4fnLoZPRa6mpqy/HjOOR9J3mRyT2d9eFxSh4GHHnmT/q+eexM LTbI+mJ1q0FknQIr0rNpXPhpCOBBpLuNbj2A0FsH5X1gx7tVVNKLGxLj/jeJ/eIgHbLu 90rN9E6YEXuJzkSXShOpkDjUjArMuV9f7zZmdkbb6bFw7Pd0J2YlMnxsuwfoHpX9RGkh 0vYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4Dm52Y44HsPMEz1YMGprZLNwpnpPc/c5vkF1rSYODt8=; b=uCQ72Vv2LksMRxJEA1UJdtGN1loaIvk8S9GUPPJCBgwlmQML7nGCxZ9cPrdcazYU5F pRvoz4dpdOsPTPoLTa3FIaCM7NItH+c4ESRXcilCBRWjMvbSIbRFwFHXFEQY0yGoykl/ RT/4G801bniOSsif6I7ut3Ej9NYuTx0nO9T8LsxWEwv7Jy+bmSPh/dWvCG4MoheFMuYJ nQBLeaReGAr7oDWVHth1BYZJRdS79LiqpfEuqF48/RCw7czvpVnBwk/2WewVwyqPj/vU nSQxHvPn2F7KujHNIhsr7UO6YQlraN94VNSJ2LJLfMokXLoF8uUPNS0cgFiKrapVny8d iQ2g== X-Gm-Message-State: AIVw111nAYEt/SXXa134XPD7bkBuUwE/GJDI2DWDU2O/S0zvGZ7iAxzb D38uv3Guahp9hmxWXHMIpMyMAo6/Beoi X-Received: by 10.31.200.196 with SMTP id y187mr80037vkf.95.1499800279288; Tue, 11 Jul 2017 12:11:19 -0700 (PDT) Original-Received: by 10.176.27.135 with HTTP; Tue, 11 Jul 2017 12:11:18 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:134438 Archived-At: --001a11484638e191c905540f765e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello. I have this simple Python test program: =EF=BF=BC #! /usr/bin/env python3 import numpy as np x =3D np.array([0, 1, 2, 3]) y =3D np.array([0, 1, 4, 9]) def gen_segments(x, y): for i in range(0, len(x)-1): yield (x[i], x[i+1]), (y[i], y[i+1]) lines =3D [list(zip(s, t)) for s, t in gen_segments(x, y)] when I position the cursor at the end of the line starting with yield and press ENTER, Emacs gives me the following error: "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99" I am using Emacs version 25.2 on Ubuntu 17.04. Here is a minimal setup to reproduce the problem: =EF=BF=BC $ emacs -Q -l init.el t.py where "t.py" is the above python program, and "init.el" is: =EF=BF=BC (setq debug-on-error t) (setq package-load-list '((python-mode t))) (package-initialize) (setq package-enable-at-startup nil) The Python mode that package-initialize above loads was installed with the Emacs package manager as python-mode-20170307.457 in my elpa directory. If I comment out the line (package-initialize) above, it works fine (then Emacs uses the Python mode in /opt/emacs-25.2/share/emacs/25.2/lisp/progmodes/python.el.gz instead). Best regards, H=C3=A5kon H=C3=A6gland ----------- Configured using: 'configure CFLAGS=3D-no-pie --with-xft --prefix=3D/opt/emacs-25.2' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LC_MONETARY: nb_NO.UTF-8 value of $LC_NUMERIC: nb_NO.UTF-8 value of $LC_TIME: nb_NO.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix --001a11484638e191c905540f765e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello. I have this simple Python test program:

=EF=BF=BC
#! /usr/bin/env python3
import numpy as np

x =3D np.array([0, 1, 2, 3])<= /div>
y =3D np.array([0, 1, 4, 9])

def gen_seg= ments(x, y):
=C2=A0 =C2=A0 for i in range(0, len(x)-1):
=C2=A0 =C2=A0 =C2=A0 =C2=A0 yield (x[i], x[i+1]), (y[i], y[i+1])

lines =3D [list(zip(s, t)) for s, t in gen_segments(x, y)]= =C2=A0



when I positi= on the cursor at the end of the line starting with yield and press ENTER, E= macs gives me the following error:

"Lisp nest= ing exceeds =E2=80=98max-lisp-eval-depth=E2=80=99"
I am usin= g Emacs version 25.2 on Ubuntu 17.04.

Here is a mi= nimal setup to reproduce the problem:
=EF=BF=BC
$ e= macs -Q -l init.el t.py

where "t.py" is = the above python program, and "init.el" is:

<= div>=EF=BF=BC
(setq debug-on-error t)
(setq package-loa= d-list '((python-mode t)))
(package-initialize)
(se= tq package-enable-at-startup nil)


T= he Python mode that package-initialize above loads was installed with the E= macs package manager as python-mode-20170307.457 in my elpa directory. If I= comment out the line (package-initialize) above, it works fine (then Emacs= uses the Python mode in /opt/emacs-25.2/share/emacs/25.2/lisp/progmodes/py= thon.el.gz instead).

Best regards,
H=C3= =A5kon H=C3=A6gland

-----------
Con= figured using:
=C2=A0'configure CFLAGS=3D-no-pie --with-xft -= -prefix=3D/opt/emacs-25.2'

Configured features= :
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSE= TTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIB= OTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
=C2=A0 value of $LC_MONETARY: nb_NO.UTF-8
=C2=A0 value of $LC_NUMERIC: nb_NO.UTF-8
=C2=A0 value of= $LC_TIME: nb_NO.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-s= ystem: utf-8-unix

--001a11484638e191c905540f765e--