From: Alan Mackenzie <acm@muc.de>
To: Andrea Corallo <akrl@sdf.org>
Cc: 52773@debbugs.gnu.org, acm@muc.de
Subject: bug#52773: Master and (probably) emacs-28: locate-library hides .eln files.
Date: Sat, 25 Dec 2021 11:25:19 +0000 [thread overview]
Message-ID: <Ycb/n4XOpb4Hy9/p@ACM> (raw)
In-Reply-To: <xjfo85555i0.fsf@ma.sdf.org>
Hello, Andrea.
On Sat, Dec 25, 2021 at 10:43:51 +0000, Andrea Corallo wrote:
> Alan Mackenzie <acm@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.
Another option would be to print the true library name when
INTERACTIVE-CALL (an argument) is non-nil. Or we could add yet another
&optional argument.
The doc string needs fixing whatever we do, I think.
None of this feels very satisfactory, but Emacs is nearly 50 years old.
;-)
> Thanks!
> Andrea
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2021-12-25 11:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-24 11:22 bug#52773: Master and (probably) emacs-28: locate-library hides .eln files Alan Mackenzie
2021-12-24 12:00 ` Eli Zaretskii
2021-12-24 12:09 ` Lars Ingebrigtsen
2021-12-24 13:18 ` Andrea Corallo
2021-12-24 21:03 ` Alan Mackenzie
2021-12-25 10:43 ` Andrea Corallo
2021-12-25 11:25 ` Alan Mackenzie [this message]
2021-12-25 11:46 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Ycb/n4XOpb4Hy9/p@ACM \
--to=acm@muc.de \
--cc=52773@debbugs.gnu.org \
--cc=akrl@sdf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.