From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#44794: 28.0.50; Frame creation broken with (tool-bar-mode -1) Date: Sun, 22 Nov 2020 07:20:09 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000001367f505b4b39dc0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17507"; mail-complaints-to="usenet@ciao.gmane.io" To: David Fussner , 44794@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 22 16:23:36 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kgrDD-0004PG-D1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 16:23:35 +0100 Original-Received: from localhost ([::1]:34476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgrDC-0001ye-FR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 10:23:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgrAl-00018I-Vq for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 10:21:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgrAl-00069n-8p for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 10:21:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kgrAl-000552-5c for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 10:21:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Nov 2020 15:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44794 X-GNU-PR-Package: emacs Original-Received: via spool by 44794-submit@debbugs.gnu.org id=B44794.160605841919403 (code B ref 44794); Sun, 22 Nov 2020 15:21:03 +0000 Original-Received: (at 44794) by debbugs.gnu.org; 22 Nov 2020 15:20:19 +0000 Original-Received: from localhost ([127.0.0.1]:48060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgrA2-00052q-El for submit@debbugs.gnu.org; Sun, 22 Nov 2020 10:20:18 -0500 Original-Received: from mail-ed1-f49.google.com ([209.85.208.49]:35713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgrA0-00052c-Mp for 44794@debbugs.gnu.org; Sun, 22 Nov 2020 10:20:17 -0500 Original-Received: by mail-ed1-f49.google.com with SMTP id cf17so10945158edb.2 for <44794@debbugs.gnu.org>; Sun, 22 Nov 2020 07:20:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=KLaUkMvr/45dxcxocBVdy3gOryfMsp2i0pa7ZktXXGE=; b=hVCAglM+PVvShvJpSiahS6Xfjuh1EZSrVlXXNoX6+dZi6Ie/j1T8/rAIubEkWH4HHj S6t9Tl3czPEP9GVKl+ek6rTZX2Da6YY2BTYrwde/JKSGwpCCuI+i7ssG4hfdZWsEmWwB Bf03P5sLlXk7HEP7IudB+UJjaaF37H+sxzy6hkf45pC4/irvSrpqgsmQemhFLpdPaIbl tMokhYcXfQ9QwWOngqJF1dWzrmRL8XmyxM+kj7lX+yLCKa3c54ieCruR4g1Y32ZXcpCm 7xK2U2FDrQNor3EnI8prlAz3W19OXqfnvBB52eMgMca81cnQwmXIxPTLRXEOcOWmNwfW 0tag== X-Gm-Message-State: AOAM531JK+bFO3jqoPiASVlESP9KV2xKBscmdZWaQzCf6c6TMB46obrL XQcEy/tDJ6Z47xrihYZpL5/neUA0HMr+nLRSapI= X-Google-Smtp-Source: ABdhPJxHfkL8ACvDGkEn3YBk/vBq942W4J4oioxXo+IkoZab2yTec1Fg24Do7zpAdlZvRB3XAfzv+p70YNKb9XYYVBE= X-Received: by 2002:a05:6402:716:: with SMTP id w22mr44525291edx.214.1606058410982; Sun, 22 Nov 2020 07:20:10 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 22 Nov 2020 07:20:09 -0800 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193845 Archived-At: --0000000000001367f505b4b39dc0 Content-Type: text/plain; charset="UTF-8" David Fussner via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > With a .emacs file containing only the line: > > (tool-bar-mode -1) > > Then ./emacs in the repo src directory. > > On my system, the initial frame is blank except for a title bar, menu > bar and a scroll bar -- no mini-buffer and nothing at all in the main > window. If you resize the frame with the mouse or by keyboard shortcut > then the usual splash screen appears, along with the mini-buffer. The > symptoms differ somewhat if you add font specifications and/or frame > size specifications to the .emacs file, but it still doesn't work > right. > > I bisected it to commit 36431e1679, which modifies xterm.c. Reverting > that commit and rebuilding brings back the previous behavior, and all > looks correct to me. Thank you for bisecting and the clear recipe. This points at a recent and fairly trivial patch by me, but I unfortunately can't reproduce the issue here. There is something subtle going on here that I don't understand. Does anyone else have an idea? This might be a long-shot, but could you please try the attached patch to see if it works better? It's the best I could come up with; if it doesn't work, I think someone else will have to help figure this one out. --0000000000001367f505b4b39dc0 Content-Type: text/x-diff; charset="US-ASCII"; name="bug-44794-sk.patch" Content-Disposition: attachment; filename="bug-44794-sk.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: 74ebe456dfd766c2_0.1 ZGlmZiAtLWdpdCBhL3NyYy94dGVybS5jIGIvc3JjL3h0ZXJtLmMKaW5kZXggMGQyNDUyZGU5Mi4u MDUzNTNhMmVjMiAxMDA2NDQKLS0tIGEvc3JjL3h0ZXJtLmMKKysrIGIvc3JjL3h0ZXJtLmMKQEAg LTEyOTI3LDI0ICsxMjkyNywxOSBAQCAjZGVmaW5lIE5VTV9BUkdWIDEwCiAgIFhTZXRBZnRlckZ1 bmN0aW9uICh4X2N1cnJlbnRfZGlzcGxheSwgeF90cmFjZV93aXJlKTsKICNlbmRpZgogCi0gIExp c3BfT2JqZWN0IHN5c3RlbV9uYW1lID0gRnN5c3RlbV9uYW1lICgpOwogICBzdGF0aWMgY2hhciBj b25zdCB0aXRsZVtdID0gIkdOVSBFbWFjcyI7CisgIHN0YXRpYyBjaGFyIGNvbnN0IGF0W10gPSAi IGF0ICI7CisgIExpc3BfT2JqZWN0IHN5c3RlbV9uYW1lID0gRnN5c3RlbV9uYW1lICgpOworICBw dHJkaWZmX3QgbmJ5dGVzID0gc2l6ZW9mICh0aXRsZSkgKyBzaXplb2YgKGF0KTsKKyAgaWYgKFNU UklOR1AgKHN5c3RlbV9uYW1lKQorICAgICAgJiYgSU5UX0FERF9XUkFQViAobmJ5dGVzLCBTQllU RVMgKHN5c3RlbV9uYW1lKSArIDEsICZuYnl0ZXMpKQorICAgIG1lbW9yeV9mdWxsIChTSVpFX01B WCk7C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