From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ravi Newsgroups: gmane.emacs.help Subject: How to compile this simple program in GNU emacs Date: Sun, 27 Jan 2008 17:58:39 -0800 (PST) Organization: http://groups.google.com Message-ID: <1b4ef437-03d1-4370-ab14-f95e222fa4f3@e23g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201545513 2812 80.91.229.12 (28 Jan 2008 18:38:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2008 18:38:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 28 19:38:53 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JJYsX-0004Oo-P9 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jan 2008 19:38:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJYs6-0004e7-Vr for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jan 2008 13:38:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e23g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: 59.93.51.69 Original-X-Trace: posting.google.com 1201485520 29871 127.0.0.1 (28 Jan 2008 01:58:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 28 Jan 2008 01:58:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e23g2000prf.googlegroups.com; posting-host=59.93.51.69; posting-account=SzqsQwoAAAAmxnRPq-zHl80d-4WG5EdD User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8) Gecko/20071019 Fedora/2.0.0.8-1.fc7 Firefox/2.0.0.8, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:155634 X-Mailman-Approved-At: Mon, 28 Jan 2008 13:37:43 -0500 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 Xref: news.gmane.org gmane.emacs.help:51031 Archived-At: Hi, I typed in the following code "newone.c" in emacs #include int main() { int i; printf("enter i"); scanf("%d",&i); printf("\nthe value entered is %d",i); return 0; } Then i did M-x compile gave the command : gcc -o newone newone.c Then again M-x compile and ./newone Now emacs displayed another buffer in "compilation mode" like this -*- mode: compilation; default-directory: "~/Desktop/new/" -*- Compilation started at Mon Jan 28 07:19:01 ./newone enter i I have entered 45. Now here I when I press , it is saying "No error here". But how do I send in the value 45, without pressing enter i45 I am also unable to press , Please help me. I looked in compilation mode manual and emacs manual but could not figure out. Should I be pressing in some key sequence ? Please let me know. Thanks & Regards, ravi.