Is there a popup input dialogue box for Emacs, which returns the string that a user enters? Maybe something that can be launched through the mini-buffer? Or through an elisp command/function?
yes-or-no-p provides this for yes/no answers (and it's often used cousin
Several arguments to the
interactive macro can allow prompting for arguments when a function is called interactively (using M-x to call the function, binding a key to the function, or using
As mentioned in the documentation for
read-string will prompt the minibuffer for a string and return it to the caller.
completing-read can be used to prompt the user with options for completion. For instance,
find-file use wrapper functions around
completing-read that provide a list of current buffers or the files in the current directory as candidate completions.
completing-read then uses that list of candidates to prompt the user on what file or buffer to open.
interactive has several code characters which can be what you are looking for. If you write a function, you can specify that the user needs to provide a plain string, a buffer name, etc. All from the minibuffer.
If you want to provide completion look at
ido-completing-read, from ido, to request user input anywhere in your function (and it's easy to use IMHO).