From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.bugs Subject: bug#5482: frame-invisible-p reports nil for iconified frames on w32 Date: Sat, 25 Jun 2016 23:56:32 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466913448 11504 80.91.229.3 (26 Jun 2016 03:57:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jun 2016 03:57:28 +0000 (UTC) Cc: 5482@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 26 05:57:17 2016 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 1bH1C7-0004M1-PQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Jun 2016 05:57:16 +0200 Original-Received: from localhost ([::1]:52384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bH1C6-0008Ad-LR for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jun 2016 23:57:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bH1C0-0008AG-VQ for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2016 23:57:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bH1Bu-00088r-Il for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2016 23:57:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bH1Bu-00088n-Ec for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2016 23:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bH1Bu-0006TZ-72 for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2016 23:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jun 2016 03:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5482 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5482-submit@debbugs.gnu.org id=B5482.146691340024857 (code B ref 5482); Sun, 26 Jun 2016 03:57:02 +0000 Original-Received: (at 5482) by debbugs.gnu.org; 26 Jun 2016 03:56:40 +0000 Original-Received: from localhost ([127.0.0.1]:55914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bH1BY-0006Sr-HR for submit@debbugs.gnu.org; Sat, 25 Jun 2016 23:56:40 -0400 Original-Received: from mail-qk0-f178.google.com ([209.85.220.178]:35825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bH1BX-0006Se-8a for 5482@debbugs.gnu.org; Sat, 25 Jun 2016 23:56:39 -0400 Original-Received: by mail-qk0-f178.google.com with SMTP id n81so981794qke.2 for <5482@debbugs.gnu.org>; Sat, 25 Jun 2016 20:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=jK6R4ZSI20NqAR6TdZ6VTCuolYUcFdJO0SLtk47mXRk=; b=EHLG3oqlRFWBs83JLV5suKe/7czl6wBhz5wlUWCOYoRBzFARJbL3H7/CBxTHwqtRo3 kxescN1eDU+MKZMGAhMoUFF9B/PzrGCCLiioal6Xfuji5Mmwz4TJpt07b/lj97UgzE07 0Gc6o2N7Y52fMeZzY5TI0b9QNqf+MvQ693Ea+h1Wpq25qasZ1tZXvCJrVBTp7Jhdu31q FuZcbDt+Q6A7SkziCRGxAuO4JO5W2tkV55X76Wu+QT3oYVmtyK7U4hTn39J472m7WLlN TudE1fu9Virnk3f95zFtPmkVgv2FpKlQf0la3yoNN8hzGzWFWj0/5CG+6+r9/P/DZdDk oILA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=jK6R4ZSI20NqAR6TdZ6VTCuolYUcFdJO0SLtk47mXRk=; b=TNhpdhWoPTN0BT5ODMemeaomLXBESLRDH8IzISZqH72kdf3j1oIbaRJsV35X5iB07K KHmXJ6P3XdD5fASpXsVv6AMgO67ecVbObvnsf6nO5wHohMOs5hgXC3fXfVTEBXYZjucK lYWMgBUiZbMaKKjjDfMwZzdo/j6/KPi7V3oQnmd+1P+hMaqKprvS3iw0A01BCNXRpyvH 9v36sXocQ1U8Dvi27crHPlb2HH+6VTrZ4fUtB67nh6/vYy+qQG0zK0kefVPQLsF6UuJO FjM43yUOW4ytI+QukZ9jbEfcAEF8yT9XFDyv0eHgyb3S8+EaTvwoOY3OvdpLeUPDjsDD Zhtw== X-Gm-Message-State: ALyK8tJ4tXKwwFiQpBp+sMx7DGStcY09c9U4K8pDNlGtjyoMlTrYcRZsupxwudoxrEnamw== X-Received: by 10.55.52.198 with SMTP id b189mr14340777qka.147.1466913393854; Sat, 25 Jun 2016 20:56:33 -0700 (PDT) Original-Received: from Andrews-MacBook-Pro.local (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id 29sm6211152qtx.4.2016.06.25.20.56.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Jun 2016 20:56:32 -0700 (PDT) In-Reply-To: (Lennart Borgman's message of "Tue, 26 Jan 2010 21:37:45 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:120085 Archived-At: Lennart Borgman writes: > This problem happens for example under these circumstances: > > Create a frame > > (setq my-frame (make-frame)) > > Iconify it. Then make it first invisible and then visible again: > > (make-frame-invisible my-frame) > (make-frame-visible my-frame) > > The result of checking if it is visible is now nil (should be `iconified'): > > (frame-visible-p my-frame) > > This is with a fresh checkout from yesterday. > > > BTW the implementation of frame-visible-p seems a bit strange to me on > w32. It is easy to check visibility using GetWindowPlacement, but is > this used? Sorry for the late reply here. In Emacs 25, the behavior is different, at least for me in Mac OS X. Now, when I do (make-frame-visible my-frame), the frame uniconifies and becomes a normal window again. Can you (or anyone else) still reproduce this on Windows?