From: Sam Halliday <sam.halliday@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Comint and windows
Date: Sat, 7 Nov 2015 09:21:32 -0800 (PST) [thread overview]
Message-ID: <1a191a70-5ac8-4727-919b-774c91a642e4@googlegroups.com> (raw)
In-Reply-To: <mailman.1777.1446740565.7904.help-gnu-emacs@gnu.org>
Thanks Eli, that was exactly it! It was possible to tell the subprogram (a Java app that uses jline) to not buffer and everything started to work.
On Thursday, 5 November 2015 16:22:48 UTC, Eli Zaretskii wrote:
> > Date: Thu, 5 Nov 2015 00:12:51 -0800 (PST)
> > From: Sam Halliday <sam.halliday@gmail.com>
> >
> > I've been forced to use Windows at work and I'm finding some of my modes don't work.
> >
> > One mode that is not working for me is sbt-mode:
> >
> > https://github.com/hvesalai/sbt-mode/issues/33
> >
> > It is a pretty standard implementation of a major mode that talks to an external process via comint. But it looks like commands typed in emacs are not being sent to the process.
> >
> > Are there any known gotchas with writing these sorts of modes to run on windows?
>
> Yes. It's likely a buffering issue. Windows doesn't have pty's, so
> communications with subprocesses is via pipes, which fail the isatty
> test, and so the subprocess most probably buffers its standard
> streams because it doesn't sense that they are connected to a terminal
> device.
>
> Try invoking the subprocess in a way that disables buffering of
> stdin/stdout on the subprocess's side. It could be some command-line
> switch or maybe some command you need to invoke immediately after
> invoking the subprocess. (If there's no such option, ask the
> developers to provide one, or hack the code yourself.)
prev parent reply other threads:[~2015-11-07 17:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-05 8:12 Comint and windows Sam Halliday
2015-11-05 16:22 ` Eli Zaretskii
2015-11-05 18:26 ` Jeffrey DeLeo
2015-11-06 13:04 ` Filipp Gunbin
2015-11-06 15:49 ` Jeffrey DeLeo
[not found] ` <mailman.1777.1446740565.7904.help-gnu-emacs@gnu.org>
2015-11-07 17:21 ` Sam Halliday [this message]
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=1a191a70-5ac8-4727-919b-774c91a642e4@googlegroups.com \
--to=sam.halliday@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.