From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1014 invoked by alias); 15 Jun 2017 18:43:02 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 996 invoked by uid 89); 15 Jun 2017 18:43:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Alberta, alberta, calgary, Calgary X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 15 Jun 2017 18:43:00 +0000 Received: from [192.168.1.100] ([24.64.240.204]) by shaw.ca with SMTP id LZjSdH6fNM9gtLZjTdSSNC; Thu, 15 Jun 2017 12:43:03 -0600 X-Authority-Analysis: v=2.2 cv=a+JAzQaF c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=Xw48WwHTU18_HHBxnzUA:9 a=QEXdDO2ut3YA:10 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: Latest Cygwin update and Emacs in Mintty To: cygwin@cygwin.com References: <87wpciktid.fsf@Rainer.invalid> <87o9tqs8c8.fsf@Rainer.invalid> <40991a4b-1e1c-4d03-f70f-8c77eb29bc7b@cornell.edu> <840056d7-6365-97bb-96d0-cca35aaff925@cornell.edu> From: Brian Inglis Message-ID: <4b1cf76a-ac55-3996-0592-bd3c1e1f8857@SystematicSw.ab.ca> Date: Thu, 15 Jun 2017 18:43:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <840056d7-6365-97bb-96d0-cca35aaff925@cornell.edu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfLoQbgjyvIyGVrI7FD9nReFOBV/liOtHGLkrdGEXzKqNFI2hH16ucZzS0JH5xQX5pvKfVrw38iqy1zbTmD8dmzzlpf4ZWVpI4HvdhTGaleP0wAht/TXP GdhwtDgaNlxg5+yZCxkNAnq1aRX4SRKY8QRweiVjNgrEo+M+LFP5YVB76E+i/RgD9X7nhOO414Ummw== X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00164.txt.bz2 On 2017-06-15 07:35, Ken Brown wrote: > On 6/15/2017 6:47 AM, Ken Brown wrote: >> On 6/14/2017 3:00 PM, Achim Gratz wrote: >>> Achim Gratz writes: >>>> After the latest Cygwin update I'm hitting an interesting problem with >>>> emacs-nox running in a mintty: when Emacs starts, it decides that the >>>> background color is gray instead of the usual white (for all but the >>>> rightmost character in the status line, interestingly enough). I have >>>> the normal mintty background set slightly off-white (to #F8F8F8) and >>>> mintty reports itself as xterm-256color (the same happens in when TERM >>>> is set to screen-256color). Emacs starts up with the correct >>>> background >>>> color, draws the status bar and the menu bar and only then switches the >>>> background to gray. The gray it choses is very slightly lighter than >>>> the status bar (so lightly in fact that I can make out the >>>> difference on >>>> only one of my three monitors). Emacs really thinks it is using a >>>> white >>>> background, as evidenced by the fact that (set-background-color >>>> "white") >>>> will produce exactly the same result. I get my usual background back >>>> with (set-background-color "#F8F8F8"), but I have no idea where the >>>> wrong setting for the named color "white" comes from. >>>> >>>> I'm just trying this at home remotely logging in from a konsole >>>> terminal >>>> on my Linux box: Here the background chosen is slightly darker than the >>>> status bar, the status bar seems to be #B8B8B8 and the background for >>>> "white seems to be #B4B4B4. Curious and curiouser... >>> >>> Ken, did you have a chance to look into this? >> >> Sorry, I must have missed this when you first sent it. I'll take a look. > > I also see some strange behavior, but I can't reproduce what you're > seeing. Here's what I tried: > > 1. I edited .minttyrc to set BackgroundColour=#F8F8F8. (ForegroundColour > is 0,0,0, which I guess is the default.) > > 2. I ran 'emacs-nox -Q'. The background color didn't visibly change; > it's still off-white. The mode line and menu line appear to be reversed > (black background, off-white foreground, though I can't really be sure > that the foreground is off-white rather than white). > > 3. I evaluated (set-background-color "white"). This caused the > background to turn gray. The mode line and menu bar didn't visibly change. > > 4. I evaluated (set-background-color "#F8F8F8"). The background stayed > gray. > > I need to investigate 3 and 4, but first I'd like to understand why you > and I are seeing different things. One difference is the value of TERM. > You say "mintty reports itself as xterm-256color". Do you mean it does > this by default, or do you have something in your startup files that > causes this? When I start mintty, I get the following: > > $ echo $TERM > xterm Visible and selectable in mintty, Options, Terminal, Type or {/etc/,~/.}minttyrc Term= mintty has rgb.txt compiled in as rgb.t emacs package installs /usr/share/emacs/25.2/etc/rgb.txt - and that has the expected contents - is it found and loaded from there? IANAEmacs guy -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple