From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ju.schmidt@gmx.de Newsgroups: gmane.emacs.bugs Subject: bug#23651: 25.1.50; edebug-read-sexp: infinite recursion when reading backquote or comma Date: Sun, 29 May 2016 20:09:41 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1464563053 15768 80.91.229.3 (29 May 2016 23:04:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 May 2016 23:04:13 +0000 (UTC) To: 23651@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 30 01:04:00 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b79kV-0007Lf-NN for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 May 2016 01:03:59 +0200 Original-Received: from localhost ([::1]:57180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b79kU-0000tG-Vj for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 May 2016 19:03:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b79gn-0005we-C9 for bug-gnu-emacs@gnu.org; Sun, 29 May 2016 19:00:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b79gh-0004VS-CT for bug-gnu-emacs@gnu.org; Sun, 29 May 2016 19:00:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b79gh-0004V2-8w for bug-gnu-emacs@gnu.org; Sun, 29 May 2016 19:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b79gh-0006lf-0I for bug-gnu-emacs@gnu.org; Sun, 29 May 2016 19:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ju.schmidt@gmx.de Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 May 2016 23:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23651 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.146456275125919 (code B ref -1); Sun, 29 May 2016 23:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 May 2016 22:59:11 +0000 Original-Received: from localhost ([127.0.0.1]:46701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b79fr-0006jx-Gs for submit@debbugs.gnu.org; Sun, 29 May 2016 18:59:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b759y-0008Fu-2y for submit@debbugs.gnu.org; Sun, 29 May 2016 14:09:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b759r-0001pr-FN for submit@debbugs.gnu.org; Sun, 29 May 2016 14:09:52 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b759r-0001pn-CZ for submit@debbugs.gnu.org; Sun, 29 May 2016 14:09:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b759p-00039v-2n for bug-gnu-emacs@gnu.org; Sun, 29 May 2016 14:09:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b759k-0001pO-QP for bug-gnu-emacs@gnu.org; Sun, 29 May 2016 14:09:47 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:57350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b759k-0001pB-GC for bug-gnu-emacs@gnu.org; Sun, 29 May 2016 14:09:44 -0400 Original-Received: from [91.60.26.118] by msvc-mesg-gmx014.server.lan (via HTTP); Sun, 29 May 2016 20:09:41 +0200 Importance: normal X-Priority: 3 X-Provags-ID: V03:K0:P/pOYXiVzZ+ewQkeXWXCvnL6pnnQr2Xc9dRBUWwy2s0 LYNGqCE7/sSnpWqKmnW/Cb5SBjZT6ce+/fViozblvKNO/o5/z7 2/NqUk1wvxvo7EKcNLZsJS2AfB1SnnrmvTMAdwHacHqCpqJITT VH6+oGjXUWYZIXxyGnQaoE1l+Ryt4MLrsCLusD5D8E42TcXDZ3 O+/VVoqfiHk31oDH+2MrHB//Vn9m1K4rFV60D/Vabt4qyYlRgF Jpmq0NFtD4Gt6CRY5kgJDd6mqh//L9eKq7Hb5j1dPDvH0+J5sg ln4fCY= X-UI-Out-Filterresults: notjunk:1;V01:K0:8P43l0X6K0I=:iuzMCR9iGL5jZe/rRNPoRe ShjnEttnvkAcU1oOX9g+UL2gUqByq4P3SbWnCYzwzILUm/+BDaPp7r/NjuMcWANlJCs1xv+L7 w/mFu2dMcbFKLjJTE79vkyUkUNbiOCJHCX74NB34K3+mfScjdzd/r3WIN+mZK3jBXpchEmpbA bebx9Le7AbO2D9f/3dLKlTssYcY5MfFKgd0hkmEgQGO/nZBPm+lsgCvPFqE0IDvRPr9F3Bw6N e2Jsw9AwJVY8RpWETNrIY1LcG1hpIuKgrpum61OjBEVqMOK1Wfqm3D8XGsdEXhxX9yn6Cj/Tk QhdiQQUPqACOZ71mE3im5PhxWluhNhjcJU5h+SgwUN4D7zrNVH2HcVA3ambHlIx4uoICQBJ4A 6bkO6TfCXgJsJhgDTwZsuBOhjmXrhXUUTIi59QXFTxwQq4L/pCwzvWS2mWDLwsTGNFjZ5p2PB PW2oxt0s99tOj2eJGY6B1C2AAIaynKsTIrvSPwMVipgG/aPnbhHI 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: Sun, 29 May 2016 18:59:09 -0400 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:118845 Archived-At: Start emacs with -Q, do M-: and type "(require 'edebug)". Then write this in buffer "*scratch*": `1 Then do M-: and type "(edebug-eval-defun)". It will give this error: "edebug-read-sexp: Lisp nesting exceeds `max-lisp-eval-depth'" (The documentation for edebug-eval-defun says that this should display "1" instead of giving an error). One gets the same error when the buffer contains this instead: ,1 This is caused by an endless recursion in edebug-read-sexp which apparently can be fixed like this: diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index c283c16..4254862 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el @@ -722,9 +722,9 @@ edebug-read-sexp ((eq class 'string) (read (current-buffer))) ((eq class 'quote) (forward-char 1) (list 'quote (edebug-read-sexp))) - ((eq class 'backquote) + ((eq class 'backquote) (forward-char 1) (list '\` (edebug-read-sexp))) - ((eq class 'comma) + ((eq class 'comma) (forward-char 1) (list '\, (edebug-read-sexp))) (t ; anything else, just read it. (read (current-buffer)))))) Configured using: 'configure --prefix=/home/jhs/local --with-xpm=no --with-gif=no --with-tiff=no PKG_CONFIG_PATH=/home/jhs/local/lib/pkgconfig' Configured features: JPEG PNG SOUND DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort map mail-extr emacsbug message puny seq byte-opt gv bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm 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 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 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 charscript 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 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 98461 8207) (symbols 48 20696 0) (miscs 40 33 93) (strings 32 17428 3931) (string-bytes 1 532970) (vectors 16 11481) (vector-slots 8 395373 4073) (floats 8 185 220) (intervals 56 207 0) (buffers 976 11) (heap 1024 33354 1491))