unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: "lein repl" malfunctions in Emacs (24.3.1) subprocess?
Date: Tue, 14 Apr 2015 05:38:09 +0300	[thread overview]
Message-ID: <83bnircu3y.fsf@gnu.org> (raw)
In-Reply-To: <f4d9fde8-4c5f-41e1-a187-3f1e8524f9e7@googlegroups.com>

> Date: Mon, 13 Apr 2015 14:23:47 -0700 (PDT)
> From: cohagan@acm.org
> 
> I'm trying to use Emacs as my dev environment for Clojure programming under Windows 8.1. When I open a subprocess (via M-x shell) I get a command prompt as expected. I can then run "lein test" and my unit tests are run as expected -- with output to the shell buffer as expected.
> 
> If, however, I enter "lein repl" then the REPL starts as expected, but is non responsive. For example, if I enter (+ 1 2) at the user=> prompt (followed by Enter) I get no response at all.  The input isn't echoed (as expected) and no output at all appears.
> 
> Note that "lein repl" runs fine at a normal command prompt (or within a subprocess buffer in Epsilon (an Emacs clone.)) This problem occurs on 3 different machines.
> 
> This has worked for me in the past so obviously something has broken, but I haven't a clue what it might be or how to troubleshoot.

Likely a buffering issue.  Emacs on Windows runs subprocesses via a
pipe, and many programs then buffer their stdout fully, unlike line
buffering they use when run from a shell prompt.

If "lein repl", whatever that is, has an option to control buffering,
or there's a variable you can set or command you can issue to that
effect inside "lein repl", they will likely fix the problem.



  parent reply	other threads:[~2015-04-14  2:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-13 21:23 "lein repl" malfunctions in Emacs (24.3.1) subprocess? cohagan
2015-04-13 21:47 ` cohagan
2015-04-14  2:38 ` Eli Zaretskii [this message]
2015-04-15 21:55   ` Thien-Thi Nguyen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83bnircu3y.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).