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.bugs Subject: bug#47987: 28.0.50; [native-comp] Can't compile ELN if EL and ELC reside in different directories Date: Tue, 27 Apr 2021 20:41:01 +0300 Message-ID: <83sg3bhbgy.fsf@gnu.org> References: <87im4ci1fw.fsf@fastmail.fm> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15290"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47987@debbugs.gnu.org, tsdh@gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 27 19:53:54 2021 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 1lbRuE-0003tA-Jy for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 19:53:54 +0200 Original-Received: from localhost ([::1]:60182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbRuD-00075Y-Kz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 13:53:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbRik-0006uc-9t for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 13:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39272) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbRij-0006nr-Vb for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 13:42:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbRij-00032a-RE for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 13:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Apr 2021 17:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47987 X-GNU-PR-Package: emacs Original-Received: via spool by 47987-submit@debbugs.gnu.org id=B47987.161954528411639 (code B ref 47987); Tue, 27 Apr 2021 17:42:01 +0000 Original-Received: (at 47987) by debbugs.gnu.org; 27 Apr 2021 17:41:24 +0000 Original-Received: from localhost ([127.0.0.1]:50818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbRi8-00031f-4e for submit@debbugs.gnu.org; Tue, 27 Apr 2021 13:41:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbRi5-00031R-KS for 47987@debbugs.gnu.org; Tue, 27 Apr 2021 13:41:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55271) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbRi0-0006Nw-4k; Tue, 27 Apr 2021 13:41:16 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1895 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lbRhx-0004xw-RB; Tue, 27 Apr 2021 13:41:14 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) 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" Xref: news.gmane.io gmane.emacs.bugs:205039 Archived-At: > Cc: 47987@debbugs.gnu.org > Date: Tue, 27 Apr 2021 17:00:28 +0000 > From: Andrea Corallo via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > The trouble is that given the bytecode being loaded Emacs needs to find > the source file, both to native compile it (if necessary) both to hash > it in order to the locate the correct .eln file to load. > > Now given the .elc file removing the final 'c' was the simple algo > applied for this scope :) But is this is not sufficient we have to > either provide a more sophisticate mechanism so that a package can > register a new mapping or either disable eln load for some package. We can either (a) look in all the directories in load-path, if the .el file is not found in the same directory as the .elc; or (b) add a new variable a-la load-path that is only searched if the current look up fails. I prefer the former, unless it has some downsides.