From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#40099: 28.0.50; [feature/native-comp] Different working dir of .eln files is not expected by pdf-tools Date: Wed, 18 Mar 2020 16:57:49 +0000 Message-ID: References: <87imj3wl0t.fsf@localhost> <871rppx2i1.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="115487"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 40099@debbugs.gnu.org, Ihor Radchenko To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 18 17:58:13 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 1jEc1F-000Tw0-4b for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Mar 2020 17:58:13 +0100 Original-Received: from localhost ([::1]:55824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEc1D-0002tO-S3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Mar 2020 12:58:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51927) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEc16-0002sf-GU for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 12:58:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEc15-0007g4-2V for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 12:58:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35288) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEc13-0007ew-Vv for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 12:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jEc13-00076q-Sd for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 12:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Mar 2020 16:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40099 X-GNU-PR-Package: emacs Original-Received: via spool by 40099-submit@debbugs.gnu.org id=B40099.158455067327313 (code B ref 40099); Wed, 18 Mar 2020 16:58:01 +0000 Original-Received: (at 40099) by debbugs.gnu.org; 18 Mar 2020 16:57:53 +0000 Original-Received: from localhost ([127.0.0.1]:41261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEc0v-00076T-83 for submit@debbugs.gnu.org; Wed, 18 Mar 2020 12:57:53 -0400 Original-Received: from mx.sdf.org ([205.166.94.20]:53039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEc0t-00076J-76 for 40099@debbugs.gnu.org; Wed, 18 Mar 2020 12:57:51 -0400 Original-Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 02IGvnaJ025656 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 18 Mar 2020 16:57:49 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 02IGvnWh000919; Wed, 18 Mar 2020 16:57:49 GMT In-Reply-To: (Stefan Monnier's message of "Wed, 18 Mar 2020 10:27:02 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:177507 Archived-At: Stefan Monnier writes: >> Great I think the problem is clear, pdf-tools is using `load-file-name' >> as a way to obtain `pdf-tools-directory' but this is false assumption >> for the eln folder directory we have arranged. > > Good point, indeed. This problem already exists in theory in some > systems (such as Debian in the past) where byte-compiled files were > placed in a different directory (for the case where several major > versions of Emacs are used, with packages re-compiled separately for > each major version). > > But yes, this will bite much more often. > > We could lie (set `load-file-name` to point to the source file, for > example) or introduce some function to go from the `load-file-name` to > the "intended" origin (something like the name of the source file) and > update all packages to use that function? Right. Thinking about I'd be for lying, effectively and simmetrically we already do that for the `load-path'. The new function in contrast should be adopted by all packages so I see it more problematic. >> Adding Stephane in cc to get an optinion on this. > > I assume that was a typo, I didn't see nay Stephane in the Cc. I see you in Cc here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40099#14 perhaps I did something wrong. Andrea -- akrl@sdf.org