From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: compile-defun of function in package.el has no effect Date: 19 Oct 2015 14:21:10 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445264727 18783 80.91.229.3 (19 Oct 2015 14:25:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 14:25:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 19 16:25:27 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 1ZoBNK-0007tI-Rl for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Oct 2015 16:25:23 +0200 Original-Received: from localhost ([::1]:39769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoBNK-0007oF-7P for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Oct 2015 10:25:22 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-X-Trace: individual.net hjpXOkhDbuDqKhqgbdYyLgqpLWLKk7DYWVbecWUSzLV5Yk7ByJ Cancel-Lock: sha1:EPhQ5swbfI+pL3mYOwsWSxkJv1A= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/1.0.1 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:215471 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:107756 Archived-At: Michael Heerdegen wrote: > eric.scott@acm.org writes: >> For example I added the word 'the' to this expression in >> package.el/package-menu-execute(): >> >> (if (yes-or-no-p >> (if (= (length install-list) 1) >> (format "Install the package `%s'? " (car >> install-list)) >> ...)))) >> >> then executed M-x compile-defun on it. > > The standard way to eval a piece of code in a buffer is to put the > cursor after it and hit C-x C-e, but AFAICT M-x compile-defun should > work as well. If it's a defun or some other definition, C-M-x will do as well. Advantage is that you don't need to put the cursor after the s-expr. It also works when point is in the middle of the defun. -- Joost Kremers joostkremers@fastmail.fm Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)