From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier 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 16:21:34 -0400 Message-ID: References: <877dyi2btk.fsf@disroot.org> <87zhbe7x87.fsf@gmail.com> <874ktl3oxb.fsf@disroot.org> <87v9m19a63.fsf@gmail.com> <871rop3mj0.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="11236"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:fiPkT4uugcFAYYvOPCcvVSRVyYk= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 14 22:22:12 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 1jOS4S-0002pX-82 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Apr 2020 22:22:12 +0200 Original-Received: from localhost ([::1]:38698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOS4R-0002Ra-8Z for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Apr 2020 16:22:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48713) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOS3z-0002Od-45 for help-gnu-emacs@gnu.org; Tue, 14 Apr 2020 16:21:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOS3y-0005ol-8F for help-gnu-emacs@gnu.org; Tue, 14 Apr 2020 16:21:43 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:36412) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jOS3y-0005o6-2O for help-gnu-emacs@gnu.org; Tue, 14 Apr 2020 16:21:42 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jOS3w-00029X-3N for help-gnu-emacs@gnu.org; Tue, 14 Apr 2020 22:21:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 159.69.161.202 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:122814 Archived-At: > Yes, `(require 'cl-lib)` at top level placates Flycheck. But for the > last drop of efficiency, I tried to `(require 'cl-lib)` inside the body > of the function that calls cl-set-difference, and put at the top level: FWIW, I don't think it will be more efficient. > (declare-function cl-set-difference "cl-seq" (list1 list2 &rest cl-keys)) > That does not placate Flycheck though. Do you know why? The 0.08s of > extra loading time will not kill anyone for sure (specially since this > is code for personal use and even I will use it only rarely), but if > there is an easy way to avoid it, I would like to know. (require 'seq) and then use `seq-difference`? Stefan