From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: pkg-autoloads.el vs. pkg-loaddefs.el Date: Thu, 20 Jun 2024 08:01:04 +0300 Message-ID: <86msngnr73.fsf@gnu.org> References: <87y1adrria.fsf@localhost> <87o77zbs4j.fsf@localhost> <871q4us0l9.fsf@localhost> <87msniqhel.fsf@localhost> <87h6dqqaqp.fsf@localhost> <87h6dp9cde.fsf@localhost> <8734p8aomr.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22318"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 20 07:01:57 2024 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 1sK9vp-0005cy-JL for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Jun 2024 07:01:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sK9v3-0003G6-Dl; Thu, 20 Jun 2024 01:01:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sK9v2-0003Fu-5a for emacs-devel@gnu.org; Thu, 20 Jun 2024 01:01:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sK9v1-0002xp-Ii; Thu, 20 Jun 2024 01:01:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2q+50i9PVgCJORluM+3H5WmVj/FGjyzdM6fDh15I9IY=; b=KCjbDHSmeIUM 7C0IjY5yCq23GgPidbfjJIMIpMfTxONCTD4YMqLQ03VFo5OlWaHAp+H9OC3LRRjG3M8y8EwG2OzBr sjm0H+Ym9w2eP9imCK9/VHoOWsWByEwM+rGNx/iCs+lAxTNBjln4Mu3QjcIJLjXheG/z+zRT99RE7 KNBx2cPrxf3mVH3xxkoCF0mIDG/0kdLYfT9Z0+p/LjyXIkNxDYYjv/aP2E7vP0HKQRSZRfUXn/lLz XlbPAVw2Da80PLeG9WHSvzSRDXYeKCVwcZFmpDnKJFW6Fy3xPUW0keW4GmlY+G1Mr4yyDl6uQU5h8 ugB23TLfEJmaIpQSXBoQZA==; In-Reply-To: (message from Stefan Monnier on Wed, 19 Jun 2024 16:35:56 -0400) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320305 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Wed, 19 Jun 2024 16:35:56 -0400 > > -(defun package--reload-previously-loaded (pkg-desc) > +(defun package--reload-previously-loaded (pkg-desc &optional warn) > "Force reimportation of files in PKG-DESC already present in `load-history'. > New editions of files contain macro definitions and > redefinitions, the overlooking of which would cause > -byte-compilation of the new package to fail." > +byte-compilation of the new package to fail. > +If WARN is a string, display a warning (using WARN as a format string) > +before reloading the files." You say that WARN is treated as a format string, but that begs the questions: what are the arguments to be formatted with that string?