From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#21072: Brave new mark-defun (and a testing tool) Date: Sun, 30 Apr 2017 18:21:54 -0400 Message-ID: <8737cpo7st.fsf@users.sourceforge.net> References: <87o9ydrzkr.fsf@mbork.pl> <87a881ofsu.fsf@jane> <87k272wh8x.fsf@users.sourceforge.net> <871st4aal7.fsf@jane> <87tw5l7v26.fsf@jane> <877f2hs1nw.fsf@users.sourceforge.net> <87zifa9ce5.fsf@jane> <87shl0pbcg.fsf@users.sourceforge.net> <87shky9ez8.fsf@jane> <8737cyotmt.fsf@users.sourceforge.net> <87h919yf5g.fsf@jane> <8737cpylcb.fsf@jane> <878tmhogb0.fsf@users.sourceforge.net> <8760hlo9os.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493590898 3748 195.159.176.226 (30 Apr 2017 22:21:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2017 22:21:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Marcin Borkowski , 21072@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 01 00:21:35 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 1d4xDi-0000uG-LE for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 May 2017 00:21:34 +0200 Original-Received: from localhost ([::1]:46066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4xDo-00041T-Gq for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Apr 2017 18:21:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4xDF-0003l9-Nq for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 18:21:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d4xDC-0000JW-J0 for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 18:21:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50001) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d4xDC-0000JA-E6 for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 18:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d4xDC-0004w5-8v for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 18:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Apr 2017 22:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21072 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21072-submit@debbugs.gnu.org id=B21072.149359083118910 (code B ref 21072); Sun, 30 Apr 2017 22:21:02 +0000 Original-Received: (at 21072) by debbugs.gnu.org; 30 Apr 2017 22:20:31 +0000 Original-Received: from localhost ([127.0.0.1]:48200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4xCh-0004uw-6B for submit@debbugs.gnu.org; Sun, 30 Apr 2017 18:20:31 -0400 Original-Received: from mail-io0-f194.google.com ([209.85.223.194]:36151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4xCf-0004uk-LV for 21072@debbugs.gnu.org; Sun, 30 Apr 2017 18:20:30 -0400 Original-Received: by mail-io0-f194.google.com with SMTP id x86so18752106ioe.3 for <21072@debbugs.gnu.org>; Sun, 30 Apr 2017 15:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Dms0zdNNum5nVurYFKqRqBVfaxFFpPhnBdpFQnVUv88=; b=pO1tH8sqp71LCTZEh3ZHnLQtHTwml88IG29FfNmxXa+wc8qjzFlZAhcQ/cDx/ZOiSM IhnzWbsAvN3vF53f91DQcobOXTxPXFzp91Ovl3U232sSvA13qTecbkuqCk68c9IjGP7L d2ajEFb+A9LhIOuY6Ya6sxWycVP7ICGLvQnR/u38soDvbpqB2obhSOgBnU0UUgRYKQaS NakyoCAY5vnV6Sg5dMFwUmWgUivCQS+z1rOZglSAXnQaPVtAIzGsM0MtMdpyfVhPOCLc 8HztoS7X4XmZfON2/BccOFenxRAX768zbogqh6N0fYVbxu/RdlNAy4ss/pzhP17u0Q5/ DYKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=Dms0zdNNum5nVurYFKqRqBVfaxFFpPhnBdpFQnVUv88=; b=h7GEjExf9TKEtY95+goq6Kf8z8ZTQWai5CJBjryPw1tEys2kIFUCDENVmdD4PI8/Jj I9Jac5NH/r+54tH9E5l53Idv+JEpbJTxgFabbxTSt+Ped41i4OJCQz59Lu0hcwPho8Dy kfEbl64Y8avn0Mf6kAW4penIJMjuv1fpgY+zZVeeue3VWuIAfiESAYYvxeuMw760MDj+ 6CNaMrx66LQI69yBeS+0IEWD85AZfr/XTlYLcnQeBhcbt1Ekgex7bUdy3VPHfEhtpYdY 50+T6pcXHaRUGZtZS8nZrTeqBfLjcgVeYaqif3FxtYhaHosABHreccolxKZGL2tL00FW dn2w== X-Gm-Message-State: AN3rC/5UEvYvtg5xDyOiBiD6/uF4Jj1uXbxEDTm0Y90HKGvy0kNmgPd0 nUov/PG9tEKhJw== X-Received: by 10.107.9.37 with SMTP id j37mr20404747ioi.43.1493590824120; Sun, 30 Apr 2017 15:20:24 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id z85sm3111389ita.3.2017.04.30.15.20.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 30 Apr 2017 15:20:23 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 30 Apr 2017 18:03:37 -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:132142 Archived-At: Stefan Monnier writes: > This suggests that the first arg is not "evaluated by the macro itself > at compile time", but instead is passed unevaluated to `insert`, in > which case it can't be instrumented. Oh, I see, this patch works, although it surprised me a bit to start stepping immediately when doing the C-u C-M-x. --- i/test/lisp/emacs-lisp/lisp-tests.el +++ w/test/lisp/emacs-lisp/lisp-tests.el @@ -320,12 +320,10 @@ elisp-tests-with-temp-buffer of the form =!NAME= in CONTENTS are removed, and a for each one a variable called NAME is bound to the position of the word's start." - (declare (indent 1) (debug (form body))) + (declare (indent 1) (debug (def-form body))) (let* ((var-pos nil) (text (with-temp-buffer - (insert (cond ((symbolp contents) - (symbol-value contents)) - (t contents))) + (insert (eval contents)) (goto-char (point-min)) (while (re-search-forward elisp-test-point-position-regex nil t) (push (list (intern (match-string-no-properties 1))