unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Enter
@ 2008-11-04  8:46 TheFlyingDutchman
  2008-11-04  9:51 ` Enter TheFlyingDutchman
  2008-11-04 10:03 ` Enter Giorgos Keramidas
  0 siblings, 2 replies; 4+ messages in thread
From: TheFlyingDutchman @ 2008-11-04  8:46 UTC (permalink / raw)
  To: help-gnu-emacs


I want to start a shell buffer and then run a command via an Emacs
Lisp function. If I do this:

(shell)
(insert "ls\n")


Emacs will start a shell buffer and insert the command at the prompt
but it seems to be missing the effect of hitting the enter key. Is
there a way to simulate hitting the [enter] key in Emacs Lisp?


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

end of thread, other threads:[~2008-11-04 19:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-04  8:46 Enter TheFlyingDutchman
2008-11-04  9:51 ` Enter TheFlyingDutchman
2008-11-04 10:03 ` Enter Giorgos Keramidas
2008-11-04 19:22   ` Enter TheFlyingDutchman

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