unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: user-input ?
Date: Fri, 03 Jun 2005 11:00:03 -0600	[thread overview]
Message-ID: <d7q245$tv0$1@sea.gmane.org> (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.

See http://www.emacswiki.org/cgi-bin/wiki?CategoryCode and especially
http://www.emacswiki.org/cgi-bin/wiki/CreateNewMajorMode

 > 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?

99% of the time you should only read input to supply arguments to an
interactive command, so start with `C-h f interactive'.  When the basic
interactive codes aren't enough, note that you can write more
complicated things like this:

(interactive (list (read-foo "Foo: " ...)
                    (read-bar "Bar: " ...)
                    ...))

See the rather large "Minibuffers" section of the Emacs Lisp manual,
paying particular attention to the various read-* functions, most of
which are documented in the "High-Level Completion" and "Reading File
Names" nodes.

-- 
Kevin Rodgers

  parent reply	other threads:[~2005-06-03 17:00 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
2005-06-03 17:00 ` Kevin Rodgers [this message]
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='d7q245$tv0$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /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).