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 17:41:07 -0400 Message-ID: <8760hlo9os.fsf@users.sourceforge.net> References: <87o9ydrzkr.fsf@mbork.pl> <83o9xdghmc.fsf@gnu.org> <87o9wkoald.fsf@jane> <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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493588416 11432 195.159.176.226 (30 Apr 2017 21:40:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2017 21:40:16 +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 Sun Apr 30 23:40:08 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 1d4wZb-0002na-Kh for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Apr 2017 23:40:07 +0200 Original-Received: from localhost ([::1]:45982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4wZh-00009d-CJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Apr 2017 17:40:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4wZb-00008B-AI for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 17:40:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d4wZW-00081e-EA for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 17:40:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d4wZW-00081a-9y for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 17:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d4wZV-0003vV-NK for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 17:40:01 -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 21:40:01 +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.149358838415063 (code B ref 21072); Sun, 30 Apr 2017 21:40:01 +0000 Original-Received: (at 21072) by debbugs.gnu.org; 30 Apr 2017 21:39:44 +0000 Original-Received: from localhost ([127.0.0.1]:48152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4wZE-0003ut-IJ for submit@debbugs.gnu.org; Sun, 30 Apr 2017 17:39:44 -0400 Original-Received: from mail-it0-f66.google.com ([209.85.214.66]:33744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4wZC-0003ue-IZ for 21072@debbugs.gnu.org; Sun, 30 Apr 2017 17:39:43 -0400 Original-Received: by mail-it0-f66.google.com with SMTP id z67so10895901itb.0 for <21072@debbugs.gnu.org>; Sun, 30 Apr 2017 14:39:42 -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=YE0Ziew8LQsAZt861MewLmyIY5cc+fW6qjnf0XCD1bg=; b=i88hgrowg6ldCOGE88YAZOT/cj5c1yNx918FwcabjfmaDHArXQG7cFHqtydfBvzAm3 TbACoHNXj/hNiqQ2ZXElH7fazzqsBTLVXrmeXVm2CVkTnIKiONR2A5reJugqeI0clisq 86BZHn4GTdDkNNwhJqstMTCPWp1i1M0Mzv25oJo1o01kI+Sq1po76Ft/5LRZ0G0TfVxL LBoEifT1pBB6KUVhiMrKdOU95UVs7vepa9R0iAkkcVkKxCa/HiEfQYpxw+tUzqDcDbTT z0Jo73oUmNhvPJpoQ4wpcLcfHIyQv+V/0nGmjZBtGuUZQ1TWCeeecy9Iqncs4JXWac3h 1vZw== 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=YE0Ziew8LQsAZt861MewLmyIY5cc+fW6qjnf0XCD1bg=; b=I0/Q+vjhcaEnGqjwKh3Shuwtjw74B/AsRS6pBBbB7kXIVenUAX5Nzxbbn0cYPe7vdW 5KYKQ9nvt6lywUUjWLpZpJ5iKgvh9AHSxMgLn2meQX8ABi9jWwKQSL8yt11VQWFCoLZz c3f47dQl24Yn7s2iWvu7v7FQkz2+zYHZosLGDWEuBh2CnRGOLYf4oemT5nlTfxCnzUZ6 6B/pXicO3nwButWdMEKV2C0gp8REgeC0GBrHROvyd1W0g9jn5dBFtXxlrUS4sdUxCa6B Ci+N0ygyna+MJ8qIcH6pYvnhOJua1RXHwPsUWmx6ty7nEa4jJB3snvYFJXl3hhIbWl4+ 4NPg== X-Gm-Message-State: AN3rC/5nQ+KxWtRIUDYY13+wHJCGuHq9HFM5PzVBwREYJBKo/3Ecbp2s 7NQKMdPfALA5lw== X-Received: by 10.36.117.140 with SMTP id y134mr18654626itc.53.1493588376855; Sun, 30 Apr 2017 14:39:36 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id z85sm3059424ita.3.2017.04.30.14.39.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 30 Apr 2017 14:39:36 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 30 Apr 2017 16:09:05 -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:132140 Archived-At: Stefan Monnier writes: >> I guess it's related to the fact that the first argument is evaluated by >> the macro itself at compile time, with (debug t) or (debug form body) I >> get an error when trying to instrument one of tests using that macro: > > Yes, you can either use (debug (sexp body)) to avoid instrumenting the > first arg, or you might use (debug (def-form body)) so as to warn that > the first argument is not evaluated at the "normal" time. I'm not sure exactly what def-form means, but using it gives a similar error. Debugger entered--Lisp error: (wrong-type-argument char-or-string-p (edebug-enter (quote test@mark-defun-no-arg-region-inactive) nil (function (lambda nil (edebug-after 0 3 mark-defun-test-buffer))))) insert((edebug-enter (quote test@mark-defun-no-arg-region-inactive) nil (function (lambda nil (edebug-after 0 3 mark-defun-test-buffer))))) [...]