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#28729: 26.0.60; Incorrect Edebug spec for gv-define-setter Date: Sat, 07 Oct 2017 06:51:25 -0700 Message-ID: <87r2ufyski.fsf@runbox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507384454 20950 195.159.176.226 (7 Oct 2017 13:54:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 7 Oct 2017 13:54:14 +0000 (UTC) To: 28729@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 07 15:53:59 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 1e0pYE-0003bE-Qh for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Oct 2017 15:53:58 +0200 Original-Received: from localhost ([::1]:49842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0pYM-0002QW-8t for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Oct 2017 09:54:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0pXP-00022c-F1 for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2017 09:53:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0pXK-0001b3-J3 for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2017 09:53:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0pXK-0001aq-FH for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2017 09:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e0pXK-0000sG-5V for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2017 09:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Oct 2017 13:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28729 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.15073843233287 (code B ref -1); Sat, 07 Oct 2017 13:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Oct 2017 13:52:03 +0000 Original-Received: from localhost ([127.0.0.1]:53840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0pWN-0000qx-7X for submit@debbugs.gnu.org; Sat, 07 Oct 2017 09:52:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0pWL-0000qR-8h for submit@debbugs.gnu.org; Sat, 07 Oct 2017 09:52:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0pWF-0000om-4E for submit@debbugs.gnu.org; Sat, 07 Oct 2017 09:51:55 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41951) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e0pWF-0000oa-0b for submit@debbugs.gnu.org; Sat, 07 Oct 2017 09:51:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0pWD-0001yb-Vg for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2017 09:51:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0pW9-0000lI-5E for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2017 09:51:54 -0400 Original-Received: from aibo.runbox.com ([91.220.196.211]:41592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0pW8-0000k4-Pz for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2017 09:51:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=rO3RouRCTTsPiOzyShk0kz053ppmTdNa+p3beZLk5Qc=; b=FoJ36A607zTpnOpzg0amS9IMl X2hnHlkD1Joj9OtlVNqO0GzYeuNPZJmhwAFyscz2L0O0FD+5Lwuh3TAUaccnsI9RiqoOKDMUTdJOs mhXs6Bl8DjmzJ3cvoyKzlYG5MPjw6azDJ8vAammvw7DZJv30AbDIun/eG8z1hug3+j3k3aHlaCvAm c3pPH8osRi+ktwgKU97zVqoU/pjqonv11JK8gMkHAVWccqF/pUvKJKxkyl6aiMx8NUTT7HOar2QYM GQVqmjOGlTToBIQSUkN+SYd/W9SkTpFjcpHUNd5j10KNLHLijilAjPYmzCrSk02A6gf8O53SodIji v9tD8hNCA==; Original-Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1e0pW6-0000Uo-F9 for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2017 15:51:46 +0200 Original-Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=chinook) by mailfront10.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1e0pVw-0002ZH-DX for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2017 15:51:36 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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:138046 Archived-At: The Edebug spec for gv-define-setter is incorrect. It should use :name, so Edebug doesn't confuse it with the getter, and it should use def-body instead of body. To reproduce the problem, put this bit of code into *scratch*: (defun obo-ref (a idx) (aref a (1- idx))) (gv-define-setter obo-ref (val a idx) `(aset ,a (1- ,idx) ,val)) (defvar my-array [ 10 20 30 40 ]) (defun set-first-elem (n) (setf (obo-ref my-array 1) n)) Then: M-x edebug-all-defs RET M-x eval-buffer RET Result: Eager macro-expansion failure: (wrong-type-argument consp nil) M-: (obo-ref my-array 3) RET SPC SPC Result: Edebug starts stepping through the setter, then quits with "Source has changed - reevaluate definition of obo-ref".