help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Interactive-form invoked with specified arg


From: gentsquash
Subject: Interactive-form invoked with specified arg
Date: Tue, 4 Jun 2013 09:31:08 -0700 (PDT)
User-agent: G2/1.0

  Consider a FORM which prompts the user to type a character.
E.g, FORM might be

        (y-or-n-p  "Are you there?")
or
        (query-replace "wierd" "weird") .

  Is there a way to programmatically invoke FORM with the
character already specified?  E.g

  (invoke-as-if-I-typed (query-replace "wierd" "weird") "!")

behaves as if I invoked (query-replace "wierd" "weird"),
then, when prompted, typed "!".
                                        -Jonathan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]