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: Sat, 26 Oct 2024 23:15:01 -0400 Message-ID: Reply-To: Stefan Monnier 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="34438"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca To: 74040@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 27 04:15:54 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 1t4tkw-0008nJ-Bw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Oct 2024 04:15:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4tka-00033G-5H; Sat, 26 Oct 2024 23:15: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 1t4tkY-000332-05 for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2024 23:15:30 -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 1t4tkX-0003vI-Km for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2024 23:15:29 -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:From:To:Subject; bh=7Qs/KDUzJNOrwZrNDLAb5Fb13fI/0SoWt7v0g4HgnSE=; b=edWjY3QH8eOt7wDjszg90Vj6Bktz/ajcTX9UF8/1Eh3lgx96ysC8FKf2hAiV6e9sm2rVV3mH1SPKy4KR2UY2MBXZ1w+dTTwns+B5EAdsfNDwvpr8OsYm4+dy5GjWE9NoFRGbC9uz4xoepjh7ILBzhfDnUAhFU0mU/86Esr0cPgGkeruVxssjDm+Uubay2TqIxrWbDV3BycC8bKOHVV1BU6Aw8iYNtO7KQB3aalhHuH3quho8as3lyh99l2PzRVmpEKYYUnIPDnDPpYSD9YSVZub1yiIuwgG+4o5VV9K2q+Q0Bh9HCa17BsTPp1IAr6DSy0tc8T0Rnzsegk2CUIqf+A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t4tl4-0002bd-KU; Sat, 26 Oct 2024 23:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: monnier@iro.umontreal.ca, bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Oct 2024 03:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74040 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: monnier@iro.umontreal.ca Original-Received: via spool by submit@debbugs.gnu.org id=B.17299989469990 (code B ref -1); Sun, 27 Oct 2024 03:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Oct 2024 03:15:46 +0000 Original-Received: from localhost ([127.0.0.1]:43417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4tkn-0002b4-Kl for submit@debbugs.gnu.org; Sat, 26 Oct 2024 23:15:45 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4tkl-0002ZB-AX for submit@debbugs.gnu.org; Sat, 26 Oct 2024 23:15:44 -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 1t4tkC-0002zh-Lh for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2024 23:15:08 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t4tkA-0003pZ-Ja for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2024 23:15:08 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C98CB4441A4 for ; Sat, 26 Oct 2024 23:15:03 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1729998902; bh=mtN1BTWKpqoaTmp7LBch/LOtwPoOEBQHdOvu6UNdFt8=; h=From:To:Subject:Date:From; b=KjM//ynlBZPyJ6bMvXNr9R69CbJoAtEJ0dP5/wNwoKW/+hkUTY3OHmoCd7SFl4fhp 55Kxtj4X3ifc+DdS+VQSm998URJdn6Ak91s/wpFfZT0LAkYUTkMYFegGtD9AQLGjxk TWIfGqC0xXELeFLM4wnOC9i2VtwfK3gifkl/klsi86JryF0ohpIYGrXcYRSbkkms54 FcFK+UmOWGicTcL0QE6k4CJQ4/WyadpOShHYTrVzGKHXqfLy0j5XHCR3Vf1jRx9ix5 eHKqx5lcwezSFu1EkF0JkkPGLfurqdvfK2Vck2nld3ZhBEWlZgxFkfmPlYzps+U7Pq EgsRU7i8fcYDA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 900F6444184 for ; Sat, 26 Oct 2024 23:15:02 -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 71282120406 for ; Sat, 26 Oct 2024 23:15:02 -0400 (EDT) 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294303 Archived-At: Package: Emacs Version: 30.0.50 1. Customize `load-prefer-newer` to t. 2. Edit project.el in-tree, save it, don't recompile Emacs. 3. Restart Emacs. 4. Visit some code file and try to launch `M-x eglot` there. You should get an error along the lines of: require-with-check: Feature =E2=80=98project=E2=80=99 loaded from ".../lisp/progmodes/project.el" is now provided by ".../lisp/progmodes/project.elc" This error is spurious. AFAICT, it is due to the fact that `require-with-check` uses `locate-file` to "guess" which file `load` would use, but `locate-file` doesn't obey `load-prefer-newer`, so it guesses wrong. Stefan