From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Geoff Kuenning Newsgroups: gmane.emacs.bugs Subject: bug#27923: 24.3; -iconic switch screws up geometry Date: Tue, 14 Nov 2017 16:12:51 -0800 Message-ID: References: <5995604A.3050605@gmx.at> <59980B16.1020307@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1510704795 3164 195.159.176.226 (15 Nov 2017 00:13:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Nov 2017 00:13:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cc: 27923@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 15 01:13:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eElKI-0000WH-9V for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Nov 2017 01:13:10 +0100 Original-Received: from localhost ([::1]:34107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eElKP-0004Zn-Gr for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Nov 2017 19:13:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eElKJ-0004Zh-1A for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 19:13:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eElKF-0003nu-Qn for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 19:13:10 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60330) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eElKF-0003nV-NO for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 19:13:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eElKA-00017p-Ez for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2017 19:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Geoff Kuenning Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Nov 2017 00:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27923 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27923-submit@debbugs.gnu.org id=B27923.15107047754305 (code B ref 27923); Wed, 15 Nov 2017 00:13:02 +0000 Original-Received: (at 27923) by debbugs.gnu.org; 15 Nov 2017 00:12:55 +0000 Original-Received: from localhost ([127.0.0.1]:40778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eElK3-00017N-8V for submit@debbugs.gnu.org; Tue, 14 Nov 2017 19:12:55 -0500 Original-Received: from mallet.cs.hmc.edu ([134.173.42.59]:40774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eElK0-00017E-PI for 27923@debbugs.gnu.org; Tue, 14 Nov 2017 19:12:53 -0500 Original-Received: from bow.cs.hmc.edu (bow-vpn.cs.hmc.edu [10.81.251.5]) by mallet.cs.hmc.edu (Postfix) with ESMTP id 7A16ADC0676; Tue, 14 Nov 2017 16:12:51 -0800 (PST) Original-Received: by bow.cs.hmc.edu (Postfix, from userid 13409) id 6797F6EA09C8; Tue, 14 Nov 2017 16:12:51 -0800 (PST) In-Reply-To: <59980B16.1020307@gmx.at> (martin rudalics's message of "Sat, 19 Aug 2017 11:55:34 +0200") 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:139910 Archived-At: Hi, Martin, I apologize profusely for my unacceptably long delay in answering your questions; your message slipped by me and I only found it when I was cleaning up old emails. FWIW, when I was doing the tests below there was a brief flash on my screen each time I launched emacs, implying that the window is first mapped and then unmapped. I don't know of that's related to the problem. > emacs -Q --iconic --geometry 80x78+1180+0 --font > "-misc-fixed-bold-r-normal-*-15-*-100-100-*-*-ISO8859-1" This works correctly, but the geometry reported by xwininfo is 79x77+100+0 (which is related to my Emacs.geometry Xrdb setting rather than my gnuemacs.geometry). > emacs -Q --iconic --load ~/init.el works entirely correctly with the first init.el (including correct X placement). > emacs -Q --load ~/init.el works entirely correctly with the second init.el. > Also, please tell me what > your original scenario gives with the line specifying the font > setting > removed from the resource file. That one still fails. >> My display is 3840x1200. I'm pretty sure that's wider than >> 1900. ;-) > > That's bad because it means we are in the area of one of the > most > elusive bugs I've seen over the past years. Your scenario has > been > already reported (with .emacs instead of using a resource file) > as > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24526 > > and probably also here > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25943 > > The underlying problem seems to be that the geometry settings > for an > invisible or iconified frame get lost somewhere and are not > processed > (or even reverted) when the frame is made visible. On Windows, > the bug > manifests itself when specifying the geometry in the init file > but not > when the geometry is specified as command argument. On > GNU/Linux the > bug seems to depend on the window manager - I can't reproduce it > here on > Debian using Xfwm. > >> In your suggested test, yes, setting default-frame-alist and >> then >> creating a new iconified frame does indeed give me the desired >> properties. > > Which suggests that creating the initial frame with its > dimensions is > the culprit. What does M-: RET (frame-width) RET of the > deformed frame > print? > >> Please let me know if there are any additional tests you'd like >> me to perform. > > There are. First I would like to see whether the bug occurs > with all > possible invocation scenarios in the same way. Please invoke > Emacs as > > emacs -Q --iconic --geometry 80x78+1180+0 --font > "-misc-fixed-bold-r-normal-*-15-*-100-100-*-*-ISO8859-1" > > as > > emacs -Q --iconic --load ~/init.el > > with init.el specified as > > (setq default-frame-alist > '((width . 80) > (height . 78) > (left . 1180) > (font > . "-misc-fixed-bold-r-normal-*-15-*-100-100-*-*-ISO8859-1"))) > > and as > > emacs -Q --load ~/init.el > > with init.el specified as > > (setq default-frame-alist > '((width . 80) > (height . 78) > (left . 1180) > (font > . "-misc-fixed-bold-r-normal-*-15-*-100-100-*-*-ISO8859-1") > (visibility . icon))) > > and tell me whether the results are the same. Also, please tell > me what > your original scenario gives with the line specifying the font > setting > removed from the resource file. > > Thanks, martin > > PS: Please keep 27923@debbugs.gnu.org CC'd > -- Geoff Kuenning geoff@cs.hmc.edu http://www.cs.hmc.edu/~geoff/ An Internet that is not Open represents a potentially grave risk to freedoms of many sorts -- freedom of speech and other civil liberties, freedom of commerce, and more -- and that openness is what we must so diligently work to both preserve and expand. -- Lauren Weinstein