From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ola Nilsson Newsgroups: gmane.emacs.bugs Subject: bug#30277: 26.0.91; Infinite recursion in python-nav-beginning-of-statement Date: Sun, 28 Jan 2018 23:42:21 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1517179294 27800 195.159.176.226 (28 Jan 2018 22:41:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 Jan 2018 22:41:34 +0000 (UTC) To: 30277@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 28 23:41:29 2018 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 1efvdK-0005Xo-Bm for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jan 2018 23:41:06 +0100 Original-Received: from localhost ([::1]:42882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efvfK-0003sJ-O5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jan 2018 17:43:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efvfE-0003s2-QZ for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2018 17:43:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efvfD-0008SU-DV for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2018 17:43:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1efvfD-0008SI-9h for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2018 17:43:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1efvfC-0003gu-6Y for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2018 17:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ola Nilsson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jan 2018 22:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30277 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.151717935614152 (code B ref -1); Sun, 28 Jan 2018 22:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jan 2018 22:42:36 +0000 Original-Received: from localhost ([127.0.0.1]:46869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efvel-0003gC-Fl for submit@debbugs.gnu.org; Sun, 28 Jan 2018 17:42:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efvej-0003g0-Pj for submit@debbugs.gnu.org; Sun, 28 Jan 2018 17:42:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efvec-000859-Sv for submit@debbugs.gnu.org; Sun, 28 Jan 2018 17:42:28 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35314) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1efvec-000853-PR for submit@debbugs.gnu.org; Sun, 28 Jan 2018 17:42:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efvea-0003kW-Vk for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2018 17:42:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efveZ-00081m-JO for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2018 17:42:25 -0500 Original-Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:32988) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1efveZ-00080b-At for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2018 17:42:23 -0500 Original-Received: by mail-pf0-x234.google.com with SMTP id t5so3219265pfi.0 for ; Sun, 28 Jan 2018 14:42:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=vRrdgvepfkeAiyj8Pkskmjy3kD/f9wXvqiYv0Y0906U=; b=SF3h87WqNfbRXoD/mhcvTZbzttZOtmdT71Tn8/2NXoYbpDod6jsmhgS61JLHZvFsMm nboIcdvAdAAtYKyNoIXtW0DdLopPjfBkRL/UB+ukkG/r+C9x3NNvxoWb+o16ojXy02ly P91qSbbwltYC4QXGRPi2tDutpNA53FLUOWVF7xJ3MSpv37+oyBjlakD6NGRguxSrkpqO xAUiORRwGtd1LdBcdnLj3qeu8+PCnHmZw/mggD6dvUHObIbkfL6rG5NiK4VHGu0mgQvQ M3iNqA/9f38haiY77obNObpogHXrEC1EpvEAgj9BUYwS2PlRUc2IW8B+VrMgjVFhe5+5 wwEA== 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 :content-transfer-encoding; bh=vRrdgvepfkeAiyj8Pkskmjy3kD/f9wXvqiYv0Y0906U=; b=imel5yednoQM0kvIlXph5mJquWGDG6D64Ybfxbv/fwK408DQrGRuCHQ4zRm9yZo0EQ 3lrQtI+170uiG6N28Ow/Av8/y7b/MigtBy9g74EdN3pFPnMbsakysn72q+cw7ceX8VLk yh113TXSDrikckcELmCSR4lTa/efanZCNxS6zMyxYjDWzTnoLCBs32CvVDw89YJqnlDe zx68mPNAwLY6d6Z4DgaCYQ4xkk+Rl4T9aFbYO8IVUBkkqWDCbX+/AeMZgXQqhyO/pMzo 0R7sn4OJ+BfRlD6NqLJLDylcQceffLZG6BmECZxpzp5XMYr9YCNCnTUiIODML2xO9/nb KjXQ== X-Gm-Message-State: AKwxytdB6ihJPuEApAHghkZT+AAX/FcMOpMT70ctZ5+vWSHm+Ym/tWwF ey3KDRp+8BLmOvcURaHVAxGPty3/uDLzLupIzXAWZpRP X-Google-Smtp-Source: AH8x226NQsOiNoV7jELHeN6UUg5YncSrwCHyFHAaewqLTqbIProj9wnSeyVGXWl3+q5+IORHljO1omf8gSbud9mN0qg= X-Received: by 2002:a17:902:46:: with SMTP id 64-v6mr20258290pla.341.1517179341530; Sun, 28 Jan 2018 14:42:21 -0800 (PST) Original-Received: by 10.100.163.40 with HTTP; Sun, 28 Jan 2018 14:42:21 -0800 (PST) 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:142627 Archived-At: The infinite recursion is triggered when the first line of a python-mode buffer starts with space and ends with a backslash. With emacs -Q * create a new buffer * M-x python-mode * Insert SPACE \ ENTER =3D> Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99 The infinite recursion is also triggered if the first line of a narrowed region starts with space and ends on a backslash. I ran into this problem using mmm-mode with python submode regions. The file format (bitbake from the Yocto Project) uses this style of python function: python foo() { # Python code here ... } mmm-mode narrows to the function content for fontification and if the first line is properly indented Python code that ends with a backslash, I see a list nesting error. --=20 Ola In GNU Emacs 26.0.91 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2018-01-23 built on blue Repository revision: 1fc98ed073a2d26ad941748ecb13aa6f47dd7b01 Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9.3 (stretch) Recent messages: Desktop lazily opening font-lock.el.gz (2 remaining)... uncompressing font-lock.el.gz...done Desktop lazily opening font-lock.el.gz (2 remaining)...done Desktop lazily opening mmm-mason.el (1 remaining)...done Lazy desktop load complete Sun Jan 28 19:48:27 2018: saving desktop file Desktop saved in ~/.emacs.d/ Reverting buffer =E2=80=98useradd.bbclass=E2=80=99. GNU Emacs 26.0.91 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2018-01-23 Making completion list... Configured using: 'configure --prefix=3D/opt/emacs/26.1 --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: jabber-activity-mode: t desktop-save-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t diff-auto-refine-mode: t which-function-mode: t show-paren-mode: t display-time-mode: t global-auto-revert-mode: t override-global-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t Load-path shadows: /home/olani/.emacs.d/custom hides /opt/emacs/26.1/share/emacs/26.0.91/lisp/custom Features: (shadow sort mail-extr emacsbug sendmail kconfig-mode ffap misearch multi-isearch url-http-ntlm ntlm calc calc-loaddefs calc-macs hmac-md5 hex-util md4 network-stream url-http url-gw nsm url-cache url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util conf-bitbake-mode-test bitbake-verify bitbake-test testcover edebug bitbake-functions-test bitbake-font-lock-test ert debug faceup bb-test-common bitbake-modes bitbake generic bitbake-ff bitbake-build-dir wks-mode scc find-file conf-bitbake-mode bitbake-mmm bitbake-insert bitbake-functions bitbake-electric bitbake-compat dired-aux coan-dired sh-script smie executable web-mode disp-table yaml-mode coan-gmake make-mode coan-jabber jabber jabber-notifications notifications jabber-libnotify dbus jabber-awesome jabber-osd jabber-wmii jabber-xmessage jabber-festival jabber-sawfish jabber-ratpoison jabber-tmux jabber-screen jabber-socks5 jabber-ft-server jabber-si-server jabber-ft-client jabber-ft-common jabber-si-client jabber-si-common jabber-feature-neg jabber-truncate jabber-time jabber-autoaway jabber-vcard-avatars jabber-chatstates jabber-events jabber-vcard jabber-avatar mailcap jabber-activity jabber-watch jabber-modeline jabber-ahc-presence jabber-ahc jabber-version jabber-ourversion jabber-muc-nick-completion hippie-exp jabber-browse jabber-search jabber-register jabber-roster jabber-presence jabber-muc jabber-bookmarks jabber-private jabber-muc-nick-coloring hexrgb jabber-widget jabber-disco jabber-chat jabber-history jabber-chatbuffer jabber-alert jabber-iq jabber-core jabber-console sgml-mode dom ewoc jabber-keymap jabber-sasl sasl sasl-anonymous sasl-login sasl-plain fsm jabber-logon jabber-conn srv dns starttls tls gnutls jabber-xml xml jabber-menu jabber-util mmm-mode mmm-univ mmm-class mmm-region mmm-utils python tramp-sh pcase coan eieio-opt speedbar sb-image ezimage dframe ibuf-ext ibuffer ibuffer-loaddefs loadhist help-fns warnings checkdoc thingatpt coan-elisp skeleton autoload radix-tree lisp-mnt elec-pair coan-desktop init dired-rainbow dired-hacks-utils autoinsert mmm-sample mmm-auto mmm-vars mmm-compat t32-auto midnight coan-list desktop frameset compile flycheck-flawfinder flycheck-cstyle flycheck json map find-func rx subr-x python-info git-commit with-editor server magit-git magit-section magit-utils crm magit-popup async-bytecomp async log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log dash cl-extra help-mode gitignore-mode conf-mode vc-git diff-mode macrostep pp edmacro kmacro coan-26.0.91-autoloads which-func imenu coan-system finder-inf url-auth info paren time avoid autorevert filenotify jka-compr use-package bind-key easy-mmode package easymenu epg-config url-handlers url-parse url-vars seq cl tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ansi-color ring parse-time format-spec advice auth-source cl-seq eieio byte-opt bytecomp byte-compile cconv eieio-core cl-macs gv eieio-loaddefs password-cache gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit cl-loaddefs cl-lib cus-start cus-load time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1454695 160534) (symbols 48 46290 1) (miscs 40 12851 9766) (strings 32 150094 21708) (string-bytes 1 4851415) (vectors 16 77899) (vector-slots 8 2033924 157722) (floats 8 195 694) (intervals 56 145635 72) (buffers 992 1264))