From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: PEDRO ANDRES ARANDA GUTIERREZ Newsgroups: gmane.emacs.bugs Subject: bug#48157: Emacs-28 on Mac: corrupted GUI when setting default-frame-alist Date: Mon, 3 May 2021 08:49:21 +0200 Message-ID: References: <22131E77-40E5-4F8B-AF94-BB35F2771165@it.uc3m.es> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002b1a3e05c1675df1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25974"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48157@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 03 08:50:35 2021 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 1ldSPa-0006eG-Ll for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 08:50:34 +0200 Original-Received: from localhost ([::1]:42282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldSPZ-0000gi-Pl for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 02:50:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldSP5-0000gJ-4B for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 02:50:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldSP4-0001yi-KF for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 02:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldSP4-0008UB-Hs for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 02:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: PEDRO ANDRES ARANDA GUTIERREZ Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 May 2021 06:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48157 X-GNU-PR-Package: emacs Original-Received: via spool by 48157-submit@debbugs.gnu.org id=B48157.162002458132605 (code B ref 48157); Mon, 03 May 2021 06:50:02 +0000 Original-Received: (at 48157) by debbugs.gnu.org; 3 May 2021 06:49:41 +0000 Original-Received: from localhost ([127.0.0.1]:46065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldSOi-0008Tp-Ut for submit@debbugs.gnu.org; Mon, 03 May 2021 02:49:41 -0400 Original-Received: from mail-lj1-f181.google.com ([209.85.208.181]:35499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldSOg-0008Tj-Hw for 48157@debbugs.gnu.org; Mon, 03 May 2021 02:49:40 -0400 Original-Received: by mail-lj1-f181.google.com with SMTP id e12so3244120ljn.2 for <48157@debbugs.gnu.org>; Sun, 02 May 2021 23:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=it.uc3m.es; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W9F0auz2lgVd4T7TIyvANDUMylXjtk/moM/o3FgTF4s=; b=LNoU79C7wFgf3Tzf9qnCC8+V+tBOqoS+k4c3KK+u1mlB6A+zEFXE8ZNiij08ccQUNC aTWtlHYbYE2olhcSEOyisCyI0GG06c4wCxKECvblCy433yZGE4kvtMAv0JMnrDUiF4PO AbzB4gvjBV/953T08PAwNTcS6kABzSgRf+C80vIVXJY0JE78yDVxUleUyblKQdURgcA3 zLh+F7HtbLYryyM6mdEyln3P0BCqcGiqG7O2ONU0jEHsG8njkzQ3eCtwepFJ9UkrfV9b Q41KygImcvs/T9ChmVvAct8ge1jMWOCjsKw+UCPCv4zAScSh+Un7KkLAar6FgT97mXXD Ydug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W9F0auz2lgVd4T7TIyvANDUMylXjtk/moM/o3FgTF4s=; b=fnDCyqJGi40NXB8BWmmjL1WzZxFxVYPpC7Wn9XvBDdbCIgMfFWdNFDo5bxsh4JNSsr rh0S70OFp8anvF8fkJEcgZoZaZChW/syt+mCJh5GDFLlkN68YH5wrE5POLltYBtIL/dV xqStwhTnhaE2tJZAe4vZZQXlokQqX0kQro/phToZPkNlFhU6VghTuxYCC+ZNRvJGJFdZ sT6x2OCFKljesL4Ej1Jj537lt1YT36eWncoplgGdxiPbWr2LFfOpm/CXcbk6VqqpJIWj K/AbK8oFEDVvfprKZ6urI9BL1jJuHbsHwi8VuC0eh2ZRWoJwLze2+Muk5TFh+oTEkqCa XLyw== X-Gm-Message-State: AOAM533rlUezCUh9is8Za/rx1Up7W6FQ/dhHAR7lmrhA9AaEoq9aG5eX owbMeHOtsHp0MITKIcmlVgFOAxevPTBhTbrPluQEyg== X-Google-Smtp-Source: ABdhPJzgiDrWFqq7ARojKC/0HufpaMr6/+9i80TMu/JGO6U5S0W0ORQtG3CsnewJ6o6i3RnWRXz2JsQuuEBGLK2xdq8= X-Received: by 2002:a2e:9d05:: with SMTP id t5mr12544492lji.352.1620024572432; Sun, 02 May 2021 23:49:32 -0700 (PDT) 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:205470 Archived-At: --0000000000002b1a3e05c1675df1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable HI, I retried a couple of minutes ago and it continues to startup weirdly on my MacBook Air Darwin paag-MacBookAir 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x86_64 The same code compiled on my pre-2015 McBook Pro (macOS 10.13) works perfectly on both systems. Best, /PA El dom, 2 may 2021 a las 18:17, martin rudalics () escribi=C3=B3: > > Just tested compiling emacs con macOS Catalina. > > > > My .emacs.d/init includes > > > > (setq default-frame-alist '((top . 32 ) (left . 32) (width . 128) > (height . 37))) > > > > The result is this: > > > > > > With the mini-buffer line hidden. If I comment this line, the GUI is > created correctly. The window rebuild correctly if I resize it with the > mouse > > Please try the patch below. > > Thanks, martin > > > diff --git a/src/nsterm.m b/src/nsterm.m > index 6e7ab1266b..b089146e64 100644 > --- a/src/nsterm.m > +++ b/src/nsterm.m > @@ -7310,9 +7310,9 @@ - (void)viewDidResize:(NSNotification *)notificatio= n > > /* Don't want to do anything when the view size hasn't changed. */ > if ((oldh =3D=3D newh && oldw =3D=3D neww) > - || (emacsframe->new_size_p > - && newh =3D=3D emacsframe->new_height > - && neww =3D=3D emacsframe->new_width)) > + && (!emacsframe->new_size_p > + || (newh =3D=3D emacsframe->new_height > + && neww =3D=3D emacsframe->new_width))) > { > NSTRACE_MSG ("No change"); > return; > --=20 --- PEDRO ANDRES ARANDA GUTIERREZ Universidad Carlos III de Madrid "Fragen sind nicht da um beantwortet zu werden. Fragen sind da, um gestellt zu werden" Georg Kreisler --0000000000002b1a3e05c1675df1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
HI,

I retried a couple= of minutes ago and it continues to startup weirdly on my MacBook Air
=

Darwin paag-MacBookAir 19.6.0 Darwin Kernel Version 19.= 6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x8= 6_64

The same code compiled on my pre-2015 McBook = Pro (macOS 10.13) works perfectly on both systems.

Best, /PA

El dom, 2 may 2021 a las 18:17, martin rudalics (<= rudalics@gmx.at>) escribi=C3=B3:<= br>
=C2=A0> Just tested compiling emacs con macOS = Catalina.
=C2=A0>
=C2=A0> My .emacs.d/init includes
=C2=A0>
=C2=A0> (setq default-frame-alist '((top . 32 ) (left . 32) (width .= 128) (height . 37)))
=C2=A0>
=C2=A0> The result is this:
=C2=A0>
=C2=A0>
=C2=A0> With the mini-buffer line hidden. If I comment this line, the GU= I is created correctly. The window rebuild correctly if I resize it with th= e mouse

Please try the patch below.

Thanks, martin


diff --git a/src/nsterm.m b/src/nsterm.m
index 6e7ab1266b..b089146e64 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -7310,9 +7310,9 @@ - (void)viewDidResize:(NSNotification *)notification<= br>
=C2=A0 =C2=A0 /* Don't want to do anything when the view size hasn'= t changed. */
=C2=A0 =C2=A0 if ((oldh =3D=3D newh && oldw =3D=3D neww)
-=C2=A0 =C2=A0 =C2=A0 || (emacsframe->new_size_p
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 && newh =3D=3D emacsframe->n= ew_height
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 && neww =3D=3D emacsframe->n= ew_width))
+=C2=A0 =C2=A0 =C2=A0 && (!emacsframe->new_size_p
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 || (newh =3D=3D emacsframe->new_heig= ht
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&& neww =3D=3D ema= csframe->new_width)))
=C2=A0 =C2=A0 =C2=A0 {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 NSTRACE_MSG ("No change");
=C2=A0 =C2=A0 =C2=A0 =C2=A0 return;


--
---
PEDRO ANDRES= ARANDA GUTIERREZ
Universidad Carlos III de Madrid

<= div>"Fragen sind nicht da um beantwortet zu werden.
Fragen s= ind da, um gestellt zu werden" Georg Kreisler
--0000000000002b1a3e05c1675df1--