help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compile-defun of function in package.el has no effect


From: Joost Kremers
Subject: Re: compile-defun of function in package.el has no effect
Date: 19 Oct 2015 14:21:10 GMT
User-agent: slrn/1.0.1 (Linux)

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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]