delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/11/28/09:08:24

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 782373850429
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1606572463;
bh=1XzfFRUoPPUS7DuXiZXVDTpS3A649bMBbO4Q/gx9l5k=;
h=To:Subject:Date:References:List-Id:List-Unsubscribe:List-Archive:
List-Post:List-Help:List-Subscribe:From:Reply-To:From;
b=FTRczR0S4afUBfPH02E27ETZU+YEnTtr/vfzjWYVnd4GW1yqUnL3uXW/SrdtsZQcf
D5ojUN6ke3+NQO4Jmuc5jRNki423nmAMdcpkzxI0uiO+n3lzUGb3iCfMrU+JPWrpyB
dLt8nEcoSBR2QbNSy/oEvXxQ8yiAbnah38thAj6o=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EFAF43858C27
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
Subject: Re: Help with setting Cygwin's Emacs W32 TRAMP to WSL 1
Date: Sat, 28 Nov 2020 16:07:34 +0200
Organization: Oleksandr Gavenko <gavenkoa AT gmail DOT com>, http://defun.work/
Message-ID: <vriuy2ilk21l.fsf@gavenkoa.example.com>
References: <CAFNJpniCb6AMojTH=MCK=tNqWuOxS64ie=5UV5A8zyJAY2UWYw AT mail DOT gmail DOT com>
<055ce72f-d6be-44c3-74cc-108b99c457d4 AT cs DOT umass DOT edu>
<vriuczzzlupw DOT fsf AT gavenkoa DOT example DOT com>
<9f5e55f8-6ff0-b59d-8eae-1504d3f4bd2e AT cs DOT umass DOT edu>
Mime-Version: 1.0
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (cygwin)
Cancel-Lock: sha1:bSQ6yjq80C4mhN0HeTXeYGz5Wms=
X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,
FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,
HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT,
KAM_OTHER_BAD_TLD, NML_ADSP_CUSTOM_MED, PDS_OTHER_BAD_TLD, SPF_HELO_NONE,
SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Level: ***
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Oleksandr Gavenko via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Oleksandr Gavenko <gavenkoa AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 2020-11-27, Eliot Moss wrote:

> On 11/26/2020 3:38 PM, Oleksandr Gavenko via Cygwin wrote:
>
>> I believe that X server under Windows is only to write cool blog posts, that
>> we are able to run "xterm" ))
>
> Not sure what you mean here.  I run Cygwin's X server and run xterm/bash windows and Emacs that way.

On daily basis? Why not mintty and emacs-w32?

Originally (2006-2012) I used native Windows Emacs + cygwin-mount.el. There
were compatibility issues, most struggles came from Emacs dependency on
external utilities to be fully functional (like search across files). Cygwin
environment gave those utilities.

Later in 2016 I had to work with Windows again and I discovered:

https://cygwin.com/packages/summary/emacs-w32.html
  This package provides emacs binaries that use the native Windows GUI for display.

Hooray! Good bye "cygwin-mount.el"!

I maintain "e" command to open everything in Emacs:
http://hg.defun.work/utils/file/tip/emacs

It simplifies jump from Windows CLI to Cygwin Emacs.

And recently Gradle 5.2 fixed escape sequence handling in Mintty, making it
great again:

https://docs.gradle.org/5.2/release-notes.html
  Gradle now detects when it is running from Mintty on Windows and enables the
  rich console. Mintty is a popular terminal emulator used by projects such as
  Cygwin and Git for Windows.

> I was just indicating that (provided DISPLAY=:0.0 is set, as you pointed out) WSL X apps play fine 
> with the Cygwin X server.
>
OK. No problem. I was surprised that you are using X Window from Cygwin for
xterm + Emacs when there are stronger alternatives. At least you don't need to
deal with env var DISPLAY.

For "mintty" there is an issue with TERM=mintty which is not supported on most
remote hosts. I fixed it in ~/.bashrc recently by:

case $TERM in
  mintty*) alias ssh='TERM=xterm ssh' ;;
esac

Note that I need TERM=mintty for Gradle to work properly. With TERM=xterm
Gradle sends unprocessible garbage to terminal...

>> Thanks god Cygwin is able to mount WSL's roots via P9 network file system.
>
> Not sure what P9 is :-) ..
>
Here it is:

https://devblogs.microsoft.com/commandline/whats-new-for-wsl-in-windows-10-version-1903/

>> PS. As you haven't CCed me I had to check GNUS + Gmane again. Haven't read
>> news for 3 years, found out that Lars Ingebrigtsen fucked up with domain
>> transfer.
>
> ??  When people post to Cygwin, I assume that are also subscribed and will get a response from
> there, and don't need _two_ emails.  But I am sending this one both places.  I also have not read 
> net news in years - shouldn't be necessary if you're willing to receive Cygwin notes by email.
>
I planned to read email archive week later to see responses as I didn't want to
subscribe to any mail list.

So:

* I will know about responses a week later.

* I wouldn't reply to any respond as I have to retrieve/inject Message-Id to
  maintain message chain. For this I used MarkMail WEB form or some other
  offer in the past but experience was confusing.

As I understand it is not possible to specify me as additional recipient via
headers To/Cc/Bcc/Replay-To if you are in a land of email lists.

I remember some articles recommended to ask about inclusion of my email in
addition to list address - the only solution we have ((

Now that I found Gmane bridge working again (I had to alter Gmane connection
endpoint to "news.gmane.io") at least I can reply without issues when not
subscribed to the list!

-- 
http://defun.work/

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019