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 18:10:25 -0300 Message-ID: <87v9m122pq.fsf@disroot.org> 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="95241"; 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:11:25 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 1jOSq4-000Oe1-NX for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Apr 2020 23:11:24 +0200 Original-Received: from localhost ([::1]:39246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOSq3-0006Em-Of for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Apr 2020 17:11:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56070) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOSpX-0006Ar-0u for help-gnu-emacs@gnu.org; Tue, 14 Apr 2020 17:10:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOSpU-0005Kc-9j for help-gnu-emacs@gnu.org; Tue, 14 Apr 2020 17:10:50 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:45352) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jOSpT-0005En-75 for help-gnu-emacs@gnu.org; Tue, 14 Apr 2020 17:10:48 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 90F76241F3 for ; Tue, 14 Apr 2020 23:10:44 +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 xJ2p_RvkWPo1 for ; Tue, 14 Apr 2020 23:10:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1586898634; bh=aAcr6j59HICelBlpHDw1tkQp2XfU5aI4RudALvs7HR8=; h=From:To:Subject:In-Reply-To:References:Date; b=cbXGMVTvfmAhFc3ox7QxvdDtpeEkNO4aAOWfyrTfR10ztBk/fplWdydaZuro7Q8YH +r9XWMZ/f/wjT/xToNVpL8Dr2AxjqEEFyqDD8MsGjHUJOjnQe9LlIR/nCsNCTarNhv NFEoeYXnt8Yq+kNr0cQ8m4/GEh18V7W4p9uABf+HWuVlSqDhhxUNM+JBusRWKv1xPM FgIr7PQFOuv44u1ma03SVN5nNKi8yJdMixt8EkyZDsBGjoxP7UPvPSUWcjfUYtLf17 2XidLC55rMAF8ilIMyJ6d9qOlWiQ43JDPGK7whDSu307PWX3It24nHU9kck/UGTkCT VJis2BcgpJK2A== In-Reply-To: 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:122816 Archived-At: Hi Stefan. Thank you for dedicating time to this thread! Em [2020-04-14 ter 16:21:34-0400], Stefan Monnier escreveu: >> 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. Well, I thought that putting `(require 'cl-lib)` inside the function body would be more efficient by avoiding requiring cl-lib when that function is not invoked (the file contains other functions). But it would only make a 0.08s difference, and only if cl-lib was not already loaded anyway. >> (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`? > Just for curiosity, why would that be better? Does seq load faster? Or is seq more likely to be already loaded? Regards -- - - I am Brazilian. I hope my English is correct and I welcome feedback. - Free Software Supporter: