all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: flebber <flebber.crue@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Read Only Buffers On compilation
Date: Thu, 5 May 2011 05:45:36 -0700 (PDT)	[thread overview]
Message-ID: <622cc352-08cb-4988-82d4-b3670d840654@r33g2000prh.googlegroups.com> (raw)

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	other threads:[~2011-05-05 12:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-05 12:45 flebber [this message]
2011-05-05 13:54 ` Read Only Buffers On compilation Stefan Monnier
2011-05-05 14:13   ` despen
2011-05-05 14:04 ` Marco Parrone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=622cc352-08cb-4988-82d4-b3670d840654@r33g2000prh.googlegroups.com \
    --to=flebber.crue@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.