From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#29039: `iter-do' doesn't instrument its body Date: Sat, 28 Oct 2017 13:07:00 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="001a1145904e8e6ea8055c996731" X-Trace: blaine.gmane.org 1509188892 18036 195.159.176.226 (28 Oct 2017 11:08:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Oct 2017 11:08:12 +0000 (UTC) To: 29039@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 28 13:08:09 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 1e8OyC-0003mp-KV for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Oct 2017 13:08:04 +0200 Original-Received: from localhost ([::1]:60477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8OyK-00036P-3G for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Oct 2017 07:08:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8OyD-00035X-Km for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 07:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8OyC-0002ns-JX for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 07:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57647) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e8OyC-0002ng-FG for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 07:08:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e8OyC-00058S-0n for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 07:08:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Oct 2017 11:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29039 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.150918883419676 (code B ref -1); Sat, 28 Oct 2017 11:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Oct 2017 11:07:14 +0000 Original-Received: from localhost ([127.0.0.1]:38095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8OxN-00057I-Ul for submit@debbugs.gnu.org; Sat, 28 Oct 2017 07:07:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8OxK-000571-DN for submit@debbugs.gnu.org; Sat, 28 Oct 2017 07:07:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8OxE-0001zK-CE for submit@debbugs.gnu.org; Sat, 28 Oct 2017 07:07:05 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49205) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e8OxE-0001zC-8L for submit@debbugs.gnu.org; Sat, 28 Oct 2017 07:07:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8OxD-0002cl-84 for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 07:07:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8OxC-0001y0-DR for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 07:07:03 -0400 Original-Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:48774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e8OxC-0001xN-62 for bug-gnu-emacs@gnu.org; Sat, 28 Oct 2017 07:07:02 -0400 Original-Received: by mail-pg0-x241.google.com with SMTP id v78so7272078pgb.5 for ; Sat, 28 Oct 2017 04:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WXqoucm8GlS+iC2ZTkz7bGHhHysWmGsQ1Qw0KjiX1e0=; b=sHrBmXQxqAC5e7s+xRU8al+Kxo5/2GJkE9YneiJ0lCzDiuSloWPbtmJlmfymcKxtup swXXKLnsYEtQrRq4ENOmjt+1J1AOc8GAkUwmhaNR9PrKVGMPZPn+mER/nFWzQCRBk/0U dkTb6JCXHhNrM8p/LKjjUf3bvfaZUz4ZjiogscypH8c28Z1xMuPT28M+iatDtmzJhicc QKohi0OgDwVADpcU5GDGeRCDNk8qSyxX2oD6bCudspjEEGVrRgPvpYNEDxyUB1AwGwms Kykj68En1Yb5EHWUl1pEi0nv+hdeDd66DwI5oSzzPRd1MFaoxiI/ZlPzS6GTQ8HdDK6R R7XQ== 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; bh=WXqoucm8GlS+iC2ZTkz7bGHhHysWmGsQ1Qw0KjiX1e0=; b=dsaqeTnb8bvea7dxIhAXtrb+tiZEpvxpOsd6qPQtaLeQomY2sEQ+hzHrBrwhFU82HB QTOBI5cS+RY6sj8NzKG3rE8f8ntbTk+v1ESpIP+aGclbpbk3O+La1yajzJUcxesCKbPJ o2gogn7Rfx29ZIsiC6pzF3SwljXv/jtpvNpcJEFyPlCC9Za7B17RYQFKWz2qcwGvu9vl kXbukCkZExJ/NX+rYhPhnzeNYLnM7vED7ZR+jGZd3fFLIJiirqOwWJiQXp5hA+OFX/PS ueqL+NRl18+rDWFW/KvvA6yRNgHLsTrPAczNoiroRSdHR8ES2e0qpyLOSfTweOaViOFg ZqUA== X-Gm-Message-State: AMCzsaW2M4lrfJozIN2a/pJ+bwXj0Wgm756TNH3cTyw23sJe9HYuD7sw RMf7P5G5ZqG2oJEhn6is/56J1MWCM0YuEmROfhuK X-Google-Smtp-Source: ABhQp+T56pSSrG5H7rxG4xm2T1o/TjUZsSEoBftPbAjn/n2qm8PHHwv/7UiHWgdKRWz7YaxYANVNhcj5zpCakjo2Z6w= X-Received: by 10.98.14.195 with SMTP id 64mr3139576pfo.197.1509188820685; Sat, 28 Oct 2017 04:07:00 -0700 (PDT) Original-Received: by 10.100.162.238 with HTTP; Sat, 28 Oct 2017 04:07:00 -0700 (PDT) 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:139100 Archived-At: --001a1145904e8e6ea8055c996731 Content-Type: text/plain; charset="UTF-8" Attached trivial patch simply adds `(declare (debug ...))' to the macro. I believe it is perfectly safe and trivial, no mention in NEWS etc. is needed. I would ask to merge it to branch 26 if possible. Note that it doesn't quite let you debug generators anyway because of bug #28725, but the change makes sense regardless. In particular, with `iter2' package you should be able to debug generator functions called from `iter-do'. Paul --001a1145904e8e6ea8055c996731 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Add-missing-debug-declaration-to-iter-do.patch" Content-Disposition: attachment; filename="0001-Add-missing-debug-declaration-to-iter-do.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j9b80gff0 RnJvbSA0MGM2MjU2ZWI3Yjc0Y2FkZWZlNjVmMjNjYjZiNzkzMzZlNWIwNmMxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIFBvZ29ueXNoZXYgPHBvZ29ueXNoZXZAZ21haWwuY29t PgpEYXRlOiBTYXQsIDI4IE9jdCAyMDE3IDEzOjAxOjUxICswMjAwClN1YmplY3Q6IFtQQVRDSF0g QWRkIG1pc3NpbmcgZGVidWcgZGVjbGFyYXRpb24gdG8gYGl0ZXItZG8nCgotLS0KIGxpc3AvZW1h Y3MtbGlzcC9nZW5lcmF0b3IuZWwgfCAzICsrLQogMSBmaWxlIGNoYW5nZWQsIDIgaW5zZXJ0aW9u cygrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL2xpc3AvZW1hY3MtbGlzcC9nZW5lcmF0 b3IuZWwgYi9saXNwL2VtYWNzLWxpc3AvZ2VuZXJhdG9yLmVsCmluZGV4IDQxMGU0ZWRjYzkuLmVm NmNmYmE0MjAgMTAwNjQ0Ci0tLSBhL2xpc3AvZW1hY3MtbGlzcC9nZW5lcmF0b3IuZWwKKysrIGIv bGlzcC9lbWFjcy1saXNwL2dlbmVyYXRvci5lbApAQCAtNzE4LDcgKzcxOCw4IEBAIGl0ZXItY2xv c2UKICAgIkxvb3Agb3ZlciB2YWx1ZXMgZnJvbSBhbiBpdGVyYXRvci4KIEV2YWx1YXRlIEJPRFkg d2l0aCBWQVIgYm91bmQgdG8gZWFjaCB2YWx1ZSBmcm9tIElURVJBVE9SLgogUmV0dXJuIHRoZSB2 YWx1ZSB3aXRoIHdoaWNoIElURVJBVE9SIGZpbmlzaGVkIGl0ZXJhdGlvbi4iCi0gIChkZWNsYXJl IChpbmRlbnQgMSkpCisgIChkZWNsYXJlIChpbmRlbnQgMSkKKyAgICAgICAgICAgKGRlYnVnICgo c3ltYm9scCBmb3JtKSBib2R5KSkpCiAgIChsZXQgKChkb25lLXN5bWJvbCAoY3BzLS1nZW5zeW0g Iml0ZXItZG8taXRlcmF0b3ItZG9uZSIpKQogICAgICAgICAoY29uZGl0aW9uLXN5bWJvbCAoY3Bz LS1nZW5zeW0gIml0ZXItZG8tY29uZGl0aW9uIikpCiAgICAgICAgIChpdC1zeW1ib2wgKGNwcy0t Z2Vuc3ltICJpdGVyLWRvLWl0ZXJhdG9yIikpCi0tIAoyLjE0LjIKCg== --001a1145904e8e6ea8055c996731--