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: References: <78883 DOT 97921 DOT qm AT web25503 DOT mail DOT ukl DOT yahoo DOT com> <4C9953AF DOT 6020602 AT charter DOT net> Date: Fri, 24 Sep 2010 20:43:31 +0100 Message-ID: Subject: Re: how to enable the very convenient copy/paste editing method in Cgywin? From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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