Subject: bug#43586: Flymake can't understand `cl-loop' and `if-let*'.

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 24 Sep 2020 16:44:05 +0200

[email-masked] writes:

> Flymake is giving many errors, for a command that I believe works. This happens 
> with a clean init file.

[...]

> Here are some of the errors Flymake reports:
>
>     19   0 warning  Unused lexical variable ‘formatted-bookmarks’
>     22   3 warning  ‘(chosen-cand (selectrum-read "Bookmark: " 

[...]

> You can see that it is treating key words as variables in `cl-loop', and cannot 
> see that `actual-data' is defined in `if-let*'. The command works fine when 
> evaluated.

Do the warnings go away if you put

(require 'cl-lib)
(require 'subr-x)

in your file?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no