GNU bug report logs - #42940
feature/native-comp; xref-find-definition searches compile location of el files instead of install location

Previous Next

Package: emacs;

Reported by: Tom Gillespie <tgbugs <at> gmail.com>

Date: Wed, 19 Aug 2020 22:23:02 UTC

Severity: normal

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andrea Corallo <akrl <at> sdf.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#42940: closed (feature/native-comp; xref-find-definition
 searches compile location of el files instead of install location)
Date: Fri, 21 Aug 2020 07:45:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 21 Aug 2020 07:44:35 +0000
with message-id <xjfd03k5tp8.fsf <at> sdf.org>
and subject line Re: bug#42940: feature/native-comp; xref-find-definition searches compile location of el files instead of install location
has caused the debbugs.gnu.org bug report #42940,
regarding feature/native-comp; xref-find-definition searches compile location of el files instead of install location
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
42940: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42940
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tom Gillespie <tgbugs <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org, Andrea Corallo <akrl <at> sdf.org>
Subject: feature/native-comp; xref-find-definition searches compile location
 of el files instead of install location
Date: Wed, 19 Aug 2020 15:22:22 -0700
Hi Andrea,
    On feature/native-comp at 8a931a97b8dd19a38d6f719f810280a07ba76438
I am unable to use xref-find-definition to resolve a large subset of functions
including shell-command. This was not an issue at
9f01ce6327af886f26399924a9aadf16cdd4fd9f and is not an issue on master at
a566e409d0d962d3c2870691175836da22c31111. Repro is below and the messages
point to the cause being that xref-find-definitions is now looking in
the location where
the el files were during compilation instead of where they have been
installed. This
will cause problems for anyone distributing emacs in addition to distros where
compilation is sandboxed. To reproduce it on your end I suspect that
you will need
to use a different compile and install location for the el files. Best!
Tom

Repro:
emacs -q -batch --no-site-file --eval "(xref-find-definitions 'shell-command)"
Stdout:
No library /var/tmp/portage/app-editors/emacs-28.0.9999-r1/work/emacs/lisp/simple.el
in search path
No definitions found for: shell-command


[Message part 3 (message/rfc822, inline)]
From: Andrea Corallo <akrl <at> sdf.org>
To: Tom Gillespie <tgbugs <at> gmail.com>
Cc: 42940-done <at> debbugs.gnu.org, "Andrea Corallo via Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
Subject: Re: bug#42940: feature/native-comp;
 xref-find-definition searches compile location of el files instead of
 install location
Date: Fri, 21 Aug 2020 07:44:35 +0000
Tom Gillespie <tgbugs <at> gmail.com> writes:

> This is fixed at c818c29771d3cb51875643b2f6c894073e429dd2 for me so it
> looks like that reversion did the trick. Thanks!

Thank you for reporting that!  Closing

  Andrea

-- 
akrl <at> sdf.org


This bug report was last modified 4 years and 268 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.