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

[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))))




reply via email to

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