From: Joost Kremers <joost.m.kremers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: compile-defun of function in package.el has no effect
Date: 19 Oct 2015 14:21:10 GMT [thread overview]
Message-ID: <d8kcimFlcnmU1@mid.individual.net> (raw)
In-Reply-To: mailman.630.1445255709.7904.help-gnu-emacs@gnu.org
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)
next prev parent reply other threads:[~2015-10-19 14:21 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 [this message]
2015-10-19 20:25 ` 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=d8kcimFlcnmU1@mid.individual.net \
--to=joost.m.kremers@gmail.com \
--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.
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.