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

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

Re: lambda an (interactive) function but not a command


From: Emanuel Berg
Subject: Re: lambda an (interactive) function but not a command
Date: Tue, 19 Mar 2019 02:29:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Michael Heerdegen wrote:

> If you want this to work, you should add an
> argument list. An interactive lambda also
> needs one. In the above function,
> (interactive) is specified as argument list,
> so an interactive spec is missing and it is
> not a command.

You mean like this

    (lambda (interactive) () (gnus-summary-mail-forward 4))

?

If so, it doesn't work

    (wrong-type-argument commandp (lambda
    (interactive) nil
    (gnus-summary-mail-forward 4))) in
    command-execute

Maybe you meant something else?

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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