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.
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to