all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Comint and windows
Date: Thu, 05 Nov 2015 18:22:24 +0200	[thread overview]
Message-ID: <83ziyss9fj.fsf@gnu.org> (raw)
In-Reply-To: <4b118c46-2d1a-4547-b889-02153639a401@googlegroups.com>

> 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.)



  reply	other threads:[~2015-11-05 16:22 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 [this message]
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

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=83ziyss9fj.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.
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.