From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74040: `require-with-check` signals error for `project` Date: Mon, 28 Oct 2024 22:42:16 -0400 Message-ID: References: Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13325"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74040-done@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 29 03:43:38 2024 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 1t5cCn-0003JU-8r for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Oct 2024 03:43:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5cCH-0006vO-Lr; Mon, 28 Oct 2024 22:43:05 -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 1t5cCF-0006v7-HZ for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2024 22:43:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t5cCF-0004mM-5M for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2024 22:43:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=e+Y669vp+hSkF1vg3a3yVfEtEtmoUi2SbdGZv6kvSmE=; b=hSA6Dml8BTLy8HyBpup+CnUKENMWItTwgLR3IY4WoSmDr+w0sZjadCYgThz98YR7VLiUF94DAlDymfLhutz+XNQYsIJH86aW7mO8DKGJz6oSsxadvoaG7+VDWol5+bl3PrMOKzqEMBoVbGgT0iqj+3RhutjgPXXqXmuylEunoYMVbLfhlaHSLuo7NzdKn6FpoyeZzvPcEn59J+2q2zTttveHl71lBcviji4K46yK+FNm5k0OL9ikWUPahjwzmC6l4PRhFgut4D1BLHWE/QZqqicMRdQCbwqpHSWeOMtjMfYYQyU5K/8dXST7tEHIeFPhYUpRFH2nt/BAdighrBk/wg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5cCE-0003Bm-0V for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2024 22:43:02 -0400 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2024 02:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74040 X-GNU-PR-Package: emacs Mail-Followup-To: 74040@debbugs.gnu.org, monnier@iro.umontreal.ca, monnier@iro.umontreal.ca Original-Received: via spool by 74040-done@debbugs.gnu.org id=D74040.173016974912196 (code D ref 74040); Tue, 29 Oct 2024 02:43:01 +0000 Original-Received: (at 74040-done) by debbugs.gnu.org; 29 Oct 2024 02:42:29 +0000 Original-Received: from localhost ([127.0.0.1]:55365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5cBg-0003Ae-MG for submit@debbugs.gnu.org; Mon, 28 Oct 2024 22:42:28 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5cBd-0003AO-7s for 74040-done@debbugs.gnu.org; Mon, 28 Oct 2024 22:42:26 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 7770880964; Mon, 28 Oct 2024 22:42:18 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1730169737; bh=UCwXBznxfU37GDmBWf8veE9T3BEOya59uG8jesB/ut8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=a9PTwez2hXAgmr/XMgN9FxWGzu3E2MVazZmWBqkkA4d8v0bzpR7Qe4cAefFcG2l0+ QqUJy57K9O6NIo1hIFvVYHx5c9feWjsECZIh7Y1E1IAjnadXUbF/zHN90orQuPC8N+ 2DQ2lEFk7FtYNr5UXsfMYbfBaW9D16qFMTst41d+PBiV0RWURu9c0cXGz4esWdP+4U r2HIylthXDaJdFZHdbjmcCCVugf8oUwwwXdNH6HhA9Yzl02qwizGWW2DQ1m+iTmPzy c7bfngjQM2pHaGv7CU9c11DkR+DaOg9n6E/UUeO0dMwdtC08Rl0NHMxr7IAGngw0mO 5p6EWc8ASltAg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B174480164; Mon, 28 Oct 2024 22:42:17 -0400 (EDT) Original-Received: from pastel (69-196-161-60.dsl.teksavvy.com [69.196.161.60]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 48873120434; Mon, 28 Oct 2024 22:42:17 -0400 (EDT) In-Reply-To: (Stefan Kangas's message of "Sun, 27 Oct 2024 14:24:01 -0700") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294463 Archived-At: > Either patch is fine by me, but having the change more localized is > certainly nice. Agreed. > Do you have any other use case in mind for the new PREFER-NEWER argument > of `locate-file` than `require-with-check`? If not, perhaps we should > avoid making it more complex? In principle, it's nice to be able to reproduce *exactly* the search performed by `load` and `require`, but in practice, I don't have any real use case, no. I pushed the more localized patch (after fixing it so it actually works). Stefan