From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Mauger Newsgroups: gmane.emacs.devel Subject: Expansion of #$ in byte-compiled files Date: Thu, 3 Sep 2015 19:53:27 +0000 (UTC) Message-ID: <1668732705.1162011.1441310007202.JavaMail.yahoo@mail.yahoo.com> Reply-To: Michael Mauger NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1441310062 30059 80.91.229.3 (3 Sep 2015 19:54:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2015 19:54:22 +0000 (UTC) To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 03 21:54:08 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZXaaB-0005eY-AY for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2015 21:54:03 +0200 Original-Received: from localhost ([::1]:51476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXaaA-0007ht-4e for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2015 15:54:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXaZg-00079J-BI for emacs-devel@gnu.org; Thu, 03 Sep 2015 15:53:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXaZd-0004JU-5H for emacs-devel@gnu.org; Thu, 03 Sep 2015 15:53:32 -0400 Original-Received: from nm5-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.150]:43708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXaZc-0004JG-NG for emacs-devel@gnu.org; Thu, 03 Sep 2015 15:53:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1441310008; bh=10Bh8FIVXlI1MKzQVNAGuMC2h1pAipPjDGRrAKthOzo=; h=Date:From:Reply-To:To:Subject:From:Subject; b=KhwwPDeUOI7WrUkMgL6ZlseLqcYk0oPq1g5pOfHuGTTdthvnojRQG1xC9sTAyEDAlIEADB6fHiLe+nfiO9fhDwS5ZVfxXwYqKwb25wD64dswXv7VDQ9USQQ0DTmDeEMEXqpui0kVkD5cSS9ZxbDw/5RGX81Uf/5Pb+GICZTvNERG7x2hM6O+lnlU47jDCiCDuikrhaujl3Wjzae3yBqw5qjiQ54Zg9T11EhuJuRb234X2PyASL/oF/0ll5CRnfdfdrUv9IvFhyz4c9UKBhNaklPLErlNBxlKh9wWVLTdUcVggRg1rHc9QpQxeHGYKjQToHriji8eFtC15BtnXtQfOg== Original-Received: from [66.196.81.172] by nm5.bullet.mail.bf1.yahoo.com with NNFMP; 03 Sep 2015 19:53:28 -0000 Original-Received: from [98.139.212.223] by tm18.bullet.mail.bf1.yahoo.com with NNFMP; 03 Sep 2015 19:53:27 -0000 Original-Received: from [127.0.0.1] by omp1032.mail.bf1.yahoo.com with NNFMP; 03 Sep 2015 19:53:27 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 972899.51617.bm@omp1032.mail.bf1.yahoo.com X-YMail-OSG: GsUbng8VM1mmLYV59mCn6zo1WShzuEhHmlVeAKLwzM51sHmv_wME0x7atTAM8C2 gk_RUi8r4EaRWLZ.OtKCxw.goSTE3Bw4uk9yXNOiAuAcGlS.PL7ZWxcIkNZWunaIJASpWDkP2IeA 1x69JrLbf8xMbKnCi.Dk2iz7BjmbCR_jqSnxe8axnxcy17ibBYSuatNJxFNrkT0b3zGqG4qV4h1R h.tBIeh_npZN5__gUnZknggcisXXnWDp7.a8yiz5gXsiGRRpoBtPUryIJ0i9NI1N3T_REO1q2eer uGTaChZ6QVYQEpSsXYoG7n3rvcw2V5uS7.5..F0wSwgoNwypVvt7FntGjzjRoii3nv7agSM6iS4k cMjiji.t.yd4NLIDtQY9frNH1TpTv.NwGviDGY60wmc7rVWhXK5c.Jj_jJGpVURWqgSyh96aE1T5 zDb4VDMplu8azkghIdvqRv2ne7FbHgcm4jueNJpI1PyO2KSyaMbaxogs54Uc2bI5ciuPO3rJb1J6 CGA-- Original-Received: by 76.13.26.138; Thu, 03 Sep 2015 19:53:27 +0000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 98.139.213.150 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189557 Archived-At: Please correct me if I am not right here, but it appears that in byte-compiled files (don't always?) expand #$ to the current elisp file name. I wrote a module containing the following code: (message "x: %S" #$) When I load this module using load-file of the .el file adds a line to the *Message* buffer Loading /user/michael/x.el (source)... x: "/user/michael/x.el" Loading /user/michael/x.el (source)...done I then byte-compile the module, use load-file on the .elc file, and now I get Loading /user/michael/x.elc... x: nil Loading /user/michael/x.elc...done This causes all loading ELPA/MELPA packages to generate the following error during initialization: (wrong-type-argument stringp nil) because of the following generated line in the package autoloads script: (add-to-list 'load-path (or (file-name-directory #$) (car load-path))) and then the autoloads file gets byte-compile'd when installed. This is with the latest Cygwin version with the W32 GUI: GNU Emacs 24.5.1 (x86_64-unknown-cygwin) of 2015-06-23 on desktop-new Are others seeing the issue? Is this cygwin specific? I will try this out on a Linux latest dev version as soon as I can.