GNU bug report logs - #52773
Master and (probably) emacs-28: locate-library hides .eln files.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Fri, 24 Dec 2021 11:23:02 UTC

Severity: normal

Full log


Message #20 received at 52773 <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <akrl <at> sdf.org>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 52773 <at> debbugs.gnu.org
Subject: Re: bug#52773: Master and (probably) emacs-28: locate-library hides
 .eln files.
Date: Sat, 25 Dec 2021 10:43:51 +0000
Alan Mackenzie <acm <at> muc.de> writes:

[...]

>> Hi Alan,
>
>> The trouble in this area is that `locate-library' might be used by
>> existing programs to obtain the source file (.elc files are tipically in
>> the same directory where the corresponding .el are).
>
> Are you saying that programs obtain the path of the .elc file, then
> expect to get the source file by removing the "c" at the end?

Precisely.

Despite what the docstring says we have to deal with the existing
software on the field.  IIRC at the time after a number of bug reports
was deemed that minimizing incompatibilities and making the
native-compiler as much transparent as possible was priority.

One option would be to update the docstring and add a second function to
return the true value similarly to what we did with
`load-true-file-name'.

The other option is of course what you've suggested.

Thanks!

  Andrea




This bug report was last modified 3 years and 173 days ago.

Previous Next


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