unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Placement of list within an interactive clause
@ 2022-07-14 18:14 carlmarcos--- via Users list for the GNU Emacs text editor
  2022-07-14 18:34 ` Stefan Monnier via Users list for the GNU Emacs text editor
  2022-07-15  7:26 ` Jean Louis
  0 siblings, 2 replies; 36+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-07-14 18:14 UTC (permalink / raw)
  To: Help Gnu Emacs

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




^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2022-08-01 11:52 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-14 18:14 Placement of list within an interactive clause carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-14 18:34 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-07-14 19:24   ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-14 20:15     ` Philip Kaludercic
2022-07-14 20:30     ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-07-14 20:52       ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-14 21:12         ` Stefan Monnier
2022-07-14 21:15           ` carlmarcos--- via Users list for the GNU Emacs text editor
     [not found]         ` <jwv7d4f761t.fsf-monnier+emacs@gnu.org-N6yYlrA----2>
2022-07-16 23:01           ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-17  2:38             ` Stefan Monnier
     [not found]             ` <jwvcze4pj2d.fsf-monnier+emacs@gnu.org-N790PCt----2>
2022-07-17  3:02               ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-17 13:34                 ` Stefan Monnier
2022-07-14 21:23       ` [External] : " Drew Adams
2022-07-14 22:31       ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-14 22:52         ` [External] : " Drew Adams
     [not found]         ` <SJ0PR10MB54881126A1B0DB238AE8B82BF3889@SJ0PR10MB5488.namprd10.prod.outlook.com-N6yu_1j----2>
2022-07-15 20:05           ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-15  7:26 ` Jean Louis
2022-07-15  8:19   ` Christopher Dimech
2022-07-15 10:14     ` Jean Louis
2022-07-15 10:32       ` Christopher Dimech
2022-07-15 21:03         ` Jean Louis
2022-07-15 21:22           ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-15 21:31             ` Jean Louis
2022-07-15 22:53               ` Christopher Dimech
     [not found]             ` <YtHcni0c1ZTL+V8R@protected.localdomain-N72lwEe----2>
2022-07-16 22:08               ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-16 23:40                 ` Jean Louis
2022-07-17  1:22                   ` [External] : " Drew Adams
2022-07-17  2:04                     ` RE: [External] : " Christopher Dimech
2022-07-17  1:53                   ` Christopher Dimech
2022-07-17  2:16                     ` Jean Louis
2022-07-17  2:46                       ` Christopher Dimech
2022-08-01 11:52       ` Emanuel Berg
2022-07-15 19:55   ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-15 21:08     ` Jean Louis
2022-07-15 21:54   ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-07-16 10:15     ` Jean Louis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).