From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ej32u--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#43586: Flymake can't understand `cl-loop' and `if-let*'. Date: Thu, 24 Sep 2020 02:10:41 +0000 Message-ID: <09d3d404-3ee4-abd6-468e-fe34af9db0cf@protonmail.com> References: <839ce061-6550-666e-bb2e-40cface2549c@protonmail.com> Reply-To: ej32u@protonmail.com, ej32u@protonmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11106"; mail-complaints-to="usenet@ciao.gmane.io" To: 43586@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 24 04:11:10 2020 Return-path: Envelope-to: geb-bug-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 1kLGj0-0002qH-28 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 04:11:10 +0200 Original-Received: from localhost ([::1]:43140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLGiz-0005uk-2z for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Sep 2020 22:11:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLGis-0005t9-A3 for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 22:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLGir-0002jK-WD for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 22:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLGir-0002Gm-SO for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 22:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ej32u@protonmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Sep 2020 02:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43586 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16009134538708 (code B ref -1); Thu, 24 Sep 2020 02:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Sep 2020 02:10:53 +0000 Original-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 Original-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 Original-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 Original-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 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= In-Reply-To: <839ce061-6550-666e-bb2e-40cface2549c@protonmail.com> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188840 Archived-At: 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.