From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.devel Subject: Re: Expansion of #$ in byte-compiled files Date: Fri, 4 Sep 2015 10:49:52 -0400 Message-ID: <55E9AF90.6000103@cornell.edu> References: <87egifkw77.fsf@Niukka.kon.iki.fi> <716126080.1313487.1441331199397.JavaMail.yahoo@mail.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1441378264 2629 80.91.229.3 (4 Sep 2015 14:51:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2015 14:51:04 +0000 (UTC) Cc: Emacs Devel To: Michael Mauger , Kalle Olavi Niemitalo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 04 16:50:54 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 1ZXsKI-0007Ng-PD for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 16:50:50 +0200 Original-Received: from localhost ([::1]:60268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXsKI-0002jC-R5 for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 10:50:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXsJS-0001Kc-Iw for emacs-devel@gnu.org; Fri, 04 Sep 2015 10:49:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXsJO-0000OQ-Cs for emacs-devel@gnu.org; Fri, 04 Sep 2015 10:49:58 -0400 Original-Received: from limerock02.mail.cornell.edu ([128.84.13.242]:40952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXsJO-0000O6-9a for emacs-devel@gnu.org; Fri, 04 Sep 2015 10:49:54 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id t84Eno5x019017; Fri, 4 Sep 2015 10:49:51 -0400 Original-Received: from [192.168.1.3] (cpe-67-249-176-138.twcny.res.rr.com [67.249.176.138]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id t84Enn8i016537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 4 Sep 2015 10:49:50 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <716126080.1313487.1441331199397.JavaMail.yahoo@mail.yahoo.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.84.13.242 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:189594 Archived-At: On 9/3/2015 9:46 PM, Michael Mauger wrote: >> On Thursday, September 3, 2015 5:51 PM, Kalle Olavi Niemitalo wrote: > >>> Michael Mauger writes: >> >> >>> because of the following generated line in the package autoloads script: >>> >>> (add-to-list 'load-path (or (file-name-directory #$) (car >> load-path))) >> >> I expect that (file-name-directory load-file-name) would avoid >> the problem.> > > Yes, using`load-file-name' might avoid the problem but the package installer generates the #$ syntax so I have no direct control of it. > > Ken Brown was correct that the autoloads.el files have a `no-byte-compile: t' entry in their Local Variables section, but the package installer is still byte compiling the files. I think the placement of some ^L are interfering with the proper parsing of that section. The good news is that it is not happening in the master repository, only on my 25.4 Cygwin instance. I have added a snippet of code to delete any *-autoloads.elc files in the package tree before I initialize the package system and that avoids the problem. > > I checked my latest GIT version on Linux and confirmed it has no compiled autoloads and installing new packages was not creating them. I then double checked the update of existing packages and installation of new packages did compile the autoloads on my W7/Cygwin install. I just tested this, using the same emacs version as you (the current release of emacs-w32 on 64-bit Cygwin), and the autoloads files didn't get byte-compiled. I tested by installing form-feed and lua-mode from MELPA. I don't know what could be different on your system to cause this problem. Can you reproduce it from 'emacs -Q'? Ken