From: Greg Rowe <usenet@therowes.net>
Subject: Re: user-input ?
Date: Fri, 03 Jun 2005 12:57:50 -0400 [thread overview]
Message-ID: <42a08c68$0$3718$39cecf19@news.twtelecom.net> (raw)
In-Reply-To: <878y1rh06n.fsf@madamex.madamex.dk>
Mads Jensen wrote:
> I am a elisp newbie, who is trying to write a basic major mode. For
> this, I need to read some input from the user, but I was not able to
> find anything about that, in the elisp manual. Can anyone please tell me
> how? Thank you.
Check out the help for 'interactive'. This is a link to the relevant
section in the elisp manual:
http://www.gnu.org/software/emacs/elisp-manual/html_mono/elisp.html#SEC288
A very basic example of a function that requests user input in the form
of a string:
(defun my-example (arg)
"Example of getting user input"
(interactive "sEnter a string: ")
(insert arg))
Greg
--
Home is where the .bashrc is.
next prev parent reply other threads:[~2005-06-03 16:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-03 16:31 user-input ? Mads Jensen
2005-06-03 16:57 ` Greg Rowe [this message]
2005-06-03 17:00 ` Kevin Rodgers
2005-06-03 17:02 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='42a08c68$0$3718$39cecf19@news.twtelecom.net' \
--to=usenet@therowes.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).