unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: compile-defun of function in package.el has no effect
Date: Mon, 19 Oct 2015 16:25:51 -0400	[thread overview]
Message-ID: <jwvh9lm1upz.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: bd59d9dd-b02b-4bbb-9496-7e90b26be505@googlegroups.com

> then executed M-x compile-defun on it.

How did you end up deciding to do that?
Hmm... I see it's mentioned in lispref/compile.texi.

It probably requires some updates since eval-defun has seen various
changes over the years, but compile-defun hasn't, even though it does
pretty much the same thing.

> There were no complaints, but when I tried again to install the package, my edit did not appear i.e.: instead of "Install the package 'elpy'?" I got the old version 'Install package 'elpy'?

If you edited the file in a fresh new Emacs, then used compile-defun and
then tried M-x package-install, it's possible that package.el was not
yet loaded when you did the compile-defun, so it got loaded when you
tried to package-install, and that undid the effect of compile-defun
(loading from the package.elc file rather than the changed package.el).

> BTW, the error I'm getting when trying to install elpy is 'package
> emacs-24.1 is unavailable'.  I'm running v 24.3.

There's something really wrong here, then.  Have you tried with an empty .emacs?


        Stefan




      parent reply	other threads:[~2015-10-19 20:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-18 16:48 compile-defun of function in package.el has no effect eric.scott
2015-10-19 11:54 ` Michael Heerdegen
     [not found] ` <mailman.630.1445255709.7904.help-gnu-emacs@gnu.org>
2015-10-19 14:21   ` Joost Kremers
2015-10-19 20:25 ` Stefan Monnier [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvh9lm1upz.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).