From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#74040: `require-with-check` signals error for `project` Date: Sun, 27 Oct 2024 14:24:01 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4389"; mail-complaints-to="usenet@ciao.gmane.io" To: Stefan Monnier , 74040@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 27 22:25:58 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 1t5Alq-00010c-BT for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Oct 2024 22:25:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5AlQ-0000bX-S6; Sun, 27 Oct 2024 17:25:32 -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 1t5AlL-0000b3-55 for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 17:25:27 -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 1t5AlK-0000Nq-T3 for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 17:25:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=p4o1xgZ/7r7uD9mgAYL49L414uD5xRHXsZ2rsQvHejI=; b=BCtgMYcM9smDep11MSeXG58XeUAt0kfONmjbmX7x4D8AGuzBj8TUWYYPDBD3sLToM9aPobBaRLDKDisdpHg6S5oTPtkQpN9LbnUPN1DCL98A6VIDM5ve6wzy9mUWuxlJzEL9kgHpx3W+V3oSpfWH8zg+jbXUwc9md96KAiHSCZhRwsbWmE+vcVdwnm+L+7fs43HwNryGboo+7SfKBABcQ29QqGgxHjaU318S8xvBpFkc99uAgYdOhr/ajrofKtpTc3PIbz9jLkSkoM9KiUZXWbSxKzdToWNSnNh6XoeBMCbDSqDMAbC/thfQ65gBwtZteqLATgFymmSWxYxTZ31itw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5Alt-0003e4-Nh for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2024 17:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Oct 2024 21:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74040 X-GNU-PR-Package: emacs Original-Received: via spool by 74040-submit@debbugs.gnu.org id=B74040.173006434213626 (code B ref 74040); Sun, 27 Oct 2024 21:26:01 +0000 Original-Received: (at 74040) by debbugs.gnu.org; 27 Oct 2024 21:25:42 +0000 Original-Received: from localhost ([127.0.0.1]:46581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5Ala-0003Xh-BL for submit@debbugs.gnu.org; Sun, 27 Oct 2024 17:25:42 -0400 Original-Received: from mail-ed1-f48.google.com ([209.85.208.48]:47587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5AlX-0003XV-6B for 74040@debbugs.gnu.org; Sun, 27 Oct 2024 17:25:40 -0400 Original-Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5cb72918bddso4817302a12.3 for <74040@debbugs.gnu.org>; Sun, 27 Oct 2024 14:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730064243; x=1730669043; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=p4o1xgZ/7r7uD9mgAYL49L414uD5xRHXsZ2rsQvHejI=; b=Owf8Sd0lR9P7ZA9wKy6EdrZIZkaXw6a69AX/c+NI1VLLQt5Nrv+Oyipg7lkr3d1WN2 iDLCKjhia5iD790NarD23VFywxmO+BQyhryL7sev4LkbOjiaY24AvCjhxKhWdQqf7Z1H LIqN/nE5OmtVt9sidObms/tBvr6gE5egdFaca5RHcPpMJPaybRcSfQpNngIVP2mHFAY8 pwk3086kSAFTC0eIDWJWVW54O0z3dcgxJSapdFRQgnKVRdlVKTMSqzfSYNbcTRkNp++2 f8sCE3YtuQ5PlWUod2ZTAyGEPuwHREIS3Cx0aBaUg1Rk23sGpHNasIxAWg6K0VxEXf8j TE5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730064243; x=1730669043; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=p4o1xgZ/7r7uD9mgAYL49L414uD5xRHXsZ2rsQvHejI=; b=LVilTzzbek5asFTU6esDPTDTPgM7ItVjtAqEeJyHDkNiDG7ajMa516Qs/3Iqa1cQuk a4zWdya8DoVFpzcSxSXKyIZMQYyaiK95NN14BjBTOkacmsQxtQpm5jgcCQAD9NQMq5+G /OWHlfgLpALIyVMwrBBrwbFQ4swqMgoAfWpRAdnl46OA+qdDluwDb72aFxmF2mrf5yrm IIrvu1TOLWuR1NwLMfD3kBKFWSup8Mhg9J75ovgtCUEjtGa0FvHxTMOgffUg3W5JbOaC JJ+6PXb5ImbmJmcc6ksBq2kwUpSnIPYU0TYSsg/l0dpk5tXDdrTIPGIqLK+bWb2aAhl2 tecA== X-Forwarded-Encrypted: i=1; AJvYcCVcNgv5NRV3SWvPO2wFW9c57peIx0mkxhEjlNfWCu1M1p4rjCkxZq32ixweu8BA2ykKwzblGA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzMVfpcyddT5NBAM8Y4aM/Ejq6ZfKBGODB3gcU93TAf3CfEPm7X ndF3zaPUs1K5/xga3Ce1snd/Pft8Ebx5Hl5V/urO4GSsAsYBNmkVC+cn6PW9NvAOIq5lCVtQGt3 SFndEMaFN/yxkebjO1L1NJo4YuEOJFQ== X-Google-Smtp-Source: AGHT+IGc7AtwkvLAbbkpBYqzMuQC+yobYhyOqjnbLHJBrDfeFCR26L171G2wnFXJMN9wambMPz6xstvKKUitnEVBLeQ= X-Received: by 2002:a05:6402:40cf:b0:5cb:6158:cae9 with SMTP id 4fb4d7f45d1cf-5cbbf8863b8mr4291466a12.6.1730064242666; Sun, 27 Oct 2024 14:24:02 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 27 Oct 2024 14:24:01 -0700 In-Reply-To: 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:294394 Archived-At: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: >> One approach is to expose the `prefer` option of `openp` to >> `locate-file` so we can use it in `require-with-check`, as in the >> patch below. > > Another is to replace the `assoc` check with one that is more lenient, > ignoring difference in file extensions. E.g. the patch below. > This makes the change more localized, at the cost of making > `require-with-check` slower and less strict. Either patch is fine by me, but having the change more localized is certainly nice. 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?