all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Read Only Buffers On compilation
@ 2011-05-05 12:45 flebber
  2011-05-05 13:54 ` Stefan Monnier
  2011-05-05 14:04 ` Marco Parrone
  0 siblings, 2 replies; 4+ messages in thread
From: flebber @ 2011-05-05 12:45 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-05 14:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-05 12:45 Read Only Buffers On compilation flebber
2011-05-05 13:54 ` Stefan Monnier
2011-05-05 14:13   ` despen
2011-05-05 14:04 ` Marco Parrone

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.