all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Choosing invokation of list in an interactive clause
Date: Thu, 04 Apr 2024 14:19:39 +0000	[thread overview]
Message-ID: <pJEIILegAkrPdKJT80c81UP9fZcfVaaes4P88re3J7sWSfhAHuKMKaHySy1-wIZowdanriZn4XgvfBVkh1ANZJ2mTGIZbHu2s2cEV03llzA=@protonmail.com> (raw)

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




             reply	other threads:[~2024-04-04 14:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-04 14:19 Heime [this message]
2024-04-04 15:27 ` Choosing invokation of list in an interactive clause 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='pJEIILegAkrPdKJT80c81UP9fZcfVaaes4P88re3J7sWSfhAHuKMKaHySy1-wIZowdanriZn4XgvfBVkh1ANZJ2mTGIZbHu2s2cEV03llzA=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.