From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TheFlyingDutchman Newsgroups: gmane.emacs.help Subject: Re: Enter Date: Tue, 4 Nov 2008 01:51:25 -0800 (PST) Organization: http://groups.google.com Message-ID: <86126f3e-d5c8-4b04-a08a-d4140a9435d5@s9g2000prg.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1225795822 17568 80.91.229.12 (4 Nov 2008 10:50:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2008 10:50:22 +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:51:23 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 lo.gmane.org with esmtp (Exim 4.50) id 1KxJVL-00014F-EZ for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 11:51:23 +0100 Original-Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1KxJUE-0008Qx-UA for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 11:50:14 +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 1KxJUE-0008Qu-Sx for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 11:50:14 +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 1KxJUE-00011c-D9 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 11:50:14 +0100 Original-Received: from localhost ([127.0.0.1]:46699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxJUD-000381-DW for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 05:50:13 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s9g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: 192.91.147.35 Original-X-Trace: posting.google.com 1225792285 10689 127.0.0.1 (4 Nov 2008 09:51:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 4 Nov 2008 09:51:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s9g2000prg.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:164090 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: 62498B6F900CE257E3221E727D5E95A285FF4CE3 X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -39 maxlevel 200 minaction 2 bait 0 mail/h: 16 total 75767 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.help:59426 Archived-At: On Nov 4, 12:46=A0am, TheFlyingDutchman wrote: > 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") Well I found something: (comint-send-input) seems to do the trick and simulate manually hitting [enter] in the shell buffer.