all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.