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

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

Enter


From: TheFlyingDutchman
Subject: Enter
Date: Tue, 4 Nov 2008 00:46:11 -0800 (PST)
User-agent: G2/1.0

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?


reply via email to

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