all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: Michael Mauger <michael@mauger.com>, Kalle Olavi Niemitalo <kon@iki.fi>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Expansion of #$ in byte-compiled files
Date: Fri, 4 Sep 2015 10:49:52 -0400	[thread overview]
Message-ID: <55E9AF90.6000103@cornell.edu> (raw)
In-Reply-To: <716126080.1313487.1441331199397.JavaMail.yahoo@mail.yahoo.com>

On 9/3/2015 9:46 PM, Michael Mauger wrote:
>> On Thursday, September 3, 2015 5:51 PM, Kalle Olavi Niemitalo <kon@iki.fi> wrote:
>
>>> Michael Mauger <michael@mauger.com> 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



  reply	other threads:[~2015-09-04 14:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-03 19:53 Expansion of #$ in byte-compiled files Michael Mauger
2015-09-03 21:14 ` Ken Brown
2015-09-03 21:51 ` Kalle Olavi Niemitalo
2015-09-04  1:46   ` Michael Mauger
2015-09-04 14:49     ` Ken Brown [this message]
2015-09-04  2:12 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55E9AF90.6000103@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=emacs-devel@gnu.org \
    --cc=kon@iki.fi \
    --cc=michael@mauger.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.