delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/24/15:43:49

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_SV,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <AANLkTi=_OXXrVmtRK+cYmZViQBHKceZ8iNEWck_KGa2t@mail.gmail.com>
References: <78883 DOT 97921 DOT qm AT web25503 DOT mail DOT ukl DOT yahoo DOT com> <4C9953AF DOT 6020602 AT charter DOT net> <AANLkTin9tHFfWxeaPQu1LYFojx5-fG39Y0fqg0kDh33Q AT mail DOT gmail DOT com> <AANLkTi=_OXXrVmtRK+cYmZViQBHKceZ8iNEWck_KGa2t AT mail DOT gmail DOT com>
Date: Fri, 24 Sep 2010 20:43:31 +0100
Message-ID: <AANLkTinAfTNirSzv0FuutUTcmMFP9dv8d=DdxiF8fFm2@mail.gmail.com>
Subject: Re: how to enable the very convenient copy/paste editing method in Cgywin?
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 22 September 2010 11:11, Csaba Raduly wrote:
>> you can switch among mintty windows with Ctrl+Tab
>
> Ouch. I just tried Ctrl+Tab and the mintty window simply disappeared,
> leaving the shell process (bash or ssh) behind without a window
> (visible or otherwise). :(

Fixed on svn for 0.9, following lots of help from Csaba in
investigating this. The issue only showed up on his Vista dual-monitor
setup. The problem apparently was that a pointer to a nested function,
which accessed local variables of its enclosing function, was passed
to EnumWindows().

According to http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
that ought to work, as long as the enclosing function remains on the
call stack. But perhaps that's only guaranteed to work as long as only
gcc-compiled code is involved? On the other hand, compiling with gcc-4
instead of gcc-3 also made the issue go away, so perhaps there was a
gcc-3 bug here. I guess I should just avoid obscure compiler features
like that.

Andy

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

- Raw text -


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