unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Top level interactive function calling other interactive functions
@ 2024-04-06 22:55 Heime
  2024-04-06 23:27 ` [External] : " Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Heime @ 2024-04-06 22:55 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

I have a top level interactive function, from which I want to call a number
of commands interactively.

(defun avus-stix (seltr)
  (interactive
    (let ( (csel '("Integ-Upright"  "Integ-Small"
                   "Integ-Smallsl"  "Integ-Smallup"
                   "Integ-Slanted") ))
      (list
        (completing-read "Selector: " csel nil t nil) )) )

  (pcase seltr
    ("Integ-Slanted"  (avus-stix-integ-slanted))
    ("Integ-Upright"  (avus-stix-integ-upright))
    ("Integ-Small"    (avus-stix-integ-small))
    ("Integ-Smallsl"  (avus-stix-integ-smallsl))
    ("Integ-Smallup"  (avus-stix-integ-smallup))) )




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

* RE: [External] : Top level interactive function calling other interactive functions
  2024-04-06 22:55 Top level interactive function calling other interactive functions Heime
@ 2024-04-06 23:27 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2024-04-06 23:27 UTC (permalink / raw)
  To: Heime, Heime via Users list for the GNU Emacs text editor

> I want to call a number of commands interactively.
>   (pcase seltr
>     ("Integ-Slanted"  (avus-stix-integ-slanted))
>     ("Integ-Upright"  (avus-stix-integ-upright))
>     ("Integ-Small"    (avus-stix-integ-small))
>     ("Integ-Smallsl"  (avus-stix-integ-smallsl))
>     ("Integ-Smallup"  (avus-stix-integ-smallup))) )

C-h f call-interactively

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-06 22:55 Top level interactive function calling other interactive functions Heime
2024-04-06 23:27 ` [External] : " 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).