From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TheFlyingDutchman Newsgroups: gmane.emacs.help Subject: Enter Date: Tue, 4 Nov 2008 00:46:11 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225791684 6283 80.91.229.10 (4 Nov 2008 09:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2008 09:41:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 04 11:18:59 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from mail-forward1.uio.no ([129.240.10.70]) by dough.gmane.org with esmtp (Exim 4.50) id 1KxIzu-0005L2-M0 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 11:18:54 +0100 Original-Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1KxIPT-0006FD-TV for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 10:41:15 +0100 Original-Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1KxIPT-0006F7-Ru for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 10:41:15 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx4.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KxIPT-0004Sv-8p for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 10:41:15 +0100 Original-Received: from localhost ([127.0.0.1]:59487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxIPM-0008Mc-Sy for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 04:41:08 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2!postnews.google.com!c2g2000pra.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: 192.91.147.35 Original-X-Trace: posting.google.com 1225788371 30625 127.0.0.1 (4 Nov 2008 08:46:11 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 4 Nov 2008 08:46:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c2g2000pra.googlegroups.com; posting-host=192.91.147.35; posting-account=9bWHAAoAAAAxSFC_2O_ssTETNW9NhMbW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164088 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-UiO-SPF-Received: Received-SPF: pass (mail-mx4.uio.no: domain of gnu.org designates 199.232.76.165 as permitted sender) client-ip=199.232.76.165; envelope-from=help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org; helo=lists.gnu.org; X-UiO-Spam-info: not spam, SpamAssassin (score=-4.0, required=5.0, autolearn=disabled, MISSING_SUBJECT=0.001,NO_RECEIVED=-0.001,RCVD_IN_DNSWL_MED=-4, uiobl=NO, uiouri=NO) X-UiO-Scanned: 4F45073F10EA52E7D7552E39266B58601ED6A3BD X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -39 maxlevel 200 minaction 2 bait 0 mail/h: 23 total 75732 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.help:59424 Archived-At: 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?