From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gemini Lasswell Newsgroups: gmane.emacs.bugs Subject: bug#16184: 24.3.50; edebug and eval-when-compiler don't work together Date: Fri, 30 Dec 2016 15:27:37 -0800 Message-ID: References: <20161118224713.GA3796@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1483140857 1316 195.159.176.226 (30 Dec 2016 23:34:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2016 23:34:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) Cc: David Bremner , Katsumi Yamaoka , 16184@debbugs.gnu.org, Anders Lindgren , Benaiah Mischenko To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 31 00:34:12 2016 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 1cN6gX-00070g-Sb for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Dec 2016 00:34:06 +0100 Original-Received: from localhost ([::1]:41855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cN6gZ-0003KV-Au for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Dec 2016 18:34:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cN6fZ-0002lw-G8 for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2016 18:33:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cN6fW-0001Wi-CM for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2016 18:33:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45313) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cN6fW-0001WW-8l for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2016 18:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cN6fV-0007Pu-TC for bug-gnu-emacs@gnu.org; Fri, 30 Dec 2016 18:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Dec 2016 23:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16184 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16184-submit@debbugs.gnu.org id=B16184.148314072528446 (code B ref 16184); Fri, 30 Dec 2016 23:33:01 +0000 Original-Received: (at 16184) by debbugs.gnu.org; 30 Dec 2016 23:32:05 +0000 Original-Received: from localhost ([127.0.0.1]:60712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cN6eb-0007Ok-B6 for submit@debbugs.gnu.org; Fri, 30 Dec 2016 18:32:05 -0500 Original-Received: from aibo.runbox.com ([91.220.196.211]:54098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cN6eZ-0007OY-PA for 16184@debbugs.gnu.org; Fri, 30 Dec 2016 18:32:04 -0500 Original-Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cN6eS-0007JZ-Vf; Sat, 31 Dec 2016 00:31:57 +0100 Original-Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=rainbow.local) by mailfront10.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1cN6eG-00020l-S3; Sat, 31 Dec 2016 00:31:45 +0100 In-Reply-To: <20161118224713.GA3796@acm.fritz.box> (Alan Mackenzie's message of "Fri, 18 Nov 2016 22:47:13 +0000") 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:127608 Archived-At: Alan Mackenzie writes: > > . During this instrumentation, the inside of the cc-eval-when-compile > form gets run, in particular, the (edebug-before 2). At this stage, > since edebug-enter hasn't been run at all, edebug-offset-indices is still > nil. The (edebug-before 2) thus attempts (setcar nil 2), which throws > the error. > I haven't able to reproduce the bug with cc-eval-when-compile, just eval-and-compile. But the thing that is supposed to make Edebug wrap a form in edebug-enter is the use of def-form or def-body in the Edebug spec. It works for eval-when-compile which has the Edebug spec (&rest def-form). The body of eval-and-compile doesn't get wrapped because its Edebug spec is t, so the bug happens there. cc-eval-when-compile has the same Edebug spec as eval-when-compile, so its body should get wrapped by edebug-enter. If that's not happening in your Emacs, it's a bug in Edebug which is different from the eval-and-compile Edebug spec bug.