From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#21072: Brave new mark-defun (and a testing tool) Date: Wed, 03 May 2017 08:44:51 -0400 Message-ID: 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> <87vapiwlvr.fsf@jane> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493815800 16618 195.159.176.226 (3 May 2017 12:50:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 May 2017 12:50:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 21072@debbugs.gnu.org, Noam Postavsky To: Marcin Borkowski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 03 14:49:52 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 1d5tj5-00045V-Ff for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 May 2017 14:49:51 +0200 Original-Received: from localhost ([::1]:36519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5tjB-0004sB-5o for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 May 2017 08:49:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5tfR-0001oG-9f for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 08:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5tfO-0002hN-3L for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 08:46:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53854) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d5tfO-0002hD-0O for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 08:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d5tfN-0006Cv-Qk for bug-gnu-emacs@gnu.org; Wed, 03 May 2017 08:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 May 2017 12:46: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.149381552323815 (code B ref 21072); Wed, 03 May 2017 12:46:01 +0000 Original-Received: (at 21072) by debbugs.gnu.org; 3 May 2017 12:45:23 +0000 Original-Received: from localhost ([127.0.0.1]:52053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5tel-0006C3-BQ for submit@debbugs.gnu.org; Wed, 03 May 2017 08:45:23 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:52107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5tej-0006Bq-Po for 21072@debbugs.gnu.org; Wed, 03 May 2017 08:45:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A5EQBszwlZ/3Z8oWxcGgEBAQECAQEBAQgBAQEBg1WFCIVahX+QYCsBlUOCDoYeBAIChD1HEQECAQEBAQEBAWsohRYBBAFWIwULCw4mEhQYDSSKLAizC4pxAQEBBwImi1iKSAEEiUCUG5R+iQGGc5JwgUQ4AR6BCi4gCC6HUSSJFAEBAQ X-IPAS-Result: A0A5EQBszwlZ/3Z8oWxcGgEBAQECAQEBAQgBAQEBg1WFCIVahX+QYCsBlUOCDoYeBAIChD1HEQECAQEBAQEBAWsohRYBBAFWIwULCw4mEhQYDSSKLAizC4pxAQEBBwImi1iKSAEEiUCUG5R+iQGGc5JwgUQ4AR6BCi4gCC6HUSSJFAEBAQ X-IronPort-AV: E=Sophos;i="5.38,284,1491278400"; d="scan'208";a="309954349" Original-Received: from 108-161-124-118.dsl.teksavvy.com (HELO ceviche.home) ([108.161.124.118]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 May 2017 08:44:52 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 060F3662E0; Wed, 3 May 2017 08:44:52 -0400 (EDT) In-Reply-To: <87vapiwlvr.fsf@jane> (Marcin Borkowski's message of "Wed, 03 May 2017 07:27:20 +0200") 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:132216 Archived-At: > Running: I assume you mean "without compilation" (i.e. using only the .el file). > | form | evaled? | compiled? | > |---------------------------------+---------+-----------| > | (defun ...) | yes | no | > | (eval-when-compile (defun ...)) | no | no | ^^ yes > Compilation: And > | form | evaled? | compiled? | > |---------------------------------+---------+-----------| > | (defun ...) | no | yes | > | (eval-when-compile (defun ...)) | yes | yes | ^^^ no Instead, the whole expression is compiled as a constant holding the value returned from the evaluation. Hence this can be used for things like (eval-when-compile (+ 3 4)). Stefan