From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Adding use-package to ELPA Date: Mon, 07 Mar 2022 13:01:49 -0500 Message-ID: References: <87k0dbi7ol.fsf@posteo.net> <871qzgyfuo.fsf@posteo.net> <87ilsre5jf.fsf@posteo.net> <87zgm2bpez.fsf@posteo.net> 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="11305"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: chad , EMACS development team To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 07 19:02:37 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nRHgq-0002fS-7M for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Mar 2022 19:02:36 +0100 Original-Received: from localhost ([::1]:32798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRHgp-000466-Cc for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Mar 2022 13:02:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRHgB-0003AR-Hv for emacs-devel@gnu.org; Mon, 07 Mar 2022 13:01:55 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:35392) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRHg9-00031w-6s for emacs-devel@gnu.org; Mon, 07 Mar 2022 13:01:54 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E9A8780602; Mon, 7 Mar 2022 13:01:51 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8E48180355; Mon, 7 Mar 2022 13:01:50 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1646676110; bh=oFsQ3hPEgToX62wQ3ODnWVM4lGBKaEMIhrnDeE36wqk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=C2nNS6N/lCD8i7XM/6gtjHEIIsCg65h/KSGNxn/5wKAD2gVKQ7jZrEcIEP4gBI8A6 ASUgH5Oy5RynVcVCDBzi97+/MG4Q6XPvfhjvgcNw0QKc1mddzh+kyLIkgCyFvtO501 b9jjA8gOdrQZMXbmPiP9vp8yTEpGZrVqN3U9ZIjo5IqoVrYiwNSUzcqlSao+TE+qvK 4BK5PD7aXir5CpFjXAJLcWTviOssWwdqGmoaIhE1fU1exxYSQF8A1wGfqS1f1TE5L6 W9ge28eNk1jR0CMVmgeEDe7lLcbkRHnvsj38aDIfeKpCRrch1XL1F14+2VBBx0/dWX 8qDWFSxPdfM/w== Original-Received: from ceviche (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6A2361202DB; Mon, 7 Mar 2022 13:01:50 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Sun, 06 Mar 2022 21:29:51 -0500") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286897 Archived-At: > I'll just throw in a request of mine: make it so `flymake-mode` gets > usable feedback when used in an init file. To make it more concrete. Currently if your init file contains just: ;;; -*- lexical-binding: t -*- (setq smtpmail-smtp-service 587) and you enable `flymake-mode`, it will complain: assignment to free variable =E2=80=98smtpmail-smtp-service=E2=80=99 There's no much we can do about it in general. With Setup/Leaf/use-package, OTOH, the user would presumably write something like: ;;; -*- lexical-binding: t -*- (setup smtpmail (setq smtpmail-smtp-service 587)) which does provide the link between `smtpmail-smtp-service` and the `smtpmail.el` file necessary for Emacs to be able in theory to discover that `smtpmail-smtp-service` is not just some unknown free variable. Currently, the above snippet using Setup still gives the same warning, tho. So `setup.el` could maybe do something like: (defmacro setup (pkg &rest args) (when (we-are-byte-compiling-p) (require (byte-run-strip-symbol-positions pkg))) ...) so as to silence the warning. Stefan