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

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

Re: How to prompt for string?


From: Kevin Rodgers
Subject: Re: How to prompt for string?
Date: Fri, 17 Feb 2006 09:44:50 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

jacksneckhurts@yahoo.com wrote:
I'm trying to teach myself emacs Lisp, but can't figure out how to
prompt for a string. I found the "read-key-sequence-vector" function,
but that only takes in one character. Does anyone know how to prompt
for a string? Thanks.

,----[ C-h f read-string RET ]
| read-string is a built-in function.
| (read-string PROMPT &optional INITIAL-INPUT HISTORY DEFAULT-VALUE INHERIT-INPUT-METHOD)
|
| Read a string from the minibuffer, prompting with string PROMPT.
| If non-nil, second arg INITIAL-INPUT is a string to insert before reading.
| The third arg HISTORY, if non-nil, specifies a history list
|   and optionally the initial position in the list.
| See `read-from-minibuffer' for details of HISTORY argument.
| Fourth arg DEFAULT-VALUE is the default value.  If non-nil, it is used
|  for history commands, and as the value to return if the user enters
|  the empty string.
| Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
|  the current input method and the setting of enable-multibyte-characters.
`----

--
Kevin Rodgers





reply via email to

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