From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#5482: frame-invisible-p reports nil for iconified frames on w32 Date: Mon, 27 Jun 2016 08:22:06 +0200 Message-ID: <5770C60E.20502@gmx.at> References: <576FABF6.2050800@gmx.at> <83bn2oymah.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467008606 16325 80.91.229.3 (27 Jun 2016 06:23:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2016 06:23:26 +0000 (UTC) Cc: ahyatt@gmail.com, lennart.borgman@gmail.com, 5482@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 27 08:23:15 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 1bHPww-0004O0-J8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jun 2016 08:23:14 +0200 Original-Received: from localhost ([::1]:56688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHPwv-00081x-Ta for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jun 2016 02:23:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHPwo-00081k-TT for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 02:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHPwk-0007Uy-LC for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 02:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHPwk-0007Ug-Hf for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 02:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bHPwk-0005qy-B5 for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 02:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jun 2016 06:23: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.146700854322441 (code B ref 5482); Mon, 27 Jun 2016 06:23:02 +0000 Original-Received: (at 5482) by debbugs.gnu.org; 27 Jun 2016 06:22:23 +0000 Original-Received: from localhost ([127.0.0.1]:57377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHPw7-0005pt-Fi for submit@debbugs.gnu.org; Mon, 27 Jun 2016 02:22:23 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:61527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHPw5-0005pf-Iv for 5482@debbugs.gnu.org; Mon, 27 Jun 2016 02:22:22 -0400 Original-Received: from [192.168.1.100] ([212.95.7.104]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LkP8Z-1btVi113Qx-00cOjb; Mon, 27 Jun 2016 08:22:14 +0200 In-Reply-To: <83bn2oymah.fsf@gnu.org> X-Provags-ID: V03:K0:ljv47gtI4dk4VvFWt57RpFUxKxHP9qxHxE+sEBRu0UC+lb80BoI hmjCVmhE4FZRqLuRZZqKWoY59hSBOMjNh/sEPvO6ymZd6f2gM4WH+jC8YKurHmRCkbJVhP7 1p+SQfFVc/zul3/Q507BezhiOR9ib6R9VYeKY9jPanYIAwCtT9QPnO68DLplbid0/AqZvzJ BpQZSk0lMVZioePc1h62g== X-UI-Out-Filterresults: notjunk:1;V01:K0:Nby48LyFj3U=:NWLqKhtLHmbT65EbJTlJw7 ltxKVpNecVXGazr+80J0xW/Cv+T1hCo51QHZa5HBWSF5gR/AQ6S5Cpp13Mso1TfDcJTlJo/yW Espc4fGwo5/WI4jDLoXITbxbn2//tX4DCH7C4cY4oBTmSaru/jjcTi23QYbwkCj09FazuKoyH T+pUCFyVDMEDESvy6WF1waiXHpAj6PvC4JaI3/i/fx6755rbKgL1MOC2PcF7TZSGl91GbGV4Q HXTzEQCDjqS+L4YXJYu0J+Jgkg5DqKuwvIt03NyFmNmereCAFRZkWvM3FkSb9xe/XkDepI587 24WVESwDLu/3oww64NeRlSHCQNIf3mBUVqfXk2UllY5i2R0D0ZtnXnIw7aQP5UJpXPdI/kUIw wIXRaZTqDGZgMDJua1fR1fgF8F7JtW256yhBHa30WaVgxJab+UbF2xIuAVuW8Sv/+D+IgfB0f maOQCdXU7rENKAySnBhn7QmuxkLCV2HlOe0V/DFHwYAaGUhMiHCe6KPFW6bU977eQ1id02bG7 Rdiqp1+sLr+Nrsmr7bm6pCEBh9Y1CESsum19FrlY/qKfBXSdIyMNG0Oqtzcz/jo6LSuZyrs5s QaYUpUEURQq2/z/Qqzai4h86g1Yxip3z7ZXpku7D/jTOmK5lLMIiH5zyVdCBe0E5I0ErOs9c9 Xgj0ypz922kKtQLqzHNwbPMoGhNC4LjGA/SqMOh2F4t+NvreTrXcSkRgUdrXhmuRN+/fTWDCg Ph3acZ3j/U/2hF5LNjjkFDvII4vJGVOlAO4nqOyIY+2vD08nVb4zfVapv/TdZumgYp1fzOv/ 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:120119 Archived-At: > As for the second issue, I disagree that this behavior is wrong, > because it matches the documentation: > > A frame on a graphical display may be =E2=80=9Cvisible=E2=80=9D, =E2= =80=9Cinvisible=E2=80=9D, or > =E2=80=9Ciconified=E2=80=9D. If it is visible, its contents are di= splayed in the usual > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > manner. If it is iconified, its contents are not displayed, but th= ere > ^^^^^^ > is a little icon somewhere to bring the frame back into view (some > window managers refer to this state as =E2=80=9Cminimized=E2=80=9D = rather than > =E2=80=9Ciconified=E2=80=9D, but from Emacs=E2=80=99 point of view = they are the same thing). If > a frame is invisible, it is not displayed at all. > > -- Command: make-frame-visible &optional frame > This function makes frame FRAME visible. > > So I see no reason to fix anything in what make-frame-visible does in > this case. Neither do I. Emacs implements just a subset of the states and transitions provided by the Windows API. > I could perhaps agree that iconify-frame should have undone the effect= > of make-frame-invisible in this use case, though. I see no problems with (progn (setq my-frame (make-frame)) (make-frame-invisible my-frame) (sit-for 1) (iconify-frame my-frame) (sit-for 1) (frame-visible-p my-frame)) Or what did you have in mind? martin