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

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

Read Only Buffers On compilation


From: flebber
Subject: Read Only Buffers On compilation
Date: Tue, 24 May 2011 20:01:50 -0000
User-agent: G2/1.0

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


reply via email to

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