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

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

Re: Placement of list within an interactive clause


From: Stefan Monnier
Subject: Re: Placement of list within an interactive clause
Date: Thu, 14 Jul 2022 16:30:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> When using ` (interactive (list (if condition (body))))', would the commands
> in the body of the if statement form part of the list? Does the same apply

I think you're jumping ahead of yourself because you don't seem to have
a good grasp of how Lisp works (this question has nothing to do with
`interactive`).

Commands don't "form part" of lists.  Lists contain values (and are
themselves values) and commands manipulate (and return) values when
they're evaluated.

Maybe going through the "Introduction to Emacs Lisp" (see "Help => More
Manual => Introduction to Emacs Lisp" in the menu) will be helpful.


        Stefan




reply via email to

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