public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: [cygwin] Issue on output when using javac or scalac under emacs
Date: Wed, 26 Aug 2020 18:17:11 +0900	[thread overview]
Message-ID: <20200826181711.4b19bceba741e182d2a0d12b@nifty.ne.jp> (raw)
In-Reply-To: <f39b995e-c6e5-6676-68e9-6b15520027a6@orange.fr>

On Wed, 26 Aug 2020 08:31:35 +0200
Luc Henninger wrote:
> Le 26/08/2020 à 01:19, Jason Pyeron a écrit :
> >> -----Original Message-----
> >> From: Luc Henninger
> >> Sent: Tuesday, August 25, 2020 6:40 PM
> >>
> > I'm thick - what the issue? There was no body to the email.
> >
> >
> Hello,
> 
> ( My previous message dos not contain the text, only the attachments!!! )
> 
> For years, I use emacs-nt (the one provided by gnu.org) under cygwin. I 
> just discover that emacs is also directly provided by cygwin (late is 
> better than never :-)). So I try to use it successfully up to a 
> compilation error in one of my program in java.
> 
> To compile java (or scala), I use my own makefile that I start from emacs.
> 
> In case of error, I encountered a strange output undex emacs_w32 and 
> emacs_nox compared to emacs_nt (see trace_nox, trace_w32 and trace_nt in 
> attachment).

I'm not sure what you meant by emacs_w32, but if you start make by
M-x compile, I guess
env CYGWIN=disable_pcon emacs
will solve the issue.

> I currently use emacs release 27.1 for all emacses, but I verify that I 
> have the same strange behaviour with emacs 26.3.
> 
> Can anybody explain this? and more gane give a workaround?

Cygwin 3.1.x and later enables pseudo console for non-cygwin apps.
Pseudo console generates some ANSI escape sequences if non-cygwin
apps are executed. However, emacs provides dumb terminal for M-x
compile, M-x shell or M-x eshell. As a result, the problem occurs.

CYGWIN=disable_pcon disables pseudo console, so it will resolve
the issue.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

  reply	other threads:[~2020-08-26  9:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-25 22:40 Luc Henninger
2020-08-25 23:19 ` [cygwin] " Jason Pyeron
2020-08-26  2:38   ` Brian Inglis
2020-08-26  6:31   ` Luc Henninger
2020-08-26  9:17     ` Takashi Yano [this message]
2020-08-26 10:09     ` [cygwin] Issue on output when using javac or scalac under emacs solved Luc Henninger
2020-08-26 12:22       ` Eliot Moss
2020-08-26 12:16     ` [cygwin] Issue on output when using javac or scalac under emacs Eliot Moss
2020-08-26  0:36 ` Eliot Moss
2020-08-26  2:50   ` Brian Inglis
2020-08-26  3:51     ` Eliot Moss
2020-08-26 14:35       ` Eliot Moss
2020-08-26  6:49   ` Luc Henninger

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=20200826181711.4b19bceba741e182d2a0d12b@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin@cygwin.com \
    /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).