From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marco Parrone Newsgroups: gmane.emacs.help Subject: Re: Read Only Buffers On compilation Date: Thu, 05 May 2011 16:04:20 +0200 Organization: TIN.IT (http://www.tin.it) Message-ID: References: <622cc352-08cb-4988-82d4-b3670d840654@r33g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306268713 18669 80.91.229.12 (24 May 2011 20:25:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:25:13 +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 May 24 22:25:10 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QOyA9-0008CB-PR for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:25:09 +0200 Original-Received: from localhost ([::1]:51480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyA9-0006sj-98 for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:25:09 -0400 Original-Path: usenet.stanford.edu!news-transit.tcx.org.uk!feeder.erje.net!newsfeed.x-privat.org!feeder.news.tin.it!spool.news.tin.it!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:DwOXsJPsog91NOegEC/XhsV8NGM= Original-Lines: 33 X-Comments: Please send technical notifications to newsmaster@tin.it Original-NNTP-Posting-Host: 87.0.225.137 Original-X-Trace: 1304604254 reader1.news.tin.it 38640 87.0.225.137:12110 Original-X-Complaints-To: Please send abuse reports to abuse@retail.telecomitalia.it Original-Xref: usenet.stanford.edu gnu.emacs.help:186788 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81144 Archived-At: flebber writes: > I seem to have an odd behaviour when executing scripts in emacs. The > scripts work fine if no input is required. But when input is required > the compilation buffer is read-only. How can I make the buffer read- > write so that input can be taken. So for example a very basic script > asking for input such as below would work in emacs. > > puts "What Directory do you want" > STDOUT.flush > file = gets.chomp > Dir.foreach("C:/"[file]) do |entry| > puts entry > end > > Sayth I don't know how to do what you ask. Usually on GNU/Linux programs are compiled by using batch files that don't require interactive input, they are configured either by editing some files, or by passing command line arguments, or by setting some environment variables. Interactive text-mode programs usually are started from within the shell, either from inside the shell-mode buffer `M-x shell RET' or from an external terminal. Goodbye -- Marco Parrone PGP Key fingerprint = 5E21 BED2 BF47 B3FB F17F 1DB4 D9BE B2B7 3C3A 07E2