From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: A combination of defmacro, functionp, and quoted lambdas yields different results on consecutive evaluations Date: Tue, 27 Feb 2018 16:35:12 -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 1519767209 15203 195.159.176.226 (27 Feb 2018 21:33:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Feb 2018 21:33:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 27 22:33:25 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 1eqmsG-0003Y1-LN for ged-emacs-devel@m.gmane.org; Tue, 27 Feb 2018 22:33:24 +0100 Original-Received: from localhost ([::1]:40222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqmuJ-00088h-1G for ged-emacs-devel@m.gmane.org; Tue, 27 Feb 2018 16:35:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqmuC-00087u-Tg for emacs-devel@gnu.org; Tue, 27 Feb 2018 16:35:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqmu9-0002iQ-SH for emacs-devel@gnu.org; Tue, 27 Feb 2018 16:35:24 -0500 Original-Received: from [195.159.176.226] (port=50329 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqmu9-0002i7-JX for emacs-devel@gnu.org; Tue, 27 Feb 2018 16:35:21 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eqms4-0002W1-UN for emacs-devel@gnu.org; Tue, 27 Feb 2018 22:33:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:EWDPu2QEcWQuc7nGluppVKvbM3s= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:223141 Archived-At: > (with-eval-after-load 'flycheck > (flycheck-define-checker > …)) 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. 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. Stefan