Subject: Re: bug#13305: 24.2; describe-function gives incorrect function location information (for functions changed in a hook?)

From: Stefan Monnier <[email-masked]>
Date: Thu, 03 Jan 2013 12:19:51 -0500

>> > (add-hook 'rmail-mode-hook
>> >   (function (lambda()
>> > (require 'rmailsum)
>> > (defun rmail-summary-output (&optional file-name n)
>> I also *strongly* discourage the use of `defun' within another function.
>     Is this in the elisp manual somewhere?  It's exactly what one would
> do given experience with scheme or other lisps.

In Scheme, a local `define' does not affect the global definition.
So it's a completely different operation (it's more like a `let').

        Stefan