all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Juanma Barranquero <lekktu@gmail.com>, 16222@debbugs.gnu.org
Subject: bug#16222: Installing ELPA packages complains about :keywords in define-package
Date: Tue, 24 Dec 2013 10:23:04 -0500	[thread overview]
Message-ID: <8761qel1d3.fsf@flea.lifelogs.com> (raw)
In-Reply-To: <jwv38li2tay.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Tue, 24 Dec 2013 09:55:00 -0500")

On Tue, 24 Dec 2013 09:55:00 -0500 Stefan Monnier <monnier@IRO.UMontreal.CA> wrote: 

>>>> Stefan: I think the problem is `package--alist-to-plist'.  The generated
>>>> PACKAGE-pkg.el has, for example:
SM> No, the problem is that *-pkg.el should not be compiled (it's not
SM> "load"ed either): it's a file using the Elisp `sexp' syntax, but it's
SM> not a file written in Elisp.
>> OK, is it fixable?

SM> Of course: get the byte-compiler to skip those files.

1) Why is *-pkg.el written in this bizarro syntax and not something that
compiles cleanly?  IOW if it's going to be pure data, why pretend it's a
funcall?  I'd rather rename it to *-pkg.data or something and eliminate
any chance of this problem recurring.  The .el extension is wrong,
either way.

2) If you'd rather keep it as a confusingly-almost-ELisp file, can the
problem be solved by ";; no-byte-compile: t" in the local variables, or
does this function have to be changed?

#+begin_src lisp
(defun package--compile (pkg-desc)
  "Byte-compile installed package PKG-DESC."
  (package-activate-1 pkg-desc)
  (byte-recompile-directory (package-desc-dir pkg-desc) 0 t))
#+end_src

Thanks
Ted





  reply	other threads:[~2013-12-24 15:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-23  1:42 bug#16222: Installing ELPA packages complains about :keywords in define-package Juanma Barranquero
2013-12-23 15:02 ` Ted Zlatanov
2013-12-23 15:13   ` Juanma Barranquero
2013-12-23 22:57     ` Ted Zlatanov
2013-12-24  0:01       ` Juanma Barranquero
2013-12-24  3:43       ` Stefan Monnier
2013-12-24 13:37         ` Ted Zlatanov
2013-12-24 14:55           ` Stefan Monnier
2013-12-24 15:23             ` Ted Zlatanov [this message]
2013-12-24 16:23               ` Stefan Monnier
2014-01-15  5:02                 ` Dmitry Gutov
2014-01-15 15:29                   ` Stefan Monnier
2014-01-16 12:58                     ` Dmitry Gutov
2014-01-16 16:18                       ` Stefan Monnier
2014-01-16 17:04                         ` Dmitry Gutov
2014-01-20 16:16                           ` Ted Zlatanov
2014-01-21  1:58                             ` Dmitry Gutov
2014-01-21 13:48                               ` Stefan Monnier
2014-01-14 18:16 ` bug#16222: latest js2-mode from elpa causes backtrace during emacs initialization Tom Willis

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=8761qel1d3.fsf@flea.lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=16222@debbugs.gnu.org \
    --cc=lekktu@gmail.com \
    --cc=monnier@IRO.UMontreal.CA \
    /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.