Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

emacs- Read from the minibufferr.txt

Use `read-from-minibuffer` to get input from the minibuffer. You don't need to initialize it separately. When calling it, a 'prompt' is required that will show up in front of the text insert area. For example:

Code

(princ (read-from-minibuffer "Search: "))

Results

the is from the minibuffer

That will launch the minibuffer with a "Search: " prompt and return the text that's typed into it.

I haven't figured out how to read one character at a time like this. The "completion" stuff provides some ways to do that though.