From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.bugs Subject: bug#21072: Brave new mark-defun (and a testing tool) Date: Wed, 03 May 2017 07:27:20 +0200 Message-ID: <87vapiwlvr.fsf@jane> References: <87o9ydrzkr.fsf@mbork.pl> <87bmu2eoji.fsf@jane> <87wpcpw61w.fsf@jane> <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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493789234 26404 195.159.176.226 (3 May 2017 05:27:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 May 2017 05:27:14 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50 Cc: 21072@debbugs.gnu.org, Noam Postavsky To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 03 07:27: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 1d5moc-0006jq-JI for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 May 2017 07:27:06 +0200 Original-Received: from localhost ([::1]:34806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5moi-00060P-3V for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 May 2017 01:27:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5moc-0005zl-25 for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 01:27:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5moY-0001mr-Tu for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 01:27:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53609) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d5moY-0001mn-Q0 for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 01:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d5moY-000124-Ik for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 01:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marcin Borkowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 May 2017 05:27: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.14937892003938 (code B ref 21072); Wed, 03 May 2017 05:27:02 +0000 Original-Received: (at 21072) by debbugs.gnu.org; 3 May 2017 05:26:40 +0000 Original-Received: from localhost ([127.0.0.1]:51808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5moB-00011S-Ur for submit@debbugs.gnu.org; Wed, 03 May 2017 01:26:40 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:53429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5moA-00011K-8Z for 21072@debbugs.gnu.org; Wed, 03 May 2017 01:26:38 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id E1851E65E7; Wed, 3 May 2017 07:26:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PIae_IraQXnu; Wed, 3 May 2017 07:26:34 +0200 (CEST) Original-Received: from localhost (gra4.internetdsl.tpnet.pl [83.3.182.4]) by mail.mojserwer.eu (Postfix) with ESMTPSA id E0BB5E6585; Wed, 3 May 2017 07:26:33 +0200 (CEST) In-reply-to: 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:132211 Archived-At: On 2017-04-30, at 18:10, Stefan Monnier wrote: >> 2. I still don't fully get the `eval-and-compile' stuff. What exactly >> happens when the file is compiled? > > During compilation, (eval-and-compile E) will be treated (i.e. compiled) > just like E, except that E is evaluated along the way (so the > definitions present in E are available during compilation). > >> I understand that its forms are not evaluated. > > They are. It's for `eval-when-compile` that they aren't. Thanks for your answer, but I'm still not sure. Are the tables below right? Running: | form | evaled? | compiled? | |---------------------------------+---------+-----------| | (defun ...) | yes | no | | (eval-when-compile (defun ...)) | no | no | | (eval-and-compile (defun ...)) | yes | no | | (defmacro ...) | yes | no | Compilation: | form | evaled? | compiled? | |---------------------------------+---------+-----------| | (defun ...) | no | yes | | (eval-when-compile (defun ...)) | yes | yes | | (eval-and-compile (defun ...)) | yes | yes | | (defmacro ...) | yes | yes | TIA, -- Marcin Borkowski