all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Håkon Hægland" <hakon.hagland@gmail.com>
To: 27655@debbugs.gnu.org
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	[thread overview]
Message-ID: <CACxbc=BKjWt1CVoaip64npreiuZFa5oMQ6KjBnk1hEwwW5hKfA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1736 bytes --]

Hello. I have this simple Python test program:


#! /usr/bin/env python3
import numpy as np

x = np.array([0, 1, 2, 3])
y = 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 = [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 ‘max-lisp-eval-depth’"
I am using Emacs version 25.2 on Ubuntu 17.04.

Here is a minimal setup to reproduce the problem:

$ emacs -Q -l init.el t.py

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


(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åkon Hægland

-----------
Configured using:
 'configure CFLAGS=-no-pie --with-xft --prefix=/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=ibus
  locale-coding-system: utf-8-unix

[-- Attachment #2: Type: text/html, Size: 2417 bytes --]

             reply	other threads:[~2017-07-11 19:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-11 19:11 Håkon Hægland [this message]
2017-07-14 18:07 ` bug#27655: 25.2; Lisp nesting exceeds max-lisp-eval-depth in python-mode 6.2.3 Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACxbc=BKjWt1CVoaip64npreiuZFa5oMQ6KjBnk1hEwwW5hKfA@mail.gmail.com' \
    --to=hakon.hagland@gmail.com \
    --cc=27655@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.