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: Thu, 09 Apr 2020 02:54:10 +0800 Message-ID: <87mu7lu7u5.fsf@localhost> References: <87imj3wl0t.fsf@localhost> <871rppx2i1.fsf@localhost> <87sghet1uy.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="63796"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40099@debbugs.gnu.org, Stefan Monnier To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 08 20:59:12 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 1jMFuq-000GTd-9M for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Apr 2020 20:59:12 +0200 Original-Received: from localhost ([::1]:39670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMFup-0005e2-2s for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Apr 2020 14:59:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60361) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMFui-0005dk-7R for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 14:59:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMFug-0001b8-7x for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 14:59:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41364) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jMFug-0001av-4q for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 14:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jMFug-0006KL-3H for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 14:59: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 18:59: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.158637228924254 (code B ref 40099); Wed, 08 Apr 2020 18:59:02 +0000 Original-Received: (at 40099) by debbugs.gnu.org; 8 Apr 2020 18:58:09 +0000 Original-Received: from localhost ([127.0.0.1]:52910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMFti-0006Is-1m for submit@debbugs.gnu.org; Wed, 08 Apr 2020 14:58:08 -0400 Original-Received: from mail-pf1-f176.google.com ([209.85.210.176]:45655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMFtf-0006IW-H8 for 40099@debbugs.gnu.org; Wed, 08 Apr 2020 14:58:00 -0400 Original-Received: by mail-pf1-f176.google.com with SMTP id r14so2825533pfl.12 for <40099@debbugs.gnu.org>; Wed, 08 Apr 2020 11:57:59 -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=jrCDbXNynPoXjmSXLKeNOqx6VFiedGyxYUwcV+2vvjo=; b=Vq/xtJ0lkdKqClnmZrGmblvD4zFjrW2OMqqmkOGhKGaLmeqgyzUGZqJ9YIe8MVuk8W 3U+Kmgs6/HAbNr/zDyS1wmOiVmSZGqjFgSGeHdSPljPypMOazsD0oR2L6k+vdSroppyx F1fWevkHy4fFiljH+2DaSnZG7fIWeYrkWBNxoBnkDE3QelP1kNpRODoWvXI1Pbo6aun5 kGk8czCojeXk0weMVY8bN51N02pOJG2eixuoH450QfArgtasV1XA3dq1KDhAGi41D66W 0UXKcokBOkZOVl4heUNu+ap3x/T8qvaWOSNY6KypD/octZmYPXhU6RYT+y266gV5KFJr evDg== 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=jrCDbXNynPoXjmSXLKeNOqx6VFiedGyxYUwcV+2vvjo=; b=uf+idvhD9JKyTguSzC0MDysXFHbvVeYxdinCdX+If6uED6ZCgm6zOIFuIZZIjVRUfa /fvZB+JweM1f1OHbbTeM6JwiS4LnXUT/euENFsnb4zcEdkJyVjsa2Sr4gstOTU/xzkKx 9F+5fVdfiP1Z2khUK5Am5v7mQs4sblOJJLZyPmY1r1brNV/sO8NNaIxweBuRih4XMYlT bPqrJVe3FHNR1CqbKdIKzjZyGWGrsIjWDwCaHwkiG8E2U/3N0iw6/NXKF+n31h1ykrRP us6dCZtPI40OPGnzpbUl2Vzc5bZtLRNhoOdnujtjObGHckDJsg9zZ72vbUiYqOTIZ5Ix G+Sg== X-Gm-Message-State: AGi0PuZilmJbxqjxnTq8XOzOvtZ6HtTHya0ZdzD4UrlRjZXtT68Ig5IZ +VAnxEL3+YC4OxT4Nw6zDUg= X-Google-Smtp-Source: APiQypLEx25xZ8aNvZ46HBGoeqPqiYfZAzlMcRLG1TTF8S2p21m3z+QXhFHXkPyMe5PETaty1VqWFA== X-Received: by 2002:a63:101c:: with SMTP id f28mr7936298pgl.409.1586372273519; Wed, 08 Apr 2020 11:57:53 -0700 (PDT) Original-Received: from localhost ([45.35.9.245]) by smtp.gmail.com with ESMTPSA id d22sm5808754pgh.11.2020.04.08.11.57.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 11:57:52 -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:178147 Archived-At: Hi Andrea, > Which is the "Emacs functionality to do that"? Is there any other way > that is not using `load-file-name`? Yes, I meant to ask about a way to find source file location without using `load-file-name`. Best, Ihor Andrea Corallo writes: > Ihor Radchenko writes: > >>> 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 > > Hi Ihor, > > Which is the "Emacs functionality to do that"? Is there any other way > that is not using `load-file-name`? > > Andrea > > -- > akrl@sdf.org -- 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