From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#52773: Master and (probably) emacs-28: locate-library hides .eln files. Date: Sat, 25 Dec 2021 11:25:19 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33783"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52773@debbugs.gnu.org, acm@muc.de To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 25 12:26:37 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 1n15C9-0008dV-9y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Dec 2021 12:26:37 +0100 Original-Received: from localhost ([::1]:47502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n15C8-0003vI-0O for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Dec 2021 06:26:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n15Ba-0003lz-J9 for bug-gnu-emacs@gnu.org; Sat, 25 Dec 2021 06:26:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55251) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n15Ba-0001Vz-9K for bug-gnu-emacs@gnu.org; Sat, 25 Dec 2021 06:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n15Ba-0000bV-3N for bug-gnu-emacs@gnu.org; Sat, 25 Dec 2021 06:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Dec 2021 11:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52773 X-GNU-PR-Package: emacs Original-Received: via spool by 52773-submit@debbugs.gnu.org id=B52773.16404315292259 (code B ref 52773); Sat, 25 Dec 2021 11:26:02 +0000 Original-Received: (at 52773) by debbugs.gnu.org; 25 Dec 2021 11:25:29 +0000 Original-Received: from localhost ([127.0.0.1]:38564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n15B3-0000aM-06 for submit@debbugs.gnu.org; Sat, 25 Dec 2021 06:25:29 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:59504 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1n15B0-0000a2-Mr for 52773@debbugs.gnu.org; Sat, 25 Dec 2021 06:25:27 -0500 Original-Received: (qmail 40649 invoked by uid 3782); 25 Dec 2021 11:25:19 -0000 Original-Received: from acm.muc.de (p2e5d51cf.dip0.t-ipconnect.de [46.93.81.207]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 25 Dec 2021 12:25:19 +0100 Original-Received: (qmail 14788 invoked by uid 1000); 25 Dec 2021 11:25:19 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:223094 Archived-At: Hello, Andrea. On Sat, Dec 25, 2021 at 10:43:51 +0000, Andrea Corallo wrote: > Alan Mackenzie 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).