From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ihor Radchenko 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, 08 Apr 2020 23:48:37 +0800 Message-ID: <87sghet1uy.fsf@localhost> 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="32187"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40099@debbugs.gnu.org To: Stefan Monnier , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 08 17:53:53 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 1jMD1U-0008Ci-IF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Apr 2020 17:53:52 +0200 Original-Received: from localhost ([::1]:37894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMD1S-0002qi-LU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Apr 2020 11:53:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36959) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMD0o-0002NL-HO for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 11:53:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMD0g-0005LZ-EE for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 11:53:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41285) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jMD0g-0005LO-Aj for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 11:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jMD0g-0001TA-8D for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 11:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Apr 2020 15:53: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.15863611495609 (code B ref 40099); Wed, 08 Apr 2020 15:53:02 +0000 Original-Received: (at 40099) by debbugs.gnu.org; 8 Apr 2020 15:52:29 +0000 Original-Received: from localhost ([127.0.0.1]:52831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMD09-0001SO-CP for submit@debbugs.gnu.org; Wed, 08 Apr 2020 11:52:29 -0400 Original-Received: from mail-pf1-f169.google.com ([209.85.210.169]:36773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMD06-0001SB-LI for 40099@debbugs.gnu.org; Wed, 08 Apr 2020 11:52:27 -0400 Original-Received: by mail-pf1-f169.google.com with SMTP id n10so2595928pff.3 for <40099@debbugs.gnu.org>; Wed, 08 Apr 2020 08:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=77HYikaBN5JqwUjJ5chQRk8GXEhtcDWHQDIn+aUuMfE=; b=Vb9MPSmOLowTeWr6dGXUgXytNr8rpkQL4abOyOYpKjF3FTSkZXCT/wAOTuIY0BKgi1 2Ti3MTuTsYPJpH86XsQfQrCfRnsJURcT1OR9uCVnpmpuwMKRZ8mEAn8hQVanmWw2o8U4 6BlxE4YW+zSSgMpQ3hxdCUWQ/hd2Nh2AlfcNdV+9w7pelsuCu98ilrN4IU/xFI1XvUjM wV1VyN9gzLrxVJTNQ+xElnh/4q18GLpOhI7yppdFer6lm+POBbB5x4aZ6ZjEnIJfRfcw hARKcNy2JydrGkmpR/32FIkV4vK4fF5T9Uid0eW0Z5r43Jzgw/L2dC6mVhcXBjB/cZp1 umMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=77HYikaBN5JqwUjJ5chQRk8GXEhtcDWHQDIn+aUuMfE=; b=kHZ0PzpIKe5qUqozvoltX6a+WX78uInYu7+CFr3lzxyZoDQ/+8Z09ZkgM0vGqq8HJ6 gazwApoQ3Q+qPvCS0UCMphVuOYw1mLS9mOMWsEEktMqAIQDKtP0p2S32JcS9Ue2qf7wR eGHKYYr4uK2F1QwpRkI+1Iceff1yf+AD7ytJVQiPdp5ND/z/X2/8dXmgmGNE7mI9ZX5+ 3zhPyAgXUfWOIkEJtlFuAxCZt53eQCO9zn4jWzqqbJBYuHHen8O2CPpWDM4/VDuYWeXE peLyXMmOzzq8T4W6kRgBUS9N1aqLL3gUTdOgixC1JVuO5KkKy1dnxI0CoGi9CvkKOdM7 6d8Q== X-Gm-Message-State: AGi0PuYQfxtD1Kt6Evl7KS11xCT1zB7zJwcI+BF9G2XIC5DWtDE3JaLi PqPaAQRCPtf0K8m6WVPM0OU= X-Google-Smtp-Source: APiQypLNf2pMiaRUC/PE4z9BwN52mVSPb7EgrvPtUQD16R8sIRj6WZE4hFJ+EOMI0ODpUhemJ8tx5A== X-Received: by 2002:a63:ee0b:: with SMTP id e11mr7822690pgi.80.1586361140779; Wed, 08 Apr 2020 08:52:20 -0700 (PDT) Original-Received: from localhost ([101.99.64.65]) by smtp.gmail.com with ESMTPSA id a13sm1938854pjq.0.2020.04.08.08.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 08:52:20 -0700 (PDT) In-Reply-To: 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:178144 Archived-At: > 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? Is it even possible for a package to get the source file location without relying on load-file-name pointing to the same folder with the source file? I mean using the currently available Emacs functionality. Best, Ihor 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? > >> 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 > -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg