From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier 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 10:27:02 -0400 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="49851"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 40099@debbugs.gnu.org, Ihor Radchenko To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 18 15:28: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 1jEZg4-000CqU-Tc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Mar 2020 15:28:12 +0100 Original-Received: from localhost ([::1]:51364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEZg3-0001d1-Vc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Mar 2020 10:28:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55957) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEZfv-0001a5-Mq for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 10:28:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEZfu-0003O1-Kz for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 10:28:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35016) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEZfu-0003Nm-FF for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 10:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jEZfu-0003Qh-At for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 10:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Mar 2020 14:28:02 +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.158454164013136 (code B ref 40099); Wed, 18 Mar 2020 14:28:02 +0000 Original-Received: (at 40099) by debbugs.gnu.org; 18 Mar 2020 14:27:20 +0000 Original-Received: from localhost ([127.0.0.1]:40989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEZfD-0003Po-O1 for submit@debbugs.gnu.org; Wed, 18 Mar 2020 10:27:19 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:42292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEZfB-0003Pa-Kk for 40099@debbugs.gnu.org; Wed, 18 Mar 2020 10:27:18 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CB1A481085; Wed, 18 Mar 2020 10:27:11 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 291B980E02; Wed, 18 Mar 2020 10:27:03 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1584541623; bh=O01T6E2641FCg9CqWmPY8cOIVJFt4Ahf6GQjIb9d6MQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bUmHHEWHxik/kfs2AvQyxwxIPQTlVwP01+yBTJ3EqrNOQexm64p3rUzhwLaK508p0 11pcKr0RHzbDczwaqszSpVVbEdI9B0jP414A8nppssoG7OwwuoAVzTQSlsrz2JNx28 XKs8wP4tUlvQ6a+ViHZqb4xf8qFf5L5o2sH+9HjMejWc78HbUuAssDWA+WfD0JwC3f wyeE7k6BTxVLJTEXViuNEZYW1K/leCSKdInqJJMWQ83PVDyeVdKBEuKcfD81peW8W0 wZ8WSFzaQYfGrkvvTcnVhf+g0/mf6Prx26AbZwATgemGPtTfwlpGO0gB4Oa+Whao1c h5D7jbloMQHmA== Original-Received: from alfajor (unknown [104.247.241.114]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E8E7C12053C; Wed, 18 Mar 2020 10:27:02 -0400 (EDT) In-Reply-To: (Andrea Corallo's message of "Wed, 18 Mar 2020 12:59:34 +0000") 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:177494 Archived-At: > 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? > 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. Stefan