emacs-devel
[Top][All Lists]
Advanced

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

Re: Return


From: David Kastrup
Subject: Re: Return
Date: Tue, 07 Dec 2010 15:38:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

"Stephen J. Turnbull" <address@hidden> writes:

> Stefan Monnier writes:
>
>  > Actually, I'm considering to disallow non-top-level defuns in
>  > lexical-scope mode, just because it's a good opportunity to introduce
>  > such "breakage" and because non-top-level defuns are bugs in 99% of
>  > the cases (in Elisp).
>
> So I guess you don't expect to be adding to any hooks in lexical mode?
>
> (add-hook captain-hook (defun sm-or-dak?-style-foo () (foo bar baz)))

Eek.  No point in using the return value of a defun (is it even
defined?)  like that if you can equally well use the function symbol.

-- 
David Kastrup




reply via email to

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