Function
prompt-for-symbol
function pops up a text input pane and prompts the user for a symbol. The symbols that are valid can be constrained in a number of ways. prompt-for-symbol message &key symbols package ok-check pane-args popup-args
nil
if the symbol is valid. popup-confirmer
. Arguments can be passed to themake-instance
of the pane and the call topopup-confirmer
using pane-args and popup-args respectively. (capi:prompt-for-symbol "Enter a symbol:") (capi:prompt-for-symbol "Enter a symbol:" :package 'cl) (capi:prompt-for-symbol "Enter a symbol:" :symbols '(foo bar baz)) (capi:prompt-for-symbol "Enter a symbol:" :ok-check #'(lambda (symbol) (string< symbol "B")))