From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: eric.scott@acm.org Newsgroups: gmane.emacs.help Subject: compile-defun of function in package.el has no effect Date: Sun, 18 Oct 2015 09:48:25 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1445189625 1536 80.91.229.3 (18 Oct 2015 17:33:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2015 17:33:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 18 19:33:44 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Znrq3-0007iz-Ru for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Oct 2015 19:33:44 +0200 Original-Received: from localhost ([::1]:34932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Znrq3-00049w-2B for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Oct 2015 13:33:43 -0400 X-Received: by 10.13.203.76 with SMTP id n73mr21913265ywd.15.1445186906042; Sun, 18 Oct 2015 09:48:26 -0700 (PDT) X-Received: by 10.50.131.162 with SMTP id on2mr287295igb.4.1445186906011; Sun, 18 Oct 2015 09:48:26 -0700 (PDT) Original-Path: usenet.stanford.edu!m48no13495qgd.0!news-out.google.com!n2ni33956igy.0!nntp.google.com!kq10no23077602igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2602:306:3439:5c0:b4dc:de3e:d623:b14; posting-account=j99JbwoAAACHa0XfKeCENFe8dipHf1WI Original-NNTP-Posting-Host: 2602:306:3439:5c0:b4dc:de3e:d623:b14 User-Agent: G2/1.0 Injection-Date: Sun, 18 Oct 2015 16:48:26 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:215456 X-Mailman-Approved-At: Sun, 18 Oct 2015 13:33:30 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107740 Archived-At: I'm having some trouble getting a package (elpy) installed with the package= manager, and thought I'd take this as an opportunity to learn a little bit= about how package.el works. However, I'm finding it hard to add tracing st= atements because no changes I make in the code seem to be taking.=20 For example I added the word 'the' to this expression in package.el/package= -menu-execute(): (if (yes-or-no-p (if (=3D (length install-list) 1) (format "Install the package `%s'? " (car install-list)) ...)))) then executed M-x compile-defun on it. There were no complaints, but when I= tried again to install the package, my edit did not appear i.e.: instead o= f "Install the package 'elpy'?" I got the old version 'Install package 'elp= y'? As I understand it, 'compile-defun should dynamically bind the byte-compile= d new definition to the unique symbol 'package-menu-execute, but clearly it= 's not binding it, or the symbol is not unique, or something is coming alon= g later and changing it back. The value of M-x locate-library is=20 /usr/share/emacs/24.3/lisp/emacs-lisp/package.elc I tried byte-compiling the whole package.el file (as linked from the stack = trace) and copying it to that position, and there is still no effect after = restarting. BTW, the error I'm getting when trying to install elpy is 'package emacs-24= .1 is unavailable'. I'm running v 24.3. Any help would be appreciated. Thanks,