From: Jorge P. de Morais Neto <jorge+list@disroot.org>
To: help-gnu-emacs@gnu.org
Subject: Re: The function ‘cl-set-difference’ might not be defined at runtime
Date: Tue, 14 Apr 2020 18:10:25 -0300 [thread overview]
Message-ID: <87v9m122pq.fsf@disroot.org> (raw)
In-Reply-To: <jwvzhbdkefj.fsf-monnier+emacs@gnu.org>
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
--
- <https://jorgemorais.gitlab.io/justice-for-rms/>
- I am Brazilian. I hope my English is correct and I welcome feedback.
- Free Software Supporter:
<https://www.fsf.org/free-software-supporter/subscribe>
next prev parent reply other threads:[~2020-04-14 21:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-14 17:53 The function ‘cl-set-difference’ might not be defined at runtime Jorge P. de Morais Neto
2020-04-14 18:12 ` Štěpán Němec
2020-04-14 18:25 ` Jorge P. de Morais Neto
2020-04-14 18:39 ` Noam Postavsky
2020-04-14 18:47 ` Štěpán Němec
2020-04-14 19:17 ` Jorge P. de Morais Neto
2020-04-14 19:43 ` Noam Postavsky
2020-04-14 20:21 ` Štěpán Němec
2020-04-14 20:59 ` Jorge P. de Morais Neto
2020-04-15 4:01 ` Stefan Monnier
2020-04-15 4:34 ` Emanuel Berg via Users list for the GNU Emacs text editor
[not found] ` <20200415070046.GA17630@tuxteam.de>
2020-04-15 17:14 ` ;; Local variables: (was: Re: The function ‘cl-set-difference’ might not be defined at runtime) Emanuel Berg via Users list for the GNU Emacs text editor
2020-04-15 17:25 ` tomas
2020-04-15 12:52 ` The function ‘cl-set-difference’ might not be defined at runtime Jorge P. de Morais Neto
2020-04-15 13:01 ` Noam Postavsky
2020-04-14 20:21 ` Stefan Monnier
2020-04-14 21:10 ` Jorge P. de Morais Neto [this message]
2020-04-15 4:05 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9m122pq.fsf@disroot.org \
--to=jorge+list@disroot.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.