unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to IELM use minibuffer?
@ 2013-01-09  9:13 Xue Fuqiao
  2013-01-09  9:36 ` Christopher Schmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Xue Fuqiao @ 2013-01-09  9:13 UTC (permalink / raw)
  To: help-gnu-emacs

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?

-- 
Best regards.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to IELM use minibuffer?
  2013-01-09  9:13 How to IELM use minibuffer? Xue Fuqiao
@ 2013-01-09  9:36 ` Christopher Schmidt
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Schmidt @ 2013-01-09  9:36 UTC (permalink / raw)
  To: help-gnu-emacs

Xue Fuqiao <xfq.free@gmail.com> writes:
> 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?

interactive is not meant to be used interactively, it is merely a
declaration within functions and lambdas.  Check C-h f interactive RET

Try read-from-minibuffer in combination with read.

        Christopher



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to IELM use minibuffer?
       [not found] <mailman.16987.1357722842.855.help-gnu-emacs@gnu.org>
@ 2013-01-10 15:04 ` jack-mac
  0 siblings, 0 replies; 3+ messages in thread
From: jack-mac @ 2013-01-10 15:04 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-10 15:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-09  9:13 How to IELM use minibuffer? Xue Fuqiao
2013-01-09  9:36 ` Christopher Schmidt
     [not found] <mailman.16987.1357722842.855.help-gnu-emacs@gnu.org>
2013-01-10 15:04 ` jack-mac

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).