[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Placement of list within an interactive clause
From: |
carlmarcos |
Subject: |
Placement of list within an interactive clause |
Date: |
Thu, 14 Jul 2022 20:14:16 +0200 (CEST) |
I am writing an interactive function and encountering a difficulty on the
placing of the command `list' to set the function argument.
Is it most sensible to call `list' first after `interactive', followed by `let'
?
Or use `let' first, with `list' appearing in the body of the `let' clause ?
Does it make difference where the list statement is placed?
This code
(interactive (list (let ( (rqmatch t) (initpk "mixed") (dflt
"extended") (cseq '("expression" "mixed" "hlsexp"
"bracemk" "extended" "disable")) ) (completing-read "Flare_type: " cseq
nil rqmatch initpk 'flare-hist dflt))))
versus the following
(interactive (let ( (rqmatch t) (initpk "mixed") (dflt "extended")
(cseq '("expression" "mixed" "hlsexp" "bracemk" "extended"
"disable")) ) (list (completing-read "Flare_type: " cseq nil
rqmatch initpk 'flare-hist dflt))))
- Placement of list within an interactive clause,
carlmarcos <=
- Re: Placement of list within an interactive clause, Stefan Monnier, 2022/07/14
- Re: Placement of list within an interactive clause, carlmarcos, 2022/07/14
- Re: Placement of list within an interactive clause, Philip Kaludercic, 2022/07/14
- Re: Placement of list within an interactive clause, Stefan Monnier, 2022/07/14
- Re: Placement of list within an interactive clause, carlmarcos, 2022/07/14
- Re: Placement of list within an interactive clause, Stefan Monnier, 2022/07/14
- Re: Placement of list within an interactive clause, carlmarcos, 2022/07/14
- Message not available
- Re: Placement of list within an interactive clause, carlmarcos, 2022/07/16
- Re: Placement of list within an interactive clause, Stefan Monnier, 2022/07/16
- Message not available
- Re: Placement of list within an interactive clause, carlmarcos, 2022/07/16