From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: "lein repl" malfunctions in Emacs (24.3.1) subprocess? Date: Tue, 14 Apr 2015 05:38:09 +0300 Message-ID: <83bnircu3y.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1428979105 19313 80.91.229.3 (14 Apr 2015 02:38:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Apr 2015 02:38:25 +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 Apr 14 04:38:16 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yhqjw-0006Dm-4b for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Apr 2015 04:38:16 +0200 Original-Received: from localhost ([::1]:53983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhqjv-0008OB-5F for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 22:38:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhqjj-0008O4-Ts for help-gnu-emacs@gnu.org; Mon, 13 Apr 2015 22:38:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yhqjg-0003jX-Jd for help-gnu-emacs@gnu.org; Mon, 13 Apr 2015 22:38:03 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:57938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhqjg-0003j5-B5 for help-gnu-emacs@gnu.org; Mon, 13 Apr 2015 22:38:00 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NMR00G00YY9TX00@mtaout25.012.net.il> for help-gnu-emacs@gnu.org; Tue, 14 Apr 2015 05:33:30 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMR00EM4Z3UHJ20@mtaout25.012.net.il> for help-gnu-emacs@gnu.org; Tue, 14 Apr 2015 05:33:30 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.181 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:103704 Archived-At: > 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.