[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making alist that executes multiple commands
From: |
Stefan Monnier |
Subject: |
Re: Making alist that executes multiple commands |
Date: |
Sun, 24 Nov 2024 22:00:05 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> Have thought about this. Any criticisms about it?
>
> '((ar . (lambda ()
> (alkotr-ar)
> (alkotr-af)))
>
> (go . (lambda ()
> (alkotr-go)
> (alkotr-gc))))
This uses lists (that happen to look like the source code of functions)
rather than actual functions. The compiler won't see them, thus won't
compile them and won't give you warnings about dubious elements.
To use actual functions you need to do something like:
`((ar . ,(lambda ()
(alkotr-ar)
(alkotr-af)))
(go . ,(lambda ()
(alkotr-go)
(alkotr-gc))))
- Stefan
- Re: Making alist that executes multiple commands, (continued)
- Re: Making alist that executes multiple commands, Stephen Berman, 2024/11/25
- Re: Making alist that executes multiple commands, Heime, 2024/11/25
- Re: Making alist that executes multiple commands, Stephen Berman, 2024/11/25
- Re: Making alist that executes multiple commands, Heime, 2024/11/25
- Re: Making alist that executes multiple commands, Stephen Berman, 2024/11/25
- Re: Making alist that executes multiple commands, Heime, 2024/11/25
- Re: Making alist that executes multiple commands, Stephen Berman, 2024/11/25
- Re: Making alist that executes multiple commands, Heime, 2024/11/25
- Re: Making alist that executes multiple commands, Stephen Berman, 2024/11/25
- Re: Making alist that executes multiple commands, Heime, 2024/11/26
- Re: Making alist that executes multiple commands,
Stefan Monnier <=