unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Choosing invokation of list in an interactive clause
@ 2024-04-04 14:19 Heime
  2024-04-04 15:27 ` Yuri Khan
  2024-04-04 15:30 ` Michael Albinus
  0 siblings, 2 replies; 9+ messages in thread
From: Heime @ 2024-04-04 14:19 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

Have made an interactive function that uses two parameter options.

I can either invoke list inside the let construct, or as alternative
outside it.  What would be the sensible one to choose ?

(defun ltxstix-integ-slup (grafm seltr)
  "Binary Operations with explicit slant and upright versions."

  (interactive
    (let ( (csel '("Symbol" "Command"))
           (cseq '("intsl " "iintsl" "iiintsl" "ointsl")) )
      (list
        (completing-read "Grapheme: " cseq nil t nil)
        (completing-read "Selector: " csel nil t nil) )))

      (do-this-and-that grafm seltr) ) 

Alternative

(defun ltxstix-integ-slup-altern (grafm seltr)
  "Binary Operations with explicit slant and upright versions."

  (interactive
    (list
      (let ( (csel '("Symbol" "Command"))
             (cseq '("intsl " "iintsl" "iiintsl" "ointsl")) )
      
        (completing-read "Grapheme: " cseq nil t nil)
        (completing-read "Selector: " csel nil t nil) ))) 

        (do-this-and-that grafm seltr) )




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

end of thread, other threads:[~2024-04-06 21:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-04 14:19 Choosing invokation of list in an interactive clause Heime
2024-04-04 15:27 ` Yuri Khan
2024-04-04 15:30 ` Michael Albinus
2024-04-04 16:02   ` Heime
2024-04-06 14:52     ` Heime
2024-04-06 17:27       ` Michael Albinus
2024-04-06 17:34         ` [External] : " Drew Adams
2024-04-06 21:24           ` Heime
2024-04-06 21:56             ` Drew Adams

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