From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: A combination of defmacro, functionp, and quoted lambdas yields different results on consecutive evaluations Date: Wed, 28 Feb 2018 09:26:42 -0500 Message-ID: References: <08190786-14de-a899-f591-a7043c87bebb@gmail.com> <9dbc26f4-e86f-c3df-8193-61a0a3837466@gmail.com> <10414fb8-e09c-a4fa-dcd1-5ccfff10650d@gmail.com> <555f3f1b-d31f-ec12-e460-8b0c20816d45@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1519827962 9833 195.159.176.226 (28 Feb 2018 14:26:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2018 14:26:02 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 28 15:25:58 2018 Return-path: Envelope-to: ged-emacs-devel@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 1er2gA-00025U-88 for ged-emacs-devel@m.gmane.org; Wed, 28 Feb 2018 15:25:58 +0100 Original-Received: from localhost ([::1]:44620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er2iC-0005uE-Il for ged-emacs-devel@m.gmane.org; Wed, 28 Feb 2018 09:28:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er2gw-0005s8-Ai for emacs-devel@gnu.org; Wed, 28 Feb 2018 09:26:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1er2gv-0002NJ-IY for emacs-devel@gnu.org; Wed, 28 Feb 2018 09:26:46 -0500 Original-Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:36124) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1er2gv-0002NA-DS for emacs-devel@gnu.org; Wed, 28 Feb 2018 09:26:45 -0500 Original-Received: by mail-qk0-x229.google.com with SMTP id d206so3161848qkb.3 for ; Wed, 28 Feb 2018 06:26:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=CulVjnRNd/GYEpyFt2vmzinoU/pzhmVmafD8ne8lezI=; b=PkVPELLyAu3FoM9mPGc8Zrn21656oEtwCMMW1GwgAifiL1CW+VEhSrX6XLkQNdTqoK v9miPRJiNC18kULf/couGHCP2hYOrzIgkzY3962fnFfZkkUJ7mB9YKNvcd3HwKcZ6qPF QS6gq6s28hJEg4g8QUEQRQ9BEfY55v2mCpjH4M4u1nyh6BUQvdUpCsX/xpezCm7ow03E aHKKMAI01CjNhvbJgcfiGdsbgZANnoh0zj4TcMzaytkLR2W1x+kJExp2/WitlvTZ+Z2/ 0q03te8338aylITb91lTi+C4BhnGHeYStluPjEoV4uZgnv8ibnx+2y9NuoWl5i31rt4m 6ntw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CulVjnRNd/GYEpyFt2vmzinoU/pzhmVmafD8ne8lezI=; b=o6kbJJlbbHx4staW1zBDGwNJZShehr28eeCiMwZv3Jku0QfmsK7xYL8d7lK+hUz18U fGkieG+OHS/T26WzKZzHvoSDGZeKPedw+1P89KbOAEEsx+0kamw4TYMbXtIGBZipk5MV GkUSTC2tPVl4Sk4J189hKsa9TZGwzTGo20ERk11WH0HPQ3ObTeEOASPZ57DhqMnvnv9M oturULvDMERecRl9R8QwJ2Oq2e+D2au8EPzSi2D6A/+Z6blKdOBHFgWaW2QDt2ND49GZ J+iWNdhAWxZod779CXhENB9+MzLSNVaMLtgOW7eHpgeRwAv4ptZRRHX9fmANp95tkeF3 2/Wg== X-Gm-Message-State: APf1xPDlWcBrT8JG1IUow3NdwHKD39SpGDTvLC6ztT5M4c3YX1vv213O Oer4ExeYIPL9ypk6PluiZwcBP8aG X-Google-Smtp-Source: AG47ELvZPl1e1R2Qcg1UqJgDjnKvVO3xFo+uZvKDc7PKpILUuDJ7RhrUW3eaKnm6sjd1bOmF7vwNew== X-Received: by 10.55.20.169 with SMTP id 41mr28884440qku.264.1519828004635; Wed, 28 Feb 2018 06:26:44 -0800 (PST) Original-Received: from ?IPv6:2601:184:4180:66e7:3caa:840d:c217:daa5? ([2601:184:4180:66e7:3caa:840d:c217:daa5]) by smtp.gmail.com with ESMTPSA id b18sm481560qkg.90.2018.02.28.06.26.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 06:26:43 -0800 (PST) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223165 Archived-At: On 2018-02-27 16:35, Stefan Monnier wrote: > I was about to suggest that you might ask the Flycheck maintainer to > provide a function that can be used instead of the macro > flycheck-define-checker, but I see that it's pretty much already the > case: just use flycheck-define-command-checker. Oh, the Flycheck maintainers is already well aware of the issue: there are two of them, and one of them is me :) That function is semi-internal: we don't want people to have to use it. > Another option, is to compile that file and then you can do > > (eval-when-compile (require 'flycheck)) > (with-eval-after-load 'flycheck > (flycheck-define-checker > …)) > > it also works if you don't byte-compile, except that the > with-eval-after-load becomes ineffective. What do you mean by ineffective? It would just run immediately because the form above loads Flycheck when interpreted, right? Clément.