From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jorge P. de Morais Neto Newsgroups: gmane.emacs.help Subject: Re: The function =?utf-8?Q?=E2=80=98cl-set-difference=E2=80=99?= might not be defined at runtime Date: Tue, 14 Apr 2020 17:59:52 -0300 Message-ID: <87y2qx237b.fsf@disroot.org> References: <877dyi2btk.fsf@disroot.org> <87zhbe7x87.fsf@gmail.com> <874ktl3oxb.fsf@disroot.org> <87v9m19a63.fsf@gmail.com> <871rop3mj0.fsf@disroot.org> <87r1wp95u3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="47261"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 14 23:00:39 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOSfe-000CBh-KB for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Apr 2020 23:00:38 +0200 Original-Received: from localhost ([::1]:39072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOSfd-00023w-J8 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Apr 2020 17:00:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54084) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOSfH-00022f-NS for help-gnu-emacs@gnu.org; Tue, 14 Apr 2020 17:00:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOSfG-0001CJ-HS for help-gnu-emacs@gnu.org; Tue, 14 Apr 2020 17:00:15 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:34842) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jOSfF-00019q-Um for help-gnu-emacs@gnu.org; Tue, 14 Apr 2020 17:00:14 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 55D0123432 for ; Tue, 14 Apr 2020 23:00:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SML3N4oFJsRl for ; Tue, 14 Apr 2020 23:00:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1586898010; bh=5kcKOjOhxWNOhKQ5IdCGx0bx3H4rlWx1Dg5EiFZ5+ms=; h=From:To:Subject:In-Reply-To:References:Date; b=ANVK2gzYmna4227xLoXmFV1MY6kL3OLIFfkyzIKj7GfxiI3MMYx/rRdS/Tjtc1Zhz 5RpWytXl0V9Ya/ruLp7VezSXgQBDI0rGM4M/9fVjh2MLG8oghBZb44JyMTMiP64Jwf eRvXm73FonA1dvuEmGpleATMv4NhrvtKaWBg0ibhXIKt1CLc9Yg4OimAiF8rH59jqA mj4k9wgGk7cdAXnEbiWuPaO7CztpUkXyXX6nuuzgmUykMi+Y+U6enHFhDt5qb5ZrLs S+ZV9qiHGs/HLPsjlZeVnqzbXNg/DRf7DSE0fLG1eFv6ajvHR4Q0xiZhSO8SL3Dxi7 XeUsBlFE5bqRQ== In-Reply-To: <87r1wp95u3.fsf@gmail.com> Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 178.21.23.139 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122815 Archived-At: Em [2020-04-14 ter 22:21:08+0200], =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec escreve= u: > Indeed. Works for me, too (with Flycheck, even). > > Jorge, are you sure the warning you get is about `cl-set-difference' not > being defined and not something else? To placate Flycheck regarding the use of cl-assert, I required 'cl-macs when compiling. So I had: < Some defconst invocations > < One defvar > < Some other declare-function invocations > (declare-function cl-set-difference "cl-seq" (list1 list2 &rest cl-keys)) < Some other declare-function invocations > (eval-when-compile (require 'cl-macs)) And I just found out (after trial and error) that the declare-function of cl-set-difference only placates Flycheck when it comes *after* that eval-when-compile form. So I moved the eval-when-compile to the top and now I have: (eval-when-compile (require 'cl-macs)) < Some defconst invocations > < One defvar > < Some other declare-function invocations > (declare-function cl-set-difference "cl-seq" (list1 list2 &rest cl-keys)) That solved the problem. I have no idea why, though. Regards --=20 - - I am Brazilian. I hope my English is correct and I welcome feedback. - -