From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (static.214.254.202.116.clients.your-server.de [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id EFAF43858C27 for ; Sat, 28 Nov 2020 14:07:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EFAF43858C27 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kj0t0-0002iq-BI for cygwin@cygwin.com; Sat, 28 Nov 2020 15:07:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin@cygwin.com From: Oleksandr Gavenko 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 , http://defun.work/ Message-ID: References: <055ce72f-d6be-44c3-74cc-108b99c457d4@cs.umass.edu> <9f5e55f8-6ff0-b59d-8eae-1504d3f4bd2e@cs.umass.edu> Mime-Version: 1.0 Content-Type: text/plain 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Nov 2020 14:07:41 -0000 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/