From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tom Gillespie Newsgroups: gmane.emacs.bugs Subject: bug#42940: feature/native-comp; xref-find-definition searches compile location of el files instead of install location Date: Sat, 22 Aug 2020 16:46:54 -0700 Message-ID: References: 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="19695"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42940@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 23 01:48:11 2020 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 1k9dF4-00053m-Ro for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Aug 2020 01:48:10 +0200 Original-Received: from localhost ([::1]:36120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9dF3-0007l3-Ss for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Aug 2020 19:48:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9dEw-0007kl-O3 for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 19:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40184) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9dEw-0000EN-Ei for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 19:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k9dEw-000679-Ag for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 19:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tom Gillespie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Aug 2020 23:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42940 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: 42940@debbugs.gnu.org, "Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors" Original-Received: via spool by submit@debbugs.gnu.org id=B.159814003123427 (code B ref -1); Sat, 22 Aug 2020 23:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Aug 2020 23:47:11 +0000 Original-Received: from localhost ([127.0.0.1]:51727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9dE6-00065l-JJ for submit@debbugs.gnu.org; Sat, 22 Aug 2020 19:47:10 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9dE5-00065e-AZ for submit@debbugs.gnu.org; Sat, 22 Aug 2020 19:47:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9dE5-0007h0-2m for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 19:47:09 -0400 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:39851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9dE3-0000CE-GA for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 19:47:08 -0400 Original-Received: by mail-wm1-x334.google.com with SMTP id g75so5041285wme.4 for ; Sat, 22 Aug 2020 16:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=3R0hybEGvq4horelp7YsHTTPN1Z4E3Z3tErxHRCqluk=; b=ZGsKnweqg+A9adoObYmOnGyDUFlBtuTFsedVX74wMz32DjWRw5jZp5VPwUpllogvxc P07fI84fDgjAuZRvYKHRcPy06KeggilW8cQyYrYJ9qMPGsFYys8QNc1rDUlQJeizwHVN RIJUJrWdOLauhASV3iDEPr7AcQV1QtxohdevwYzeNfug4ocZD7gYTvLzR3JFzhHEr4wd hP7w0huDoJ9WMlYmV7g8YGcx2CxhES8SjIfDjf2ovrW1TLfHIFVVs2LCkKrjmJ6/RI9c zxHL1p1qKYxBxCGMDpsFO5865mS6vbkaNNwIndNUighQ6z5N91czLqSEBLf7r5Jv5fMq RMQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=3R0hybEGvq4horelp7YsHTTPN1Z4E3Z3tErxHRCqluk=; b=XCVe//+ofM+/qzA80ithCLY1v6MWw70nt0kOBQXa9/l5/KSZRv+A/DFxk8v2Hi5txr 5YZzq3er0XrBo3mLkL+5EEf+9EiGuJQZXCbWGPSktLllM+iJnOQKa6Y1MZ09LAhyFf4T 9j3kl/nL2lUlaFxrznm4czac4dsYKVWMlx0Kzci1FUypc2G+MFHOLjEneEA/OhWnwvhM VEQ3mFxTK+lZWcPs6fi7G9W9P2ilX2QipYejyHAwemmIY+awChJ+HDKVFgd+RMjMBBmx YirfL1BrZFxcoOKJ2lpz5Grn97gelw36+MEeTGGEkQC/awMBTQc7ZzFrMNeXMcC5/SEj x7/A== X-Gm-Message-State: AOAM533dlSpqM4AngzCFNe7Fup7f1VjBgM6geZKqDA26Mf7+U6NE5Zlt 3hlPpAy82g9tVTMKDf/5kYB7iPUCiTEeJSibKuA= X-Google-Smtp-Source: ABdhPJxdW8Uc76s4Gqa89xJcVMUUibs4QPDd/KcDwRXh6o783Jzxg9rWIjtzHa4K5H4OocHCmEOmm5k+8BeJGTSUfmg= X-Received: by 2002:a1c:56d7:: with SMTP id k206mr356517wmb.75.1598140025869; Sat, 22 Aug 2020 16:47:05 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=tgbugs@gmail.com; helo=mail-wm1-x334.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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" Xref: news.gmane.io gmane.emacs.bugs:186011 Archived-At: Here is another test case. emacs -q -batch --no-site-file --eval "(xref-find-definitions 'defun)" No library /var/tmp/portage/app-editors/emacs-28.0.9999-r1/work/emacs/lisp/= emacs-lisp/byte-run.el in search path No definitions found for: defun emacs -q -batch --no-site-file --eval "(require 'byte-run)" --eval "(xref-find-definitions 'defun)" Loading file /usr/libexec/emacs/28.0.50/x86_64-pc-linux-gnu/eln-cache/x86_6= 4-pc-linux-gnu-bbae9d63d1309894/byte-run-1e5facaeb87321037982c815be905e28ea= f4253c367238bb2eff9b4286620542.eln failed to provide feature =E2=80=98byte-run=E2=80=99 On Sat, Aug 22, 2020 at 2:53 PM Tom Gillespie wrote: > > It seems that the problem was only partially fixed at > c818c29771d3cb51875643b2f6c894073e429dd2. > > emacs -q -batch --no-site-file --eval "(xref-find-definitions > 'shell-command)" succeeds whereas > > emacs -q -batch --no-site-file --eval "(xref-find-definitions 'looking-at= -p)" > No library /var/tmp/portage/app-editors/emacs-28.0.9999-r1/work/emacs/lis= p/subr.el > in search path > No definitions found for: looking-at-p > > A wrinkle is that the following succeeds when I explicitly require > 'subr, but produces another warning which seems like it > might be related to why 'looking-at-p is not found without explicitly > requiring 'subr. > emacs -q -batch --no-site-file --eval "(require 'subr)" --eval > "(xref-find-definitions 'looking-at-p)" > Loading file /usr/libexec/emacs/28.0.50/x86_64-pc-linux-gnu/eln-cache/x86= _64-pc-linux-gnu-bbae9d63d1309894/subr-8e7058db29bf20a68ef89651c940f16d2e50= 87b6bf685b48ddeb1de1dcd6ad02.eln > failed to provide feature =E2=80=98subr=E2=80=99 > > On Fri, Aug 21, 2020 at 12:44 AM Andrea Corallo wrote: > > > > Tom Gillespie writes: > > > > > This is fixed at c818c29771d3cb51875643b2f6c894073e429dd2 for me so i= t > > > looks like that reversion did the trick. Thanks! > > > > Thank you for reporting that! Closing > > > > Andrea > > > > -- > > akrl@sdf.org