From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#14841: Frames created invisible have their visibility parameter set to t Date: Wed, 24 Jul 2013 18:50:03 +0200 Message-ID: References: <83a9ltun54.fsf@gnu.org> <837ggxukjt.fsf@gnu.org> <83hafx3wzz.fsf@gnu.org> <83vc45xuht.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1374684670 10808 80.91.229.3 (24 Jul 2013 16:51:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jul 2013 16:51:10 +0000 (UTC) Cc: 14841@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 24 18:51:11 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V22HN-0004Hy-Ry for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jul 2013 18:51:09 +0200 Original-Received: from localhost ([::1]:53027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V22HN-0008M3-Hu for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jul 2013 12:51:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V22HJ-0008LT-5M for bug-gnu-emacs@gnu.org; Wed, 24 Jul 2013 12:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V22HH-0003hQ-Tm for bug-gnu-emacs@gnu.org; Wed, 24 Jul 2013 12:51:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V22HH-0003hM-Q5 for bug-gnu-emacs@gnu.org; Wed, 24 Jul 2013 12:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V22HG-000753-VG for bug-gnu-emacs@gnu.org; Wed, 24 Jul 2013 12:51:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Jul 2013 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14841 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 14841-submit@debbugs.gnu.org id=B14841.137468465427178 (code B ref 14841); Wed, 24 Jul 2013 16:51:02 +0000 Original-Received: (at 14841) by debbugs.gnu.org; 24 Jul 2013 16:50:54 +0000 Original-Received: from localhost ([127.0.0.1]:47389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V22H7-00074H-PV for submit@debbugs.gnu.org; Wed, 24 Jul 2013 12:50:54 -0400 Original-Received: from mail-ee0-f48.google.com ([74.125.83.48]:36983) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V22H3-00073T-Pm for 14841@debbugs.gnu.org; Wed, 24 Jul 2013 12:50:50 -0400 Original-Received: by mail-ee0-f48.google.com with SMTP id b47so367725eek.35 for <14841@debbugs.gnu.org>; Wed, 24 Jul 2013 09:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=CgBADifRt5HPDiEn4DYcL1MyhpqFC2SsgEd3mqnydko=; b=SQK4fUjXA0wy6IHCxS3zs4jTZxpEqXbyG1belxS8GYx5EVb4O+GNfKmLCnr0YF8c8/ ViT0fOUp6M1CFSFqHCd43ZFEADBSz/hqQE6d11H8OjsRzMzjKVSbwW7D5D2mdqaNqSY/ cDvSJSH7uaWn/33ROTAFCfS3xtvPcnR0921qgwHzGlCxTxKXC3NYdRTvKOhehUwaLzs5 kKh/M0YsCn2ziUJknJXNEFg4+BifacUbs0Kesi+AcEdt3tlIlZVPMUrF1aeU5BQa9xg1 yBnCKSXrhyyIFNP3GUtJRpzgbj2ymVn9CO5XYqAkNmGJ6CRA49b2DVuCvkFOmMnw1eev zQxg== X-Received: by 10.15.76.71 with SMTP id m47mr37963706eey.70.1374684643894; Wed, 24 Jul 2013 09:50:43 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Wed, 24 Jul 2013 09:50:03 -0700 (PDT) In-Reply-To: <83vc45xuht.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76628 Archived-At: On Sat, Jul 20, 2013 at 2:53 PM, Eli Zaretskii wrote: > I'm out of my depth here, as I know close to nothing about the details > of these messages, and why are they sent to us, even though the frame > is created invisible. But try the changes below for a few days, and > if they don't have any adverse effects, I will install them. > - DebPrint (("frame %p (%s) reexposed by WM_PAINT\n", f, > - SDATA (f->name))); > + if (!f->output_data.w32->asked_for_visible) > + DebPrint (("frame %p (%s) reexposed by WM_PAINT\n", f, > + SDATA (f->name))); > - SET_FRAME_VISIBLE (f, 1); > + if (iconified) > + SET_FRAME_VISIBLE (f, 1); An easy to reproduce bug caused by this change: ;;; .emacs (let ((f (selected-frame))) (make-frame) (delete-frame f)) ;;; .emacs ends here emacs => Warning (initialization): An error occurred while loading `c:/Devel/emacs/test/.emacs': error: Attempt to delete the sole visible or iconified frame