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

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

Re: How to IELM use minibuffer?


From: jack-mac
Subject: Re: How to IELM use minibuffer?
Date: Thu, 10 Jan 2013 07:04:23 -0800 (PST)
User-agent: G2/1.0

Le mercredi 9 janvier 2013 10:13:48 UTC+1, Xue Fuqiao a écrit :
> I used (interactive "x") in IELM just now, but it only returns nil and didn't 
> let me input the Lisp object.  How can I use minibuffer in IELM?

Try: 
(defun foo (expr)
  (interactive "xType an expression: ")
  (message "It seems you typed %s" expr))

and then, from ielm:
(call-interactively 'foo)

or: M-x foo RET


reply via email to

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