From unknown Mon Aug 18 02:05:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#43586 <43586@debbugs.gnu.org> To: bug#43586 <43586@debbugs.gnu.org> Subject: Status: Flymake can't understand `cl-loop' and `if-let*'. Reply-To: bug#43586 <43586@debbugs.gnu.org> Date: Mon, 18 Aug 2025 09:05:49 +0000 retitle 43586 Flymake can't understand `cl-loop' and `if-let*'. reassign 43586 emacs submitter 43586 ej32u@protonmail.com severity 43586 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 23 22:10:53 2020 Received: (at submit) by debbugs.gnu.org; 24 Sep 2020 02:10:53 +0000 Received: from localhost ([127.0.0.1]:38244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLGij-0002GO-7c for submit@debbugs.gnu.org; Wed, 23 Sep 2020 22:10:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:37790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLGih-0002GG-Kk for submit@debbugs.gnu.org; Wed, 23 Sep 2020 22:10:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLGih-0005ng-G6 for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 22:10:51 -0400 Received: from mail-40136.protonmail.ch ([185.70.40.136]:36640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLGid-0002hq-JD for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 22:10:51 -0400 Date: Thu, 24 Sep 2020 02:10:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1600913445; bh=2heNwha7gC1VOLMuloYo0RamZpovzzwh1503VOb5oYU=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=oGBN5/mQcbTlevltkAxZFWu2jAsx8okjy+XbHd6sVRomMQRAvSCGymoAQP2Nqc6RN fzbn4pEW/ANwU6WVva+w1YD3x7DzKnsm95Assv4dsp4jeEKRlpGYIAOFtlbOO+0TXZ 4dGtRhdqsNUuskeHHpE+Z2NncDIgPKtt1uqYlF/4= To: bug-gnu-emacs@gnu.org From: ej32u@protonmail.com Subject: Flymake can't understand `cl-loop' and `if-let*'. Message-ID: <09d3d404-3ee4-abd6-468e-fe34af9db0cf@protonmail.com> In-Reply-To: <839ce061-6550-666e-bb2e-40cface2549c@protonmail.com> References: <839ce061-6550-666e-bb2e-40cface2549c@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=185.70.40.136; envelope-from=ej32u@protonmail.com; helo=mail-40136.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/23 22:10:45 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ej32u@protonmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, Flymake is giving many errors, for a command that I believe works. This hap= pens=20 with a clean init file. The command so far is this: ;;;###autoload (defun selectrum-bookmark () "Go to or create a bookmark. To create a bookmark with the same name, use `bookmark-set' (\\[bookmark-se= t])." (interactive) ;; Require `bookmark' to load the bookmark list. (require 'bookmark) ;; Make sure bookmarks are available. (unless bookmark-alist (if (file-exists-p bookmark-default-file) (bookmark-load bookmark-default-file) (user-error "selectrum-bookmark: File not found: %s" bookmark-default-file))) (let ((formatted-bookmarks (and bookmark-alist (cl-loop for bm in bookmark-alist for name =3D (car bm) collect (propertize (replace-regexp-in-string "\n" (propertize "\\n" 'face 'warning ) (concat (propertize name 'face 'bold) ": " (propertize (concat (alist-get 'filename bm) "@" (number-to-string (alist-get=20 'position bm))) 'face 'underline) ": " (alist-get 'front-context-string bm) (propertize "|" 'face 'highlight) (alist-get 'rear-context-string bm)) 'fixed-case 'literal) 'bm bm))))) (if-let* ((chosen-cand (selectrum-read "Bookmark: " formatted-bookmark= s)) (actual-data (get-text-property 0 'bm chosen-cand))) (bookmark-jump actual-data) (bookmark-set chosen-cand)))) Here are some of the errors Flymake reports: 19 0 warning Unused lexical variable =E2=80=98formatted-bookmarks= =E2=80=99 22 3 warning =E2=80=98(chosen-cand (selectrum-read "Bookmark: "=20 formatted-bookmarks))=E2=80=99 is a malformed function 34 15 warning reference to free variable =E2=80=98for=E2=80=99 34 19 warning reference to free variable =E2=80=98bm=E2=80=99 34 22 warning reference to free variable =E2=80=98in=E2=80=99 35 19 warning reference to free variable =E2=80=98name=E2=80=99 35 24 warning reference to free variable =E2=80=98=3D=E2=80=99 36 15 warning reference to free variable =E2=80=98collect=E2=80=99 54 52 warning reference to free variable =E2=80=98chosen-cand= =E2=80=99 55 9 warning reference to free variable =E2=80=98actual-data= =E2=80=99 You can see that it is treating key words as variables in `cl-loop', and ca= nnot=20 see that `actual-data' is defined in `if-let*'. The command works fine when= =20 evaluated. Thank you. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 24 10:44:18 2020 Received: (at 43586) by debbugs.gnu.org; 24 Sep 2020 14:44:18 +0000 Received: from localhost ([127.0.0.1]:41204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSTq-0002Uw-EY for submit@debbugs.gnu.org; Thu, 24 Sep 2020 10:44:18 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSTo-0002Ug-5C for 43586@debbugs.gnu.org; Thu, 24 Sep 2020 10:44:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=o25VKHM8vFH12/BaA8lCfycCcMjFh3CNTyU55pfUo8M=; b=uw89A0fvaRBtWunBZd5GD3OUj9 lKmzQfCRqepkrP4HmzEbLA80dlEhNCA2Psr6YjSS1Xuwx+rKVl+otqUI9bSgYe/6TLkUgJlwpfLdj kkAgjcEcpz1kcglQSv54cMNt7lTwuxOtD+c0W5FEsbPCtu7fYHd2NYLapAGVey+NZPL8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLSTe-0007PU-Aj; Thu, 24 Sep 2020 16:44:09 +0200 From: Lars Ingebrigtsen To: ej32u@protonmail.com Subject: Re: bug#43586: Flymake can't understand `cl-loop' and `if-let*'. References: <839ce061-6550-666e-bb2e-40cface2549c@protonmail.com> <09d3d404-3ee4-abd6-468e-fe34af9db0cf@protonmail.com> X-Now-Playing: =?utf-8?Q?V=C3=A9ronique?= Vincent & Aksak Maboul's _Ex-Futur Album_: "Reveillons-Nous" Date: Thu, 24 Sep 2020 16:44:05 +0200 In-Reply-To: <09d3d404-3ee4-abd6-468e-fe34af9db0cf@protonmail.com> (ej32u@protonmail.com's message of "Thu, 24 Sep 2020 02:10:41 +0000") Message-ID: <87wo0j9qve.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: ej32u@protonmail.com writes: > Flymake is giving many errors, for a command that I believe works. This happens > with a clean init file. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43586 Cc: 43586@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ej32u@protonmail.com writes: > Flymake is giving many errors, for a command that I believe works. This h= appens=20 > with a clean init file. [...] > Here are some of the errors Flymake reports: > > 19 0 warning Unused lexical variable =E2=80=98formatted-bookmarks= =E2=80=99 > 22 3 warning =E2=80=98(chosen-cand (selectrum-read "Bookmark: "=20 [...] > You can see that it is treating key words as variables in `cl-loop', and = cannot=20 > see that `actual-data' is defined in `if-let*'. The command works fine wh= en=20 > evaluated. Do the warnings go away if you put (require 'cl-lib) (require 'subr-x) in your file? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 25 20:24:55 2020 Received: (at 43586-done) by debbugs.gnu.org; 26 Sep 2020 00:24:55 +0000 Received: from localhost ([127.0.0.1]:45496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLy1G-0005vH-HZ for submit@debbugs.gnu.org; Fri, 25 Sep 2020 20:24:54 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]:19037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLy17-0005ux-Ie for 43586-done@debbugs.gnu.org; Fri, 25 Sep 2020 20:24:52 -0400 Date: Sat, 26 Sep 2020 00:24:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1601079878; bh=guaMkjbg/JpcP09zy6frBdzELW4o0xlB7ofrw/vSI9Y=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=ydUGH9yIqAFB708bwIxsV60RD1nUmK6POHfLuB7usaDjNxnhljB5PgrmGE1B2B8eh +AKFdFrqLOKCvshiCnhVEJ4uxf9prh5vG59rPeYH+5+9wH27hABtSrHXkopq2FbE+i gOh8v7L1tGCVdFJNxUYMaCIj/ziYy5M0A08r7azI= To: 43586-done@debbugs.gnu.org From: ej32u@protonmail.com Subject: Re: bug#43586: Flymake can't understand `cl-loop' and `if-let*'. Message-ID: <06f1b220-8e06-fe1c-0495-219e59f5d693@protonmail.com> In-Reply-To: <87wo0j9qve.fsf@gnus.org> References: <839ce061-6550-666e-bb2e-40cface2549c@protonmail.com> <09d3d404-3ee4-abd6-468e-fe34af9db0cf@protonmail.com> <87wo0j9qve.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43586-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ej32u@protonmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thank you, I had missed adding those. On 9/24/20 10:44 AM, Lars Ingebrigtsen wrote: > ej32u@protonmail.com 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 =E2=80=98formatted-bookmark= s=E2=80=99 >> 22 3 warning =E2=80=98(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 w= hen >> 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 From unknown Mon Aug 18 02:05:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 24 Oct 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator