GNU bug report logs - #69525
30.0.50; MacOS: New warnings on stderr

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Gerd Möllmann <gerd.moellmann@HIDDEN>; dated Sun, 3 Mar 2024 16:20:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 26 Jul 2024 10:34:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 26 06:34:43 2024
Received: from localhost ([127.0.0.1]:38844 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sXIHa-0003mF-K8
	for submit <at> debbugs.gnu.org; Fri, 26 Jul 2024 06:34:42 -0400
Received: from mail-ed1-f52.google.com ([209.85.208.52]:48255)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1sXIHZ-0003m2-2U
 for 69525 <at> debbugs.gnu.org; Fri, 26 Jul 2024 06:34:41 -0400
Received: by mail-ed1-f52.google.com with SMTP id
 4fb4d7f45d1cf-5a15692b6f6so2538800a12.0
 for <69525 <at> debbugs.gnu.org>; Fri, 26 Jul 2024 03:34:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721990007; x=1722594807; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=ZcyfsP4TGUmaoN/4r/vVdqrIBUr5zsANha6OjWfB3A0=;
 b=OTb7PNGU1l21l8GI99ssbE7utnc3aucYX79x1moBXUJw732zmOHSPj6uBScNNmS88W
 Ny18FC6A1f/jdDXpbbV/fLvUL3Gv6CcKfDiqfZVFZH4XcTnz2fCRt9wi/niJZDCvs2uZ
 lqvXdmLhGd1Q2tvz1XFP2YyNeVxCDNHXueljFdGOqnFZHM3gQEysJpTPAfO91hPXi3W0
 4m6g3eRnDZ91y+Qxu9bieSajx2u2sMdIOmuadXC71jIetmPhKCxr79zi/wRiyvVEqRkj
 4uEzn6RwPbZ54Tbsw937uJ/Hb0uEzs85+6aWev7Y2ixR/fJrqnqrqaGTbDyAqaWttWDo
 Xccg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721990007; x=1722594807;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=ZcyfsP4TGUmaoN/4r/vVdqrIBUr5zsANha6OjWfB3A0=;
 b=mEtJZHSU74lDxIcepaMu25Pgoe7OiH2APbdISNNcORqF0eA6SZVS9sJ246IX0xrCum
 PeIa31li6swlu3iqhON+PhzWv5UTDXPYN0V9uE/Vncu9HEnBO99PxE+JmamTYMFI1Qid
 QWBMH15ZFLHJd/RNmVh3g3GHkzfKuRmemHt80wC0DOMJfrzN0gcKyk6EUnp1YWSwYbOf
 +6Mm47PENBwSDE5h2KfCxkGTHXuJdr77b+07KTgXYkKCLU5jrWoWy8bAKPTg6TlRbhA+
 nSd8mXWj2bb9KiZp0dfU93uNTaYICS1FREGQskzAEtB2SWbE+LQLP/O4vFqrhlx34xD8
 OJQA==
X-Gm-Message-State: AOJu0YxsOPJFltFpIuFb+s7IYu8+sKiQrBzibSwkpLuyefgh3S3V2/+Q
 AZv43L5/hzkNyPOTzNK7pwft3Wenx2DzfF9IOWlo4sTyfBpgLinX
X-Google-Smtp-Source: AGHT+IGxVL4nbDmXeBNsJqs32at+SCm24dYGjFvL5yQHAFsUv2UqJgl7PqDEPhXfx7Rf4gJdMNyL4Q==
X-Received: by 2002:a05:6402:51c7:b0:5a7:d986:6e4 with SMTP id
 4fb4d7f45d1cf-5ac2c1c4449mr4150099a12.28.1721990006461; 
 Fri, 26 Jul 2024 03:33:26 -0700 (PDT)
Received: from pro2.fritz.box (p4fe3a2c4.dip0.t-ipconnect.de. [79.227.162.196])
 by smtp.gmail.com with ESMTPSA id
 4fb4d7f45d1cf-5ac631b03a0sm1761760a12.2.2024.07.26.03.33.25
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 26 Jul 2024 03:33:26 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
In-Reply-To: <m27cihdz2z.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llmann?=
 =?utf-8?Q?=22's?= message of "Tue, 05 Mar 2024 06:31:16 +0100")
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN> <m2cysbmd42.fsf@HIDDEN>
 <ZeS8Kn7OXomoUeuE@HIDDEN> <m27cihdz2z.fsf@HIDDEN>
Date: Fri, 26 Jul 2024 12:33:24 +0200
Message-ID: <m2y15otpcb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> Alan Third <alan@HIDDEN> writes:
>
>>> >>> 2024-03-03 17:10:35.434255+0100 emacs[12805:61381] [CursorUI] -[TUI=
NSCursorUIController activate:]: EmacsView doesn't conform to NSTextInputCl=
ient protocol.
>>
>> I don't have the first clue about this one. NSTextInputClient has
>> apparently been around since macOS 10.5, and I haven't heard of this
>> problem before... EmacsView *should* conform to NSTextInputClient
>> because it's a subclass of NSView.
>
> I've now compared Apple's docss at
>
>   https://developer.apple.com/documentation/appkit/nstextinputclient
>
> with what's in nsterm.m, and I think it's indeed different. (Add usual
> disclaimer that I know neither ObjC nor NS.)
>
>   Apple:
>   func setMarkedText(Any, selectedRange: NSRange, replacementRange: NSRan=
ge)
>   Replaces a specified range in the receiver=E2=80=99s text storage with =
the given string and sets the selection.
>   Required
>
>   nsterm.m
>   - (void)setMarkedText: (id)aString selectedRange: (NSRange)selRange
>
>   func validAttributesForMarkedText() -> [NSAttributedString.Key]
>   Returns an array of attribute names recognized by the receiver.
>   Required
>
>   - (NSArray *)validAttributesForMarkedText
>
>   func attributedSubstring(forProposedRange: NSRange, actualRange: NSRang=
ePointer?) -> NSAttributedString?
>
>   - (NSAttributedString *)attributedSubstringFromRange: (NSRange)theRange
>
>   func insertText(Any, replacementRange: NSRange)
>   Inserts the given string into the receiver, replacing the specified con=
tent.
>   Required
>
>   - (void)insertText: (id)aString
>
> Stopped here.

Apple's documentation says

  Important
=20=20
  NSTextInput protocol is slated for deprecation. Please use the
  NSTextInputClient protocol instead.

I guess that's the reason for the warning, and we should switch to using
NSTextInputClient.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 26 Jul 2024 09:57:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 26 05:57:41 2024
Received: from localhost ([127.0.0.1]:38810 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sXHhk-0002l0-RA
	for submit <at> debbugs.gnu.org; Fri, 26 Jul 2024 05:57:41 -0400
Received: from mail-lf1-f50.google.com ([209.85.167.50]:51651)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1sXHhj-0002kn-1S
 for 69525 <at> debbugs.gnu.org; Fri, 26 Jul 2024 05:57:40 -0400
Received: by mail-lf1-f50.google.com with SMTP id
 2adb3069b0e04-52f025bc147so1446821e87.3
 for <69525 <at> debbugs.gnu.org>; Fri, 26 Jul 2024 02:57:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721987784; x=1722592584; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=jDD2g4RDGXacA9El5AHpE2xwKfXD3risY2EE8GekaMU=;
 b=hU6zJ4CXt2QYObT55HzKZaTYSjloz5MsWc0AalUg8E7TcBfvlz7r/fE3w65fODGcRN
 b57LFNfuXhZSxsOQ5mcXl8GWMZ2hT/FUan1cC7oVB87/Ns6h01x0hVOlcC2Qya+ry8J3
 8EMY0rgfeq2dJEcQR//FCFL1I7CI3Wa8AYh9dw3cF6htA2HRwJAbQORc98lPuyS/NM0p
 Y6XwutvvmwjpGZSh9SScwNkr5rAapQzhqd1YpeLOLAFtnnsyqfJCmMAIWa9z4Wh1EVCj
 vqGqi7iwBn+wWi4QgCOBTGoomJbouyTRYQj8C6ty7NCdnnOcIocCGPYXn2FofIF4+QcV
 c+JA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721987784; x=1722592584;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=jDD2g4RDGXacA9El5AHpE2xwKfXD3risY2EE8GekaMU=;
 b=N39pqScqkhyj6BPxuDrnZhRLC+NnkaU0uqJ8J20I1+n3A0J/CzXP8wn6/iAQ8v2Epv
 XMTnosOg6NZAP+TT5YUyfTCxXZhakhWx+iuEqj6enQZiPIO4BdMbeze0SzkHj+VXIYa2
 m5MElJYLcJy+mc6CXF+xPT4T/IJ1viGfjQG4CcerjePDBLQL8MOivz1D/OiIab/lSRT8
 pKz4rQJw5lmySsyAtoVflSO9qLH5oEsWm0jfKDH1/B4jCGcs3XxyKFqkGUUCmhhPUYYl
 Xhnx5zmbLQ3m5PvkcwS7UPPMnXRPGE/M6BdZo4f/tYtp0PP8fTaLxNo/idis61JJ8BUc
 WrvA==
X-Gm-Message-State: AOJu0YwUM9hqbU+/a8Ld/G2RFC+UABIIJMn71UMQw6yvNMFyth3+cv2P
 3JNJco6s6cELOQHiI+nUQVgjEzmnSMnLOiF+N1CMvJZxwTQxh7BO23/EgQ==
X-Google-Smtp-Source: AGHT+IGE/1O2M2g2LnA5CIWB/tmHG+R/K64VOqoCQE/KAfRoyV/NtFE0W6be2+yccEOrAglA9L4nmw==
X-Received: by 2002:a05:6512:308d:b0:52e:be14:7012 with SMTP id
 2adb3069b0e04-52fd3f24d19mr3959195e87.32.1721987783973; 
 Fri, 26 Jul 2024 02:56:23 -0700 (PDT)
Received: from pro2.fritz.box (p4fe3a2c4.dip0.t-ipconnect.de. [79.227.162.196])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-a7acad90130sm158938566b.144.2024.07.26.02.56.22
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 26 Jul 2024 02:56:23 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: 69525 <at> debbugs.gnu.org
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
In-Reply-To: <m2zfvfs2zh.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llmann?=
 =?utf-8?Q?=22's?= message of "Sun, 03 Mar 2024 17:18:42 +0100")
References: <m2zfvfs2zh.fsf@HIDDEN>
Date: Fri, 26 Jul 2024 11:56:21 +0200
Message-ID: <m21q3geat6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 69525
Cc: Alan Third <alan@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> The following warnings are printed to stderr, which I haven't seen
> previously. Maybe canBecomeKeyWindow should be implemented?
>
> 2024-03-03 17:10:16.334906+0100 emacs[12805:61381] [Window] Warning: -[NS=
Window makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned N=
O from -[NSWindow canBecomeKeyWindow].
> 2024-03-03 17:10:35.434255+0100 emacs[12805:61381] [CursorUI] -[TUINSCurs=
orUIController activate:]: EmacsView doesn't conform to NSTextInputClient p=
rotocol.
> 2024-03-03 17:10:37.073109+0100 emacs[12805:61381] [Window] Warning: -[NS=
Window makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned N=
O from -[NSWindow canBecomeKeyWindow].
> 2024-03-03 17:13:19.141805+0100 emacs[12805:61381] [CursorUI] -[TUINSCurs=
orUIController activate:]: EmacsView doesn't conform to NSTextInputClient p=
rotocol.
>
> In GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin23.3.0, NS
>  appkit-2487.40 Version 14.3.1 (Build 23D60)) of 2024-03-01 built on
>  Pro.fritz.box
> Repository revision: 862dfef88d8e62d12bac3ca2e44e035a2ff5b298
> Repository branch: master
> Windowing system distributor 'Apple', version 10.3.2487
> System Description:  macOS 14.3.1

The attached patch fixes this for me, and seems logical.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-NS-prevent-makeKeyWindow-warnings-bug-69525.patch
Content-Description: makeKeyWindow

From c447ae1512cb274b5f7d47ffe479520c12392c67 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gerd=20M=C3=B6llmann?= <gerd@HIDDEN>
Date: Fri, 26 Jul 2024 11:48:24 +0200
Subject: [PATCH] NS: prevent makeKeyWindow warnings (bug#69525)

* src/nsterm.m (ns_raise_frame): Don't makeKeyWindow if frame has
no_accept_focus set.
---
 src/nsterm.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index b9193f62e80..cd6ffabddde 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1413,7 +1413,7 @@ -(void)remove
   block_input ();
   if (FRAME_VISIBLE_P (f))
     {
-      if (make_key)
+      if (make_key && !f->no_accept_focus)
         [[view window] makeKeyAndOrderFront: NSApp];
       else
         [[view window] orderFront: NSApp];
-- 
2.45.2


--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 5 Mar 2024 14:33:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 05 09:33:27 2024
Received: from localhost ([127.0.0.1]:47003 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rhVrD-0005MJ-6x
	for submit <at> debbugs.gnu.org; Tue, 05 Mar 2024 09:33:27 -0500
Received: from mail-ed1-f46.google.com ([209.85.208.46]:55299)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1rhVrB-0005M6-DP
 for 69525 <at> debbugs.gnu.org; Tue, 05 Mar 2024 09:33:26 -0500
Received: by mail-ed1-f46.google.com with SMTP id
 4fb4d7f45d1cf-56698eb5e1dso7539265a12.2
 for <69525 <at> debbugs.gnu.org>; Tue, 05 Mar 2024 06:32:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1709649109; x=1710253909; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=B8MuoL69ZjXcxQHG+xUf9UZqpd+eVJ3UR9wqdSK11o8=;
 b=fGWhPTP8hYY6kyVN5QRxqUg5usRRoM1zz1Q4McI/IYp295+td+xdvvb1XIX3wksryP
 xVexb1/wCiicMWBxfu8KyhuhNhrBSVLWrGHTyBacHcp6zkcjQ8tgPm7mpXx+Jxl/C5F4
 8LYoXMMy4JN3s0xKA8YCTuWlK2CsGcd6mKD0DJfE0hP4myYgCUIT8a9zfyreXZE7g4j+
 pOiiVf6qz+99q5w9HpmgOsWezLJgKBkdO1EY9v9wmGCb+EdOfs7iOS+V2YcXzpSsEC0E
 J9PxTm0WlNnffFR5O/8ft4A7uuURszpmMl8xCRmVtCSjntzU6GrA6peNwAUtekzBpp30
 e73A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1709649109; x=1710253909;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=B8MuoL69ZjXcxQHG+xUf9UZqpd+eVJ3UR9wqdSK11o8=;
 b=RD380joLp0AP1B0tCKjw0tg3nJjLlBLr0tgfaJjVphNvt9vr9Bd4+u3irRBLULAaiG
 +Bgu4H4ktYUFEcLw+CJPmZmm38GqvTM8FRaiiJ7je06rcEfuIl+3u4Is1fnyhorvW5Zp
 b5VClv2iDOCPxeU4oTbNRdw2qSwOS+v/1Cnk+jYo0aTNfWLqPuTlWIqsNFqWxCcm6BIb
 P+DOTpQZXMiCWRjKv8DitdbGtVSwIwUcCExWW2hEEEOKXDplAzGPphA89qwiq9MuFShr
 vfcfQ2aWn3nEc4j0WlXdQwcrV6gIY28Y5exaBaL0kw85xvrRK4cz6KTumL6zUIXd5tIV
 GWVQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCVmxr9SlI/SFC/NxqvigGguAWG8ohZsGtODzBFu6Pb4EXMuNtWBXPIuBwtWz5HGcxfYakAH4vHMX5Sdf6z2JCDsDgJKoSs=
X-Gm-Message-State: AOJu0Yzg7zdHFad+ztOYdl/h8LuT+T7RT4UGYPPX6YD2dBHe9MvAtlCU
 teilGHE6c6l+1pZIV/y0c4EGZWB3lGH6PQ7rQwEH5FkDWhbIG2HNaKZBXdii
X-Google-Smtp-Source: AGHT+IHT/Mug7FIMkDEqEtq8F4BAJB4NJJKdQtW8k/VZQN/wHUih5MgRG/nrOVXEvYeKv9x4yDnoNQ==
X-Received: by 2002:a50:c90d:0:b0:566:8054:562 with SMTP id
 o13-20020a50c90d000000b0056680540562mr9199538edh.3.1709649108929; 
 Tue, 05 Mar 2024 06:31:48 -0800 (PST)
Received: from Pro.fritz.box (pd9e367d6.dip0.t-ipconnect.de. [217.227.103.214])
 by smtp.gmail.com with ESMTPSA id
 c6-20020a056402100600b0056536eed484sm5892931edu.35.2024.03.05.06.31.48
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 05 Mar 2024 06:31:48 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
In-Reply-To: <ZecXMr3L_eosH2__@HIDDEN> (Alan Third's message of "Tue, 5
 Mar 2024 12:59:30 +0000")
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN> <m2cysbmd42.fsf@HIDDEN>
 <ZeS8Kn7OXomoUeuE@HIDDEN> <m2r0gqm7jv.fsf@HIDDEN>
 <ZeY_trSuSV42UIMq@HIDDEN> <m2edcpe1j1.fsf@HIDDEN>
 <ZecXMr3L_eosH2__@HIDDEN>
Date: Tue, 05 Mar 2024 15:31:47 +0100
Message-ID: <m25xy0hhrg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Alan Third <alan@HIDDEN> writes:

> On Tue, Mar 05, 2024 at 05:38:26AM +0100, Gerd M=C3=B6llmann wrote:
>> Alan Third <alan@HIDDEN> writes:
>>=20
>> > I wonder if this is something we're doing (like makeKeyAndOrderFront
>> > being called on the new frame and it not checking canBecomeKeyWindow)
>> > or if there's some other step we need to take to prevent this. I'm
>> > fairly sure that I've never seen these warnings so presumably they're
>> > new since 10.14.
>>=20
>> You are thinking of this in nsterm.m?
>>=20
>>   - (void)makeKeyAndOrderFront:(id)sender
>>   {
>>     NSTRACE ("[EmacsWindow makeKeyAndOrderFront:]");
>>=20
>>     if ([self parentWindow])
>>       {
>>         [self orderFront:sender];
>>         [self makeKeyWindow];
>>       }
>>     else
>>       [super makeKeyAndOrderFront:sender];
>>   }
>
> Yes. I think it's the only place we actually call makeKeyWindow
> ourselves, so perhaps it should have a test. Could be worth it just to
> see if it makes the messages go away.
>
> So I guess just something like
>
>     if ([self canBecomeKeyWindow])
>       [self makeKeyWindow];

Alas, that didn't work. I replaced the whole method body with the 2
lines, but then the Emacs frame wouldn't show up on start. There are
some calls to makeKeyWindow in other .m files, BTW.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 5 Mar 2024 13:00:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 05 08:00:13 2024
Received: from localhost ([127.0.0.1]:46918 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rhUOz-0006XZ-Bn
	for submit <at> debbugs.gnu.org; Tue, 05 Mar 2024 08:00:13 -0500
Received: from dane.soverin.net ([185.233.34.150]:33973)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alan@HIDDEN>) id 1rhUOu-0005sl-SI
 for 69525 <at> debbugs.gnu.org; Tue, 05 Mar 2024 08:00:12 -0500
Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by dane.soverin.net (Postfix) with ESMTPS id 4Tpwd01g8zz56;
 Tue,  5 Mar 2024 12:59:32 +0000 (UTC)
Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net
 (Postfix) with ESMTPSA id 4Tpwcz2tl8z3v; 
 Tue,  5 Mar 2024 12:59:31 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin;
 t=1709643572; bh=nXAeF1glnaBN0VIc6flpg1pJGQ7yFbciL9+RctP0LiE=;
 h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
 b=XGOWjCxjHifiQT9IdyIBBu7INAT2fWMG9U5PPuLTtCfTDKncVcjJ79kRZl/rdf3GI
 nCvDrJMhRNa95nRGfSR5IKtpeeqHkNHuAD6hXDVY++iZaPIvdZvRPZXtnVC12r86cN
 xTCXU3MW66k9VSPCICHZk8QsTwJJ10GtwQuyyLCy6jVWmY5bz6zd0agGvsvnghMika
 +auAQWNK4baKGVkysj+zgwJTmvYDw070zWyfjgRskmcu+3mOLT/Zo8iwxMdLf1hgs4
 Suc/ok7C0YaT/wk3usyC68FmgBElPCAFhRtelsL/8XI1LgzpjUcmFS0CxpbVVtkabZ
 pkkFi5YHqfZtA==
Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96)
 (envelope-from <alan@HIDDEN>) id 1rhUOI-001nWg-0a;
 Tue, 05 Mar 2024 12:59:30 +0000
Date: Tue, 5 Mar 2024 12:59:30 +0000
From: Alan Third <alan@HIDDEN>
To: Gerd =?iso-8859-1?Q?M=F6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
Message-ID: <ZecXMr3L_eosH2__@HIDDEN>
Mail-Followup-To: Alan Third <alan@HIDDEN>,
 Gerd =?iso-8859-1?Q?M=F6llmann?= <gerd.moellmann@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>, 69525 <at> debbugs.gnu.org
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN> <m2cysbmd42.fsf@HIDDEN>
 <ZeS8Kn7OXomoUeuE@HIDDEN> <m2r0gqm7jv.fsf@HIDDEN>
 <ZeY_trSuSV42UIMq@HIDDEN> <m2edcpe1j1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <m2edcpe1j1.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Tue, Mar 05, 2024 at 05:38:26AM +0100, Gerd Möllmann wrote:
> Alan Third <alan@HIDDEN> writes:
> 
> > I wonder if this is something we're doing (like makeKeyAndOrderFront
> > being called on the new frame and it not checking canBecomeKeyWindow)
> > or if there's some other step we need to take to prevent this. I'm
> > fairly sure that I've never seen these warnings so presumably they're
> > new since 10.14.
> 
> You are thinking of this in nsterm.m?
> 
>   - (void)makeKeyAndOrderFront:(id)sender
>   {
>     NSTRACE ("[EmacsWindow makeKeyAndOrderFront:]");
> 
>     if ([self parentWindow])
>       {
>         [self orderFront:sender];
>         [self makeKeyWindow];
>       }
>     else
>       [super makeKeyAndOrderFront:sender];
>   }

Yes. I think it's the only place we actually call makeKeyWindow
ourselves, so perhaps it should have a test. Could be worth it just to
see if it makes the messages go away.

So I guess just something like

    if ([self canBecomeKeyWindow])
      [self makeKeyWindow];

-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 5 Mar 2024 05:32:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 05 00:32:57 2024
Received: from localhost ([127.0.0.1]:45678 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rhNQ9-0007XJ-DC
	for submit <at> debbugs.gnu.org; Tue, 05 Mar 2024 00:32:57 -0500
Received: from mail-ed1-f48.google.com ([209.85.208.48]:52578)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1rhNQ6-0007Wt-AO
 for 69525 <at> debbugs.gnu.org; Tue, 05 Mar 2024 00:32:55 -0500
Received: by mail-ed1-f48.google.com with SMTP id
 4fb4d7f45d1cf-5673f7b3196so2464316a12.1
 for <69525 <at> debbugs.gnu.org>; Mon, 04 Mar 2024 21:32:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1709616678; x=1710221478; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=dmOnm2bS83dHmitL4Azm/H8zdP1Fua8i8O0XDBlzXjg=;
 b=kH3/kIAPm9kBKQUVdMJRVTLtgKSI6vgwI2jSzcfeekPPY8k6X9I57uecJvGUCLbsY8
 Fj6u6p47E0wmozqxjt3vucSJiVD7UKBjlTNNkPO43f7aWyYYoqTWM7S0bfaWvfXLoPct
 LBeYG5LL8rDtn4vRZ/pMWh10fjKqiGyjKKXa4vsXSaKb+XL2mzjD7QBqa3tjR1RUwWgU
 TyhnmZGgXvsfZdHm+UUskrHFT+bAPDj4m7zvA5VLpaJyxs4kmJxdZzMc+Po7fYBGhevp
 m0VF+gNYRcATZV6w9fOeYFAurw9p7WBiWcsTzpc0aWoJB6LQS0JKWxfSpSbMLBZaecFk
 NEqA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1709616678; x=1710221478;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=dmOnm2bS83dHmitL4Azm/H8zdP1Fua8i8O0XDBlzXjg=;
 b=GA4dex20PkHBXhUfAnvyG+FxaQ0HT7YtvRQkvLr6uxfgC3KGlxjf7zefV4xw3pmj4B
 MK0E69CWQ/AXtOFExe8VW/DyX+NrRz80LSa+ozzdZoMbyxQ7vULtdBKSNwJy5Qiq+GJG
 q7oRuPfeAUQJI+g4Hfyexfi91f1MRWyhxKDij7zQd0322aWhvX61NvzSRzbOLJOZjDEz
 FqPNA8+mpey4VxnLTKCk78v+YZoK28UuNBh68WPICCHsSPys5FVy2DLMgCn10KwN+VRw
 OBDeN3R1np8A9rdVX2Ft2nhwMIX8hAqM9SIdjj7mhhu+4tMWXZIgFVujsYz07qR+ZPWj
 uR8w==
X-Forwarded-Encrypted: i=1;
 AJvYcCUCInIPcyl0GVhbh3VWf4MWc9Q2E/RJ2FgyDJbdSolOk4RFklWGCs6mwYzuV9NdjKvfoqDhqyWd6Y3J6WdBwB5Az0Cj8/U=
X-Gm-Message-State: AOJu0Yzo16c9WzXuzmjEDW756tvqzM7rZT/dueMRG9TFugpExwWOKKvw
 dEJYS1096IvQFSAdUqHVGgeizPRdD8wNchG/68Yk3VKlK/ULuNtx5ItMHCLs
X-Google-Smtp-Source: AGHT+IFr7A61b2sK6HHWKf2+/xbi1HJ1BLVEB/uLMRyRt8PqhrHJ6y2iszlhYlcbVKpm6WhVGXMp9A==
X-Received: by 2002:a17:906:364d:b0:a44:4f9f:1271 with SMTP id
 r13-20020a170906364d00b00a444f9f1271mr7809520ejb.39.1709616677990; 
 Mon, 04 Mar 2024 21:31:17 -0800 (PST)
Received: from Pro.fritz.box (pd9e367d6.dip0.t-ipconnect.de. [217.227.103.214])
 by smtp.gmail.com with ESMTPSA id
 fw17-20020a170906c95100b00a4576dd5a8csm1284989ejb.201.2024.03.04.21.31.17
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 04 Mar 2024 21:31:17 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
In-Reply-To: <ZeS8Kn7OXomoUeuE@HIDDEN> (Alan Third's message of "Sun, 3
 Mar 2024 18:06:34 +0000")
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN> <m2cysbmd42.fsf@HIDDEN>
 <ZeS8Kn7OXomoUeuE@HIDDEN>
Date: Tue, 05 Mar 2024 06:31:16 +0100
Message-ID: <m27cihdz2z.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Alan Third <alan@HIDDEN> writes:

>> >>> 2024-03-03 17:10:35.434255+0100 emacs[12805:61381] [CursorUI] -[TUIN=
SCursorUIController activate:]: EmacsView doesn't conform to NSTextInputCli=
ent protocol.
>
> I don't have the first clue about this one. NSTextInputClient has
> apparently been around since macOS 10.5, and I haven't heard of this
> problem before... EmacsView *should* conform to NSTextInputClient
> because it's a subclass of NSView.

I've now compared Apple's docss at

  https://developer.apple.com/documentation/appkit/nstextinputclient

with what's in nsterm.m, and I think it's indeed different. (Add usual
disclaimer that I know neither ObjC nor NS.)

  Apple:
  func setMarkedText(Any, selectedRange: NSRange, replacementRange: NSRange)
  Replaces a specified range in the receiver=E2=80=99s text storage with th=
e given string and sets the selection.
  Required

  nsterm.m
  - (void)setMarkedText: (id)aString selectedRange: (NSRange)selRange

  func validAttributesForMarkedText() -> [NSAttributedString.Key]
  Returns an array of attribute names recognized by the receiver.
  Required

  - (NSArray *)validAttributesForMarkedText

  func attributedSubstring(forProposedRange: NSRange, actualRange: NSRangeP=
ointer?) -> NSAttributedString?

  - (NSAttributedString *)attributedSubstringFromRange: (NSRange)theRange

  func insertText(Any, replacementRange: NSRange)
  Inserts the given string into the receiver, replacing the specified conte=
nt.
  Required

  - (void)insertText: (id)aString

Stopped here.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 5 Mar 2024 04:40:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 04 23:40:08 2024
Received: from localhost ([127.0.0.1]:45637 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rhMb1-0005Ux-1r
	for submit <at> debbugs.gnu.org; Mon, 04 Mar 2024 23:40:07 -0500
Received: from mail-ej1-f52.google.com ([209.85.218.52]:47181)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1rhMaw-0005UC-Kb
 for 69525 <at> debbugs.gnu.org; Mon, 04 Mar 2024 23:40:04 -0500
Received: by mail-ej1-f52.google.com with SMTP id
 a640c23a62f3a-a26ed1e05c7so876628166b.2
 for <69525 <at> debbugs.gnu.org>; Mon, 04 Mar 2024 20:39:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1709613506; x=1710218306; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=wnvn3glPRKzZE/Z8NEiEXVNfJqyn8gC8BWt+RSk/wbI=;
 b=QrQO3KZKVPTYY2qQXyy364vD0F2FJbCREpHUaxYD87tAGt8ixgv1VTNFXzGppUpUTN
 p9ZSkXplBZux1pmkb8NYzXnGV3mpucRdGzvhSsQzjbQAjOhV49m4ghSOL0mcSPGPzsvY
 bQZhbtnN1cewaclHUhnL6ni3SiP+Us127/jHZC7U6Yj9j/5nIe8PM0144MBeQ4aAdMgU
 vWjqNKXVBhqg27Gwu9NqqM19m2YPURpCM7pqYGOv/6CXWRvvpjUO++MGM6nBJekgH8Lq
 wJsLVRCkeOsgWyD+eWKaQrcZjM7X5bqIJ5lMFt1EKmTU8a5sc20V4tSjf4x1HxqGnGBn
 PPZQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1709613506; x=1710218306;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=wnvn3glPRKzZE/Z8NEiEXVNfJqyn8gC8BWt+RSk/wbI=;
 b=DjMFyu+DJKHd5Ni4yVk9jjaajoY4duO32IFAiFW16uzVKCHEF6DfBV+g3zwTNt/awZ
 4JyOFKCfE+A08OFTFlLvqUIdHB0lNhaP/40Bxp47ScgZYupYOY5bklEvSTPPuF2B0Q0p
 8SBqCDzig2u6zQHq27TPxeWU14kPeBv0IGIy+yRvLpjgJnml82PMlzZKBgshKq3EPowD
 92xuxDgZLivWP9cmEDnJ2cnxaTlMiZDg+WRaciIbB74uhWlmKwm2pDnmDl0kY0Hwd9e/
 CpSIg6dX3uzxhFu9WpXh1o6GrzKNxoL0ubT2B/+NuRces8k/PftfNnzcClX2P7vAjnww
 j/xQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCVCgeEfz7Sh9bMZb69/XOqJgPElkW37CswEWjo5BPqsZm0dnuiY/1S0Flq8AWMEDRAMYc02VHORUE4ERxz+0H//OFo7VMo=
X-Gm-Message-State: AOJu0Yxr9mCs4sGP+SuU0dckc7acJmUw7WfzL6gK1XNr8nfe7++3cf47
 BolSgXJQJUyGOoI0oV03Z/lbxvN7uKCr9gAYASJh2mZpBqCHoc4yHLsf0jqn
X-Google-Smtp-Source: AGHT+IEVdtsLIFd/3oHVivOOd2ocGS5UYGKbnG1SJyElaxW4ItLUsGVt1SOnAqA981uemT9JzKlyJA==
X-Received: by 2002:a17:906:3c17:b0:a43:d853:98f1 with SMTP id
 h23-20020a1709063c1700b00a43d85398f1mr7366778ejg.17.1709613505814; 
 Mon, 04 Mar 2024 20:38:25 -0800 (PST)
Received: from Pro.fritz.box (pd9e367d6.dip0.t-ipconnect.de. [217.227.103.214])
 by smtp.gmail.com with ESMTPSA id
 gc9-20020a170906c8c900b00a4498726bb9sm4395830ejb.173.2024.03.04.20.38.25
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 04 Mar 2024 20:38:25 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
In-Reply-To: <ZeY_trSuSV42UIMq@HIDDEN> (Alan Third's message of "Mon, 4
 Mar 2024 21:40:06 +0000")
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN> <m2cysbmd42.fsf@HIDDEN>
 <ZeS8Kn7OXomoUeuE@HIDDEN> <m2r0gqm7jv.fsf@HIDDEN>
 <ZeY_trSuSV42UIMq@HIDDEN>
Date: Tue, 05 Mar 2024 05:38:26 +0100
Message-ID: <m2edcpe1j1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Alan Third <alan@HIDDEN> writes:

>> Found out how to reproduce this with emacs -Q. In scratch, eval
>> 
>>   (make-frame (list (cons 'parent-frame (selected-frame))
>> 		    (cons 'no-accept-focus t)))
>> 
>> This looks to me like some function in ELPA package consult uses
>> no-accept-focus t, so that nsterm.m returns NO from canBecomeKeyWindow.
>> Consult with posframe seems to work anyway, so...
>
> We should be able to create a frame without the system throwing out
> errors, though. 

True.

> I wonder if this is something we're doing (like makeKeyAndOrderFront
> being called on the new frame and it not checking canBecomeKeyWindow)
> or if there's some other step we need to take to prevent this. I'm
> fairly sure that I've never seen these warnings so presumably they're
> new since 10.14.

You are thinking of this in nsterm.m?

  - (void)makeKeyAndOrderFront:(id)sender
  {
    NSTRACE ("[EmacsWindow makeKeyAndOrderFront:]");

    if ([self parentWindow])
      {
        [self orderFront:sender];
        [self makeKeyWindow];
      }
    else
      [super makeKeyAndOrderFront:sender];
  }





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 4 Mar 2024 21:40:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 04 16:40:45 2024
Received: from localhost ([127.0.0.1]:45068 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rhG3B-00034p-EZ
	for submit <at> debbugs.gnu.org; Mon, 04 Mar 2024 16:40:45 -0500
Received: from dane.soverin.net ([185.233.34.157]:58099)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alan@HIDDEN>) id 1rhG39-00034b-1z
 for 69525 <at> debbugs.gnu.org; Mon, 04 Mar 2024 16:40:43 -0500
Received: from smtp.soverin.net (unknown [10.10.4.74])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by dane.soverin.net (Postfix) with ESMTPS id 4TpXD70qcWzyf9;
 Mon,  4 Mar 2024 21:40:07 +0000 (UTC)
Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net
 (Postfix) with ESMTPSA id 4TpXD63dzCz1R; 
 Mon,  4 Mar 2024 21:40:06 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin;
 t=1709588407; bh=WtibO7NHk48WxuJtatfKG+JOObXSEyXpILFfzUO8tPE=;
 h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
 b=WUFdr0ui/gZ9SwvlcQ+P1z8LlEAqWZbatgxADlelgXgGZ8pz5V85ycU6s0eezGtjV
 qBEK9H2iNeXIwpZEIjvW+QM1wGBIe8aLthsoIDHWTB0Sk5a9zXDKfrefUCJwbuXELe
 DadIVwPoMqCn0rr9cwEBjnO+81wL65UeN2gWu2T3ECijsN63vmSELekEBwmL/W1hGT
 lnsmU+zvNZ8TcD8a1DNlCxiu1Db+wRPjAKNS2iobh+OiaqZXwAL+xFt0iFJ2F+NCaq
 uoEhNUBTzg6WbQ2XdJ3sBXuc0/pfqC2uU2IJhY4/s/QlYf1FJqK+zqZgfh5e7eVjBE
 FpTPxS1neZg8w==
Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96)
 (envelope-from <alan@HIDDEN>) id 1rhG2Y-001mk1-06;
 Mon, 04 Mar 2024 21:40:06 +0000
Date: Mon, 4 Mar 2024 21:40:06 +0000
From: Alan Third <alan@HIDDEN>
To: Gerd =?iso-8859-1?Q?M=F6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
Message-ID: <ZeY_trSuSV42UIMq@HIDDEN>
Mail-Followup-To: Alan Third <alan@HIDDEN>,
 Gerd =?iso-8859-1?Q?M=F6llmann?= <gerd.moellmann@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>, 69525 <at> debbugs.gnu.org
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN> <m2cysbmd42.fsf@HIDDEN>
 <ZeS8Kn7OXomoUeuE@HIDDEN> <m2r0gqm7jv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <m2r0gqm7jv.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Mon, Mar 04, 2024 at 02:48:52PM +0100, Gerd Möllmann wrote:
> Alan Third <alan@HIDDEN> writes:
> 
> > On Sun, Mar 03, 2024 at 06:36:29PM +0100, Gerd Möllmann wrote:
> >> Gerd Möllmann <gerd.moellmann@HIDDEN> writes:
> >> 
> >> > Eli Zaretskii <eliz@HIDDEN> writes:
> >> >
> >> >>> From: Gerd Möllmann <gerd.moellmann@HIDDEN>
> >> >>> Date: Sun, 03 Mar 2024 17:18:42 +0100
> >> >>>
> >> >>> The following warnings are printed to stderr, which I haven't seen
> >> >>> previously. Maybe canBecomeKeyWindow should be implemented?
> >> >>>
> >> >>> 2024-03-03 17:10:16.334906+0100 emacs[12805:61381] [Window] Warning: -[NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned NO from -[NSWindow canBecomeKeyWindow].
> >
> > Odd, Apple's documentation says:
> >
> >     The value of this property is YES if the window can become the key
> >     window, otherwise, NO.
> >     
> >     Attempts to make the window the key window are abandoned if the
> >     value of this property is NO. The value of this property is YES if
> >     the window has a title bar or a resize bar, or NO otherwise.
> >
> > Is there anything unusual about your frames?
> 
> Found out how to reproduce this with emacs -Q. In scratch, eval
> 
>   (make-frame (list (cons 'parent-frame (selected-frame))
> 		    (cons 'no-accept-focus t)))
> 
> This looks to me like some function in ELPA package consult uses
> no-accept-focus t, so that nsterm.m returns NO from canBecomeKeyWindow.
> Consult with posframe seems to work anyway, so...

We should be able to create a frame without the system throwing out
errors, though. I wonder if this is something we're doing (like
makeKeyAndOrderFront being called on the new frame and it not checking
canBecomeKeyWindow) or if there's some other step we need to take to
prevent this. I'm fairly sure that I've never seen these warnings so
presumably they're new since 10.14.

-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 4 Mar 2024 14:44:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 04 09:44:54 2024
Received: from localhost ([127.0.0.1]:42686 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rh9Yk-0007hm-AN
	for submit <at> debbugs.gnu.org; Mon, 04 Mar 2024 09:44:54 -0500
Received: from mail-ej1-f48.google.com ([209.85.218.48]:43115)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1rh9Yh-0007hW-BS
 for 69525 <at> debbugs.gnu.org; Mon, 04 Mar 2024 09:44:52 -0500
Received: by mail-ej1-f48.google.com with SMTP id
 a640c23a62f3a-a3ddc13bbb3so928093566b.0
 for <69525 <at> debbugs.gnu.org>; Mon, 04 Mar 2024 06:44:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1709563396; x=1710168196; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=8YWD0TQlWFeyXVcGaC+KfvDlCGvs+WGewjd+gp7NJ6s=;
 b=OOyq8dbVtO9RC7pLME2s4DBYUHYgkecfJavkkudNo+XqvORcQKerC3xiauUC2KnwoH
 fHlgft/ukPjFFRilUUvMq6UZnPOos/+7dm2SM4qz9vc1REllnVdBLg1oTBmNQCtHUZO5
 FswGXjfxggOg8g7yZOhGAsXYgFO44ZTOe/stuyi6MvTpmaR90WHfp/QXq7nXZyDmLvYz
 MzAhEJD0Tfg6q12eBSkQfEj5MZ6F7VyDQoAZO2nB3jBy77z/bqoZp0okc1REJFAfqkLm
 AHNxVZiPqnQrnI0d+85L2j8eAxAoGm+nntFhgTXIjaF6Idc15hJL2zMgscDTWRdnhD/p
 UsnQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1709563396; x=1710168196;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=8YWD0TQlWFeyXVcGaC+KfvDlCGvs+WGewjd+gp7NJ6s=;
 b=eBPz0vwjXAphTJj8/dt3zpTAJddqGg7fwkzFt0TMCabkBD7HY1ielzNaxoTW/hW1fF
 8jVVnHWN6kHN/wrSSySs36FXl3fs9nFga0G88wqpeU9jdd6YApAOKUyeLjtw0w+z99lt
 bfA4qk61t+VIJXn+Xtw9JHCBAJQGP9teOQgbmnvOU6ktlw06Vk3j0XQ/TlrH0uajIGD6
 jAgy8hXvteK1MF1vzrMeDmLJeLRKlS6WfvABr4lTMdIlawp9kg6H3KsCC1hiPkRhc5BZ
 SaUyc5izPnS4epDl/KsC3Z00tUJtR56WDZZJ3EAQksDnsCtnvQ8Zo+s32E5zKvy9e93+
 GdGQ==
X-Gm-Message-State: AOJu0Yx77Fyg8n7V9t3OE0J2JarcLhICel4N7yp2tT7G5HS+r/y7D2Sy
 aGCCizSseBe7fX2BK1NKpZnqSzjCoQPFpXtzJc5+/oWyiVng5jXX
X-Google-Smtp-Source: AGHT+IGwv21/eaWB1C+Ec5Ai2I2OmmvjX50gIvus3NKGGcSMRUYEqcyXJGjaytywQYGVq3B6uCffDA==
X-Received: by 2002:a17:906:7f0f:b0:a3f:d260:4a72 with SMTP id
 d15-20020a1709067f0f00b00a3fd2604a72mr8670475ejr.27.1709563395612; 
 Mon, 04 Mar 2024 06:43:15 -0800 (PST)
Received: from Pro.fritz.box (pd9e368a9.dip0.t-ipconnect.de. [217.227.104.169])
 by smtp.gmail.com with ESMTPSA id
 jw11-20020a170906e94b00b00a455d78be5bsm948845ejb.9.2024.03.04.06.43.14
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 04 Mar 2024 06:43:15 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
In-Reply-To: <m2r0gqm7jv.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llmann?=
 =?utf-8?Q?=22's?= message of "Mon, 04 Mar 2024 14:48:52 +0100")
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN> <m2cysbmd42.fsf@HIDDEN>
 <ZeS8Kn7OXomoUeuE@HIDDEN> <m2r0gqm7jv.fsf@HIDDEN>
Date: Mon, 04 Mar 2024 15:43:14 +0100
Message-ID: <m2o7bum519.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> Found out how to reproduce this with emacs -Q. In scratch, eval
>
>   (make-frame (list (cons 'parent-frame (selected-frame))
> 		    (cons 'no-accept-focus t)))
>
> This looks to me like some function in ELPA package consult uses
> no-accept-focus t, so that nsterm.m returns NO from canBecomeKeyWindow.
> Consult with posframe seems to work anyway, so...

FYI, it's actually posframe. I've submitted an issue for that

  https://github.com/tumashu/posframe/issues/136




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 4 Mar 2024 13:50:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 04 08:50:34 2024
Received: from localhost ([127.0.0.1]:42587 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rh8i9-0003Zb-KB
	for submit <at> debbugs.gnu.org; Mon, 04 Mar 2024 08:50:33 -0500
Received: from mail-ej1-f48.google.com ([209.85.218.48]:47555)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1rh8i7-0003ZJ-8L
 for 69525 <at> debbugs.gnu.org; Mon, 04 Mar 2024 08:50:32 -0500
Received: by mail-ej1-f48.google.com with SMTP id
 a640c23a62f3a-a450bedffdfso173142066b.3
 for <69525 <at> debbugs.gnu.org>; Mon, 04 Mar 2024 05:50:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1709560136; x=1710164936; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=7nChCg55lisAzk8eLPIE9QX756qWue1ncYrqO1AKJOo=;
 b=WpAI4zxKR6VtZA1xugx0nd6rYrA0HaBQXFmKkGDLOkMFNABdJBV5gSyMyJ+t3ZngJa
 dkiwVHR39aZcGugA68EYgYrAuQQqEr7mv7IbvmoB38lP2jZq3mLlWBUFAw7VQpi7c9q2
 AYJJxZeuICowPNmMgF08m6u93pCstdC8EBNqTmEvPYkoKjP0Us0Wm63GweWkwXkV02Di
 tfW4f0bUiu6hynOwQz2bnw0XnEVCJpXvjlka4OyWjOuycQYB6OE3J8xD1qjWJu78KaGr
 GVH5j0UCMDxL/WEmaVg/5iKQqCYRub6l0fX+1pqVhiUI8suyPvHWTlZtZqiC/TJ5CYvv
 aumA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1709560136; x=1710164936;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=7nChCg55lisAzk8eLPIE9QX756qWue1ncYrqO1AKJOo=;
 b=w7dD5V6Jhuh4piuMZhEvthH2LqlCZhvb1N1z/QPGvX7/VPGEE6D2GBhtbpjPZWyHgb
 cxGPM9cISWssYLE9H/YkZjakAbERR69PEm9vyOW1qH2QIioe5+kT2WK1G3+tIeDU/hfp
 2pbXwg2UsNuSI1ai0vRKrRrD1F7B2VwXXx7Sw6TrovEXiWLNryuwZbHFXEbRXbs+K3ke
 19sfjE2pGVcPaK6a0PN4a2beNuoFiGSuMoQ6HMYB3ptgyQzDRb+EMW77iFpQdZe7KjzK
 iG9L35kVp0y9FEjVk+OFJ8bA0qMpW6/32iz+7E2/m5/cRIlqpuah0TDf09UQ05Swtbhz
 N3jA==
X-Forwarded-Encrypted: i=1;
 AJvYcCVH628uYBKm1I1pC69ZNs4SxmRF8mayNpKPc8JlBqqVPrhFXD5pxQnUXDRgMmF+DvGLzgDdNG82MR68YUfhhtqwJx3YDcg=
X-Gm-Message-State: AOJu0YyjvjqBJBjJcTAO/AspZQVY2Ilm2cs6J+TDvnGrbYjwKyWA+f1a
 7z6Y/pU/gDH4KgqwK1ruRiIwICuygP2piSb7AVFJwZcaOcJ6JwzGshe3HSev
X-Google-Smtp-Source: AGHT+IHIfTCIgbmsl9TKXVRlL49tXWlAhX17+DSVDnDpIU2mQPekvn6Dv4eW/STtM6o9LdaamKXlMg==
X-Received: by 2002:a17:906:6b91:b0:a45:607c:7bc5 with SMTP id
 l17-20020a1709066b9100b00a45607c7bc5mr1212615ejr.12.1709560134130; 
 Mon, 04 Mar 2024 05:48:54 -0800 (PST)
Received: from Pro.fritz.box (pd9e368a9.dip0.t-ipconnect.de. [217.227.104.169])
 by smtp.gmail.com with ESMTPSA id
 v9-20020a1709064e8900b00a4584e852e5sm262895eju.217.2024.03.04.05.48.53
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 04 Mar 2024 05:48:53 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
In-Reply-To: <ZeS8Kn7OXomoUeuE@HIDDEN> (Alan Third's message of "Sun, 3
 Mar 2024 18:06:34 +0000")
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN> <m2cysbmd42.fsf@HIDDEN>
 <ZeS8Kn7OXomoUeuE@HIDDEN>
Date: Mon, 04 Mar 2024 14:48:52 +0100
Message-ID: <m2r0gqm7jv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Alan Third <alan@HIDDEN> writes:

> On Sun, Mar 03, 2024 at 06:36:29PM +0100, Gerd M=C3=B6llmann wrote:
>> Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:
>>=20
>> > Eli Zaretskii <eliz@HIDDEN> writes:
>> >
>> >>> From: Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN>
>> >>> Date: Sun, 03 Mar 2024 17:18:42 +0100
>> >>>
>> >>> The following warnings are printed to stderr, which I haven't seen
>> >>> previously. Maybe canBecomeKeyWindow should be implemented?
>> >>>
>> >>> 2024-03-03 17:10:16.334906+0100 emacs[12805:61381] [Window] Warning:=
 -[NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which retur=
ned NO from -[NSWindow canBecomeKeyWindow].
>
> Odd, Apple's documentation says:
>
>     The value of this property is YES if the window can become the key
>     window, otherwise, NO.
>=20=20=20=20=20
>     Attempts to make the window the key window are abandoned if the
>     value of this property is NO. The value of this property is YES if
>     the window has a title bar or a resize bar, or NO otherwise.
>
> Is there anything unusual about your frames?

Found out how to reproduce this with emacs -Q. In scratch, eval

  (make-frame (list (cons 'parent-frame (selected-frame))
		    (cons 'no-accept-focus t)))

This looks to me like some function in ELPA package consult uses
no-accept-focus t, so that nsterm.m returns NO from canBecomeKeyWindow.
Consult with posframe seems to work anyway, so...

>> >>> 2024-03-03 17:10:35.434255+0100 emacs[12805:61381] [CursorUI] -[TUIN=
SCursorUIController activate:]: EmacsView doesn't conform to NSTextInputCli=
ent protocol.
>
> I don't have the first clue about this one. NSTextInputClient has
> apparently been around since macOS 10.5, and I haven't heard of this
> problem before... EmacsView *should* conform to NSTextInputClient
> because it's a subclass of NSView.

This doesn't seem to be related to the other warning. To reproduce,
start emacs -Q from a terminal and switch focus between Emacs and
Terminal.  Of course, I have no idea either what it means either.

>
>> >>
>> >> Alan, any ideas or suggestions?
>> >
>> > I think this could be related to tab-bar-mode (C-x t 2, ...), which I
>> > started using today. I'm also observing frequest beach balls (freezes)
>> > with tabs.
>>=20
>> Beach balls of death, i.e. Emacs doesn't seem to recover.
>
> Please try reverting 6acb3c5b05a7b9fb32a5336e1bb740f527571ae9. I
> expect that'll fix the freezing, but I don't know about the others.

The commit didn't make a difference, as far as the 2 warnings are
concerned.

With the freezes I'm no step further, BTW, but that's a different
subject, I guess.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 4 Mar 2024 09:14:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 04 04:14:04 2024
Received: from localhost ([127.0.0.1]:41912 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rh4OZ-0001V8-RQ
	for submit <at> debbugs.gnu.org; Mon, 04 Mar 2024 04:14:04 -0500
Received: from mail-wr1-f44.google.com ([209.85.221.44]:49358)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1rh4OY-0001UT-NX
 for 69525 <at> debbugs.gnu.org; Mon, 04 Mar 2024 04:14:03 -0500
Received: by mail-wr1-f44.google.com with SMTP id
 ffacd0b85a97d-33d8739ddd4so2276894f8f.2
 for <69525 <at> debbugs.gnu.org>; Mon, 04 Mar 2024 01:13:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1709543547; x=1710148347; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=vPomFGLoZLITUBvE1Yf+UW4RYBoClaVVZVbNahSYKn0=;
 b=RGgwG1SFGTWDdQddh5LlD5HmkICGJA9Dja3DWxQ8FP1pTWeW239D1DmrmbqR1rjmKG
 Z1QGNEF/evdzQyPiQWCNi3E6ELD2yI2sghi3PmBGShqKJ+szeUEibmZ+ucbpZ4WFAWHO
 i/StpIEPXrcYVm94vezd1ZT50cB/O7BOwk1J+tpj3xF2PavnktFXcUJAbQ2Qj39GXgaQ
 7RQ1rZGK7Qwd0lkBPyvgetO4s7kwrFa2bpHdi4RIt7jtCqqhUiMj3uOPVQpqiPvmTAww
 vuHjpNTA4YP8d5jtXdyNVX97DWdNXtnqFG92fflMxs4FroJ9YObYSB0SGvMQwb6ignLy
 89Sg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1709543547; x=1710148347;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=vPomFGLoZLITUBvE1Yf+UW4RYBoClaVVZVbNahSYKn0=;
 b=Ty0TfXenJLoAzi+ojwPowyyxevDx3U0vLNl7PUV6a0MlMVny+hH++zTBczVQMmritP
 PfAFbdwfRuQmbhPwps9HLHoB+ym/LR++Vn9vAWR+L+hGlCe2KIGKOhFARP1wJpZdVh6K
 fqljzCQL4Gyp/hTTLxpSC9CibnKr5nbJN1mtN9MmZiYTTNAhXtzNMAlezTNxrzUsuM4F
 8DApffXa0YS8Tx5ES9hJg9nrqUlKmPwRR7iscrQYDgr0dfD+F/6FnYwVzbCCfoezJvSR
 0ZiBnVeHPlE6MtG7sL2Oe3VKutLthpwXubF+rVRvik78Fy9EONe5X6qrCUOU4WOz3dbb
 jrIA==
X-Forwarded-Encrypted: i=1;
 AJvYcCUsRIHFK8c5n+U+IgKKetk5Nod4vcGmzrfstMXdaDoHWVVwmZxkVjzPknJfdGeDdynFtbEmpUgAIir19vBaJsbED/fY7z0=
X-Gm-Message-State: AOJu0YzcAEFPlwzgl0IdTj0LAeifDIrSAQQO6XwHwZ5BnccItyBDJceh
 6jBS+xdasZ30KzHCnzmN9hQ8ifT5YruZKd3cYG7ZT6YmzBTYnD7uukB2Cc5G
X-Google-Smtp-Source: AGHT+IEGtFUmiy3OMTTzVhn9A7InBYPSAkp2wzQwgd+wl/hWComoZ+IMKSqM1ZvO8C0RDyNwUUdn9g==
X-Received: by 2002:adf:e0c4:0:b0:33e:22d1:c3c with SMTP id
 m4-20020adfe0c4000000b0033e22d10c3cmr6289880wri.36.1709543546523; 
 Mon, 04 Mar 2024 01:12:26 -0800 (PST)
Received: from Pro.fritz.box (pd9e368a9.dip0.t-ipconnect.de. [217.227.104.169])
 by smtp.gmail.com with ESMTPSA id
 n13-20020a5d4c4d000000b0033cfa00e497sm11600744wrt.64.2024.03.04.01.12.25
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 04 Mar 2024 01:12:26 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
In-Reply-To: <m25xy33yhv.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llmann?=
 =?utf-8?Q?=22's?= message of "Sun, 03 Mar 2024 20:29:32 +0100")
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN> <m2cysbmd42.fsf@HIDDEN>
 <ZeS8Kn7OXomoUeuE@HIDDEN> <m25xy33yhv.fsf@HIDDEN>
Date: Mon, 04 Mar 2024 10:12:24 +0100
Message-ID: <m2zfvewebr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

>> Alan Third <alan@HIDDEN> writes:
>> Please try reverting 6acb3c5b05a7b9fb32a5336e1bb740f527571ae9. I
>> expect that'll fix the freezing, but I don't know about the others.
>
> Thanks, I'll try that tomorrow.

I did revert the commit, but I now think, the freezes might not be
related to this all:

When trying to start Emacs after the revert, Emacs froze. I have a
desktop file that loads Emacs' frame.h. And Emacs freezes only if I load
eglot in my init file, and put eglot-ensure in c-mode-common-hook.

The other freezes I saw yesterday were also while doing C stuff, so they
could be related to using Eglot as well.

Maybe it's some change in Eglot, or, below that, in Emacs process code?
If someone knows if something changed in Eglot and/or Emacs in that
department, I'd be grateful.






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 3 Mar 2024 19:31:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 03 14:31:12 2024
Received: from localhost ([127.0.0.1]:41331 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rgrYG-0004hi-Gd
	for submit <at> debbugs.gnu.org; Sun, 03 Mar 2024 14:31:12 -0500
Received: from mail-lf1-f43.google.com ([209.85.167.43]:52367)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1rgrYD-0004hS-Lx
 for 69525 <at> debbugs.gnu.org; Sun, 03 Mar 2024 14:31:10 -0500
Received: by mail-lf1-f43.google.com with SMTP id
 2adb3069b0e04-512d19e2cb8so4462411e87.0
 for <69525 <at> debbugs.gnu.org>; Sun, 03 Mar 2024 11:30:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1709494174; x=1710098974; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=xVPZgNZiHc/unEYinA/gc0PlebcIK85qS2iwH/s6buY=;
 b=V//08EQLN+a/uPH17iWsg/QMizCycDp+AmRnLWKIPe6SRlx6LQXMpwwJjisBItMEHK
 rcz5JC7vlqtfdtzx7I+cMRPvyXPclu1sLyLuCtEVwG3N26jH/Iq1HB1vdZ82NXJ/y29o
 lhEWgI+ZWOlQdBCm6NHYMlkhXsXeKX5zzz1QCLfkj4f3zrY5qQam3s6YBB6s6ilVb+F+
 ED8bsQM2YvzTNMaP+7jEhTY4mX4m2gTqLqSlq2/M+we4yAjxdQdfrdXHCoQEsyTWDoQy
 T+9CVwn6rLtdbhJXzQ/tNFM3I1sOgLT+iHu2j1As3FMtKoIiMrW/x6JjPJ0Rwamv6jVF
 q+Cw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1709494174; x=1710098974;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=xVPZgNZiHc/unEYinA/gc0PlebcIK85qS2iwH/s6buY=;
 b=HXK5W4CtF7h75IdbzppXCJkVFa3sPWmEgddzW+9tUEZRDmx2hWQ7THJWVeTpVpbdlp
 DBVhrJAwFOsyJgFuZPHKwkt6vdqsBUdMX6WHTF9pRPlzIlxVDMvCA6ktvFQRbgQ0MMjp
 f88LG4HORxtukRBnXVRNf89+jmimIXPmzhC4e8Yw50Kfjf+bfZliGCaGhSrrl9k0LarQ
 yrn29KoMC+ITG1grn3DOpOe9ZHIG4WNXi3CM4VhO6wkRLLrAfzzlbxRgIWLHxUy2F/4d
 y9A0nmxrQt+sHojRHF21vGge56LO+QGH3DEenwJocjdTUWWap73/tsLq+IhNdt7q28I0
 l6Xw==
X-Forwarded-Encrypted: i=1;
 AJvYcCXI8ph70VyEAWV9o5FEeCbcmszM/u7Ntyctuy7Z+oLuH0ji5FmKy547uVs3LYy1m0XnuU+Ked420VJDyv1USUKXqFi7byM=
X-Gm-Message-State: AOJu0YyKERLpihl0dZAy1wJRnQ1Q8MyCsXGlAYdv/foz2u+oschSXhKy
 g447hovJgUisFOSD8gRr9hQt5268zD2WbVtk3tS0AnSUZooAtFjEMPG3BEWd
X-Google-Smtp-Source: AGHT+IH0gIbslzsSdZ/2Kdhp0byc18BKvm5Qavv/fgT9+dGqL5z6gQe7/rxTscx8/KWDEpBsCsq0Dw==
X-Received: by 2002:ac2:599b:0:b0:512:f6d3:9998 with SMTP id
 w27-20020ac2599b000000b00512f6d39998mr4479830lfn.17.1709494174170; 
 Sun, 03 Mar 2024 11:29:34 -0800 (PST)
Received: from Pro.fritz.box (pd9e36601.dip0.t-ipconnect.de. [217.227.102.1])
 by smtp.gmail.com with ESMTPSA id
 vh11-20020a170907d38b00b00a3f45b80559sm3967036ejc.139.2024.03.03.11.29.33
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 03 Mar 2024 11:29:33 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
In-Reply-To: <ZeS8Kn7OXomoUeuE@HIDDEN> (Alan Third's message of "Sun, 3
 Mar 2024 18:06:34 +0000")
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN> <m2cysbmd42.fsf@HIDDEN>
 <ZeS8Kn7OXomoUeuE@HIDDEN>
Date: Sun, 03 Mar 2024 20:29:32 +0100
Message-ID: <m25xy33yhv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Alan Third <alan@HIDDEN> writes:

> On Sun, Mar 03, 2024 at 06:36:29PM +0100, Gerd M=C3=B6llmann wrote:
>> Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:
>>=20
>> > Eli Zaretskii <eliz@HIDDEN> writes:
>> >
>> >>> From: Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN>
>> >>> Date: Sun, 03 Mar 2024 17:18:42 +0100
>> >>>
>> >>> The following warnings are printed to stderr, which I haven't seen
>> >>> previously. Maybe canBecomeKeyWindow should be implemented?
>> >>>
>> >>> 2024-03-03 17:10:16.334906+0100 emacs[12805:61381] [Window] Warning:=
 -[NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which retur=
ned NO from -[NSWindow canBecomeKeyWindow].
>
> Odd, Apple's documentation says:
>
>     The value of this property is YES if the window can become the key
>     window, otherwise, NO.
>=20=20=20=20=20
>     Attempts to make the window the key window are abandoned if the
>     value of this property is NO. The value of this property is YES if
>     the window has a title bar or a resize bar, or NO otherwise.
>
> Is there anything unusual about your frames?

I have menu-bar-mode, toolbar-mode, scroll-bar-mode nil, and I use 1
frame in full screen.

I also tried to use tabs today. That's when I noticed the messagers,
because I started Emacs in LLDB to maybe get an impression where the
freezes come frame with tabs. (No luck so far.)

Don't know how tabs are implemented, maybe these are also some NS
widget/view?

>
>> >>> 2024-03-03 17:10:35.434255+0100 emacs[12805:61381] [CursorUI]
>-[TUINSCursorUIController activate:]: EmacsView doesn't conform to
>NSTextInputClient protocol.

This also appears when never using tabs in a session, BTW.

> I don't have the first clue about this one. NSTextInputClient has
> apparently been around since macOS 10.5, and I haven't heard of this
> problem before... EmacsView *should* conform to NSTextInputClient
> because it's a subclass of NSView.
>
>> >>
>> >> Alan, any ideas or suggestions?
>> >
>> > I think this could be related to tab-bar-mode (C-x t 2, ...), which I
>> > started using today. I'm also observing frequest beach balls (freezes)
>> > with tabs.
>>=20
>> Beach balls of death, i.e. Emacs doesn't seem to recover.
>
> Please try reverting 6acb3c5b05a7b9fb32a5336e1bb740f527571ae9. I
> expect that'll fix the freezing, but I don't know about the others.

Thanks, I'll try that tomorrow.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 3 Mar 2024 18:07:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 03 13:07:14 2024
Received: from localhost ([127.0.0.1]:41287 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rgqF0-0002af-Br
	for submit <at> debbugs.gnu.org; Sun, 03 Mar 2024 13:07:14 -0500
Received: from dane.soverin.net ([185.233.34.150]:48385)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alan@HIDDEN>) id 1rgqEx-0002aR-Sb
 for 69525 <at> debbugs.gnu.org; Sun, 03 Mar 2024 13:07:13 -0500
Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by dane.soverin.net (Postfix) with ESMTPS id 4TnqXD1lWtz6s;
 Sun,  3 Mar 2024 18:06:36 +0000 (UTC)
Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net
 (Postfix) with ESMTPSA id 4TnqXC22DZz5K; 
 Sun,  3 Mar 2024 18:06:35 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin;
 t=1709489196; bh=I8KwouSuRCPwt22vaNrPchJI4CEPtMjZ7LwtG6y2Ubs=;
 h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
 b=CD25gHg4Ig/L2uedBo47yu/bbid0nveO4LTWReTIH8VpxX1buqdp+aGuIi6LsGGvE
 IUfay64a5y44XFjM20pIp/fLnbteUuR/b4uMR7M56YTLwi57ieKkyAnL9uEZ4oZ2jJ
 QS6j0oVvadSGOVKyVGErf9uVtwNqb2F3MsmLNXe5HFTyDtqyc5LBCwdBLunpb7dsHh
 P5wlngzx4e8v4PP+/wD/tKWMxnLhLHWr2pII6gE9YCzu1W4i+82ZMctLtPhZPtlYsF
 s0e0nTYUnP5gv9NbCFekOKWvU+wJGFniQAlhut9tdDcXF8ztlHEjSUIlPzs41qCrPK
 88/dJzU1x6bCA==
Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96)
 (envelope-from <alan@HIDDEN>) id 1rgqEM-001ip1-2Y;
 Sun, 03 Mar 2024 18:06:34 +0000
Date: Sun, 3 Mar 2024 18:06:34 +0000
From: Alan Third <alan@HIDDEN>
To: Gerd =?iso-8859-1?Q?M=F6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
Message-ID: <ZeS8Kn7OXomoUeuE@HIDDEN>
Mail-Followup-To: Alan Third <alan@HIDDEN>,
 Gerd =?iso-8859-1?Q?M=F6llmann?= <gerd.moellmann@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>, 69525 <at> debbugs.gnu.org
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN> <m2cysbmd42.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <m2cysbmd42.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Sun, Mar 03, 2024 at 06:36:29PM +0100, Gerd Möllmann wrote:
> Gerd Möllmann <gerd.moellmann@HIDDEN> writes:
> 
> > Eli Zaretskii <eliz@HIDDEN> writes:
> >
> >>> From: Gerd Möllmann <gerd.moellmann@HIDDEN>
> >>> Date: Sun, 03 Mar 2024 17:18:42 +0100
> >>>
> >>> The following warnings are printed to stderr, which I haven't seen
> >>> previously. Maybe canBecomeKeyWindow should be implemented?
> >>>
> >>> 2024-03-03 17:10:16.334906+0100 emacs[12805:61381] [Window] Warning: -[NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned NO from -[NSWindow canBecomeKeyWindow].

Odd, Apple's documentation says:

    The value of this property is YES if the window can become the key
    window, otherwise, NO.
    
    Attempts to make the window the key window are abandoned if the
    value of this property is NO. The value of this property is YES if
    the window has a title bar or a resize bar, or NO otherwise.

Is there anything unusual about your frames?

> >>> 2024-03-03 17:10:35.434255+0100 emacs[12805:61381] [CursorUI] -[TUINSCursorUIController activate:]: EmacsView doesn't conform to NSTextInputClient protocol.

I don't have the first clue about this one. NSTextInputClient has
apparently been around since macOS 10.5, and I haven't heard of this
problem before... EmacsView *should* conform to NSTextInputClient
because it's a subclass of NSView.

> >>
> >> Alan, any ideas or suggestions?
> >
> > I think this could be related to tab-bar-mode (C-x t 2, ...), which I
> > started using today. I'm also observing frequest beach balls (freezes)
> > with tabs.
> 
> Beach balls of death, i.e. Emacs doesn't seem to recover.

Please try reverting 6acb3c5b05a7b9fb32a5336e1bb740f527571ae9. I
expect that'll fix the freezing, but I don't know about the others.
-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 3 Mar 2024 17:38:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 03 12:38:08 2024
Received: from localhost ([127.0.0.1]:41245 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rgpmq-0001jI-31
	for submit <at> debbugs.gnu.org; Sun, 03 Mar 2024 12:38:08 -0500
Received: from mail-ed1-f41.google.com ([209.85.208.41]:54617)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1rgpmo-0001is-Me
 for 69525 <at> debbugs.gnu.org; Sun, 03 Mar 2024 12:38:07 -0500
Received: by mail-ed1-f41.google.com with SMTP id
 4fb4d7f45d1cf-566adfeced4so3740068a12.1
 for <69525 <at> debbugs.gnu.org>; Sun, 03 Mar 2024 09:37:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1709487392; x=1710092192; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=+LuWTc4CHrZcv4uk+Mcw88a5hl00vEn9hiNlg3Ng9XA=;
 b=hwjMeykKEQBA2FxoUJtFxaaEXaJREWT7PYL6N8Tn1CnQtiMSXjXVBv+DNTIR64pb2G
 N+b9OjIuYcjlkUyRkozOLCV1nqRbDoHYVe7dhJ+pFhjGAcDF2SHIliSTtWxXhojSAnaK
 Wql4P4sHZOykIlcZ9+zZu+AKWGgQiKsuVjN9UALz3PkT5x+yr7uml1/Gd9yv4jzWBtWg
 iAOe3hsJsMhdueWGuWATzDeH+mko3UYITOUVgarvQkybiQzmzUw7NphkSdZhULnYhYIZ
 4SoHCupwlaVbAUljI1wxUJ7j/CJMLM2xcMmryKYR2zzTaZrG2MYDrXCyQ7A/LV47tZ7i
 uVdQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1709487392; x=1710092192;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=+LuWTc4CHrZcv4uk+Mcw88a5hl00vEn9hiNlg3Ng9XA=;
 b=fV/mVGcGrrLRJBRKGYF+3rXmI0wd303FPUO0TRgIrLafY9SvMs4+qtChqnlxRo3Akh
 FEk4ivJ7pc2qkJKM5h37YItW/0MOLsPzTMT3W9jlwHmO1bZKOtP4mNoXOwoQyDVCkUDy
 3t5c4ZgB6NVTor2DTy3/woGBllMAgWL7EgLb2Q3X+17bpn6DdkuDd8Z1rbHqgCCkTJGC
 w6pAuJpXg9xjYXwJJpvqApvVf5tAgBgldUTvHB5I00MxQH+OK+foZOdLcC4zj1JEH3YZ
 rg5TC1FfNrwxyvfXTeGUviMfOFWzL+qoPpAFAIclwXHEjMhlj3U7ukla4ewLSPiQL/4Y
 X2Bg==
X-Gm-Message-State: AOJu0YzSaYQ1IosvB+s6ISaWRI0ZYHsUHyl0E0SjuWXhk4qhSktkoMPl
 JOlOiN30i1BdjEe6G8kKL44P6KtnaEDGV6AlYik8fI0bNk7XeqDixtKjMA3X
X-Google-Smtp-Source: AGHT+IG5r2uayJnOSynMI3452qOvippnt0wKoK9kWlPI6KuIBI/olTiNAtCM3aiowvLqopTpROuxyg==
X-Received: by 2002:a05:6402:8da:b0:567:45bd:312b with SMTP id
 d26-20020a05640208da00b0056745bd312bmr560241edz.32.1709487391524; 
 Sun, 03 Mar 2024 09:36:31 -0800 (PST)
Received: from Pro.fritz.box (pd9e36601.dip0.t-ipconnect.de. [217.227.102.1])
 by smtp.gmail.com with ESMTPSA id
 h7-20020aa7de07000000b005664afd1185sm3688373edv.17.2024.03.03.09.36.30
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 03 Mar 2024 09:36:31 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
In-Reply-To: <m2h6hnmd9e.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llmann?=
 =?utf-8?Q?=22's?= message of "Sun, 03 Mar 2024 18:33:17 +0100")
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
 <m2h6hnmd9e.fsf@HIDDEN>
Date: Sun, 03 Mar 2024 18:36:29 +0100
Message-ID: <m2cysbmd42.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Alan Third <alan@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
>>> From: Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN>
>>> Date: Sun, 03 Mar 2024 17:18:42 +0100
>>>
>>> The following warnings are printed to stderr, which I haven't seen
>>> previously. Maybe canBecomeKeyWindow should be implemented?
>>>
>>> 2024-03-03 17:10:16.334906+0100 emacs[12805:61381] [Window] Warning: -[=
NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned=
 NO from -[NSWindow canBecomeKeyWindow].
>>> 2024-03-03 17:10:35.434255+0100 emacs[12805:61381] [CursorUI] -[TUINSCu=
rsorUIController activate:]: EmacsView doesn't conform to NSTextInputClient=
 protocol.
>>> 2024-03-03 17:10:37.073109+0100 emacs[12805:61381] [Window] Warning: -[=
NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned=
 NO from -[NSWindow canBecomeKeyWindow].
>>> 2024-03-03 17:13:19.141805+0100 emacs[12805:61381] [CursorUI] -[TUINSCu=
rsorUIController activate:]: EmacsView doesn't conform to NSTextInputClient=
 protocol.
>>
>> Alan, any ideas or suggestions?
>
> I think this could be related to tab-bar-mode (C-x t 2, ...), which I
> started using today. I'm also observing frequest beach balls (freezes)
> with tabs.

Beach balls of death, i.e. Emacs doesn't seem to recover.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 3 Mar 2024 17:34:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 03 12:34:56 2024
Received: from localhost ([127.0.0.1]:41241 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rgpjk-0001e5-G8
	for submit <at> debbugs.gnu.org; Sun, 03 Mar 2024 12:34:56 -0500
Received: from mail-ed1-f54.google.com ([209.85.208.54]:61633)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1rgpji-0001dp-BK
 for 69525 <at> debbugs.gnu.org; Sun, 03 Mar 2024 12:34:55 -0500
Received: by mail-ed1-f54.google.com with SMTP id
 4fb4d7f45d1cf-565a2c4cc1aso5273764a12.2
 for <69525 <at> debbugs.gnu.org>; Sun, 03 Mar 2024 09:34:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1709487199; x=1710091999; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=4GPnyr9yA83nINvSVbiBxaPIs9MtgmbZReh2KEXOa3o=;
 b=gRtsyM5fH2pA/AX6TN4+aOu7X0EyWyB1WvsmCt1cwqtvHUHLrDZ1GI+IFzCDWi2lmu
 Z8iUsYIEfq1R8lCcYD534vTumO3o8x4ro7yG4Pwv/xOOnTtZ2uV5/mcodrmt4SvzlxFD
 Gry2e+VR+88YT90uN4yTbCssZjM/etCStVKBJT2znhoegI+vSitXPj4asy/K5M2ed7LN
 XqDFBtCzPvwa+Ff61kwyZ9eOCGoaPQ1FYRZSx4+QSUqHjS0HETuHxZz1WReqkC/dKhbJ
 F+3VS8mzdzWwzcUkHs/IoJ5OR9aKndn5bE1C0clQLgi/WWdLUbOTcpNYRQJgUgRjreaA
 5j6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1709487199; x=1710091999;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=4GPnyr9yA83nINvSVbiBxaPIs9MtgmbZReh2KEXOa3o=;
 b=gPmD8122fD+EaRxJ3l7fkZ9AMpAINCOL/k6k4EC8fjcrXf2itunqu8cC4T10dKV4P1
 9zByZ+P/apBRRKU3daYeRTNzJu0/vPg2nRTpHnoVvgO/Oc6/47fdBmd3sB0GSZI7y+ek
 nQmFegikA9SoD2AswHLFSl0aaAEPS/4WRCIIdveKGbTKwZYOlNYjlnBcr471cXB/nSi7
 8/OPmLJ/NJYQPw7PS+Roouxk4qOCyqqvyvSVrG/R+kjANiUtmxKafiwqYx64FBSTIP1y
 nBiKi9Ty+w2ftYw/4HSmJA8EavM2X/bqk8iSzXdHP8Oxuh5JclN2s/2oTDklHswMKUAw
 Sv+A==
X-Forwarded-Encrypted: i=1;
 AJvYcCVZXP4LzwNbuW1xcIhq3y/urlOr6BDvv78iGnC1BIl5HHl94qdZx6gf5KMHObyhqwE2khuUBzBthib9rVVTIHhVSHF1P6c=
X-Gm-Message-State: AOJu0Yw/eMXj0Af6NtJD7qZJ/aD4OZU4/izoj9yAOBbnAfTR6WuLr12E
 7Z5cDJNp+QwUZd9DodcAWMcmmjUjS1puqIQtI0geM85SYlVFivenMiLhjHlx
X-Google-Smtp-Source: AGHT+IGNI5c17G4jejPrbr93HdtYzUnbHkwqU9drfaMc6a49CNOKI8lc2hfojHeq/oge/zbLBe9WTw==
X-Received: by 2002:a17:906:bc48:b0:a44:958:c3a4 with SMTP id
 s8-20020a170906bc4800b00a440958c3a4mr4346718ejv.32.1709487199132; 
 Sun, 03 Mar 2024 09:33:19 -0800 (PST)
Received: from Pro.fritz.box (pd9e36601.dip0.t-ipconnect.de. [217.227.102.1])
 by smtp.gmail.com with ESMTPSA id
 gs4-20020a170906f18400b00a449d12cdc5sm2547749ejb.119.2024.03.03.09.33.18
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 03 Mar 2024 09:33:18 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
In-Reply-To: <86a5nfnuxl.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 03 Mar
 2024 18:26:14 +0200")
References: <m2zfvfs2zh.fsf@HIDDEN> <86a5nfnuxl.fsf@HIDDEN>
Date: Sun, 03 Mar 2024 18:33:17 +0100
Message-ID: <m2h6hnmd9e.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org, Alan Third <alan@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN>
>> Date: Sun, 03 Mar 2024 17:18:42 +0100
>>
>> The following warnings are printed to stderr, which I haven't seen
>> previously. Maybe canBecomeKeyWindow should be implemented?
>>
>> 2024-03-03 17:10:16.334906+0100 emacs[12805:61381] [Window] Warning: -[N=
SWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned =
NO from -[NSWindow canBecomeKeyWindow].
>> 2024-03-03 17:10:35.434255+0100 emacs[12805:61381] [CursorUI] -[TUINSCur=
sorUIController activate:]: EmacsView doesn't conform to NSTextInputClient =
protocol.
>> 2024-03-03 17:10:37.073109+0100 emacs[12805:61381] [Window] Warning: -[N=
SWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned =
NO from -[NSWindow canBecomeKeyWindow].
>> 2024-03-03 17:13:19.141805+0100 emacs[12805:61381] [CursorUI] -[TUINSCur=
sorUIController activate:]: EmacsView doesn't conform to NSTextInputClient =
protocol.
>
> Alan, any ideas or suggestions?

I think this could be related to tab-bar-mode (C-x t 2, ...), which I
started using today. I'm also observing frequest beach balls (freezes)
with tabs.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at 69525 <at> debbugs.gnu.org:


Received: (at 69525) by debbugs.gnu.org; 3 Mar 2024 16:26:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 03 11:26:55 2024
Received: from localhost ([127.0.0.1]:41022 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rgofu-0008Fu-Nb
	for submit <at> debbugs.gnu.org; Sun, 03 Mar 2024 11:26:55 -0500
Received: from eggs.gnu.org ([209.51.188.92]:45416)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rgoft-0008Fh-E8
 for 69525 <at> debbugs.gnu.org; Sun, 03 Mar 2024 11:26:54 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1rgofJ-0002NK-Ut; Sun, 03 Mar 2024 11:26:17 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=obhyQwOYcFcUO9WzStS3j+DT1F7uKVmN0892/IUnrQg=; b=c5yVEMtUwUpUN2P9Sk/0
 xa9NXPCxQKheG7lKSk+mKjEY73ADo4surKh07iIuXU/l//5Sgo4hE7vQto2dlFYk9/rfEPu4Xwcc8
 1EINQkPDKqpZNxiXY1uLSgxJzZK3OuTN2gJLBANmlKH/25pTq6LzT5Uwbf8E4fpo2K0xAFLeB7oJb
 d6e7G1g7ABlG5Qnqhzq98TUdH5uSG1PM/leMLYSdkAoE9d6mR3keC4Ui0MQbr7UBeHFFj07Bck4sa
 KnTNnTeRPN41HhGHo73N4RpEH1Dwu2QFhwB/X+GWWUwaife2kENxmY+pr1WmP+XtSEuqxmtvS+4YM
 vDNE8awuPtj89g==;
Date: Sun, 03 Mar 2024 18:26:14 +0200
Message-Id: <86a5nfnuxl.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>, Alan Third
 <alan@HIDDEN>
In-Reply-To: <m2zfvfs2zh.fsf@HIDDEN> (message from Gerd =?utf-8?Q?M?=
 =?utf-8?Q?=C3=B6llmann?= on Sun, 03 Mar 2024 17:18:42 +0100)
Subject: Re: bug#69525: 30.0.50; MacOS: New warnings on stderr
References: <m2zfvfs2zh.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 69525
Cc: 69525 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Gerd Möllmann <gerd.moellmann@HIDDEN>
> Date: Sun, 03 Mar 2024 17:18:42 +0100
> 
> The following warnings are printed to stderr, which I haven't seen
> previously. Maybe canBecomeKeyWindow should be implemented?
> 
> 2024-03-03 17:10:16.334906+0100 emacs[12805:61381] [Window] Warning: -[NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned NO from -[NSWindow canBecomeKeyWindow].
> 2024-03-03 17:10:35.434255+0100 emacs[12805:61381] [CursorUI] -[TUINSCursorUIController activate:]: EmacsView doesn't conform to NSTextInputClient protocol.
> 2024-03-03 17:10:37.073109+0100 emacs[12805:61381] [Window] Warning: -[NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned NO from -[NSWindow canBecomeKeyWindow].
> 2024-03-03 17:13:19.141805+0100 emacs[12805:61381] [CursorUI] -[TUINSCursorUIController activate:]: EmacsView doesn't conform to NSTextInputClient protocol.

Alan, any ideas or suggestions?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Mar 2024 16:19:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 03 11:19:19 2024
Received: from localhost ([127.0.0.1]:40995 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rgoYZ-00082G-Ke
	for submit <at> debbugs.gnu.org; Sun, 03 Mar 2024 11:19:19 -0500
Received: from lists.gnu.org ([209.51.188.17]:55088)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1rgoYY-000828-0u
 for submit <at> debbugs.gnu.org; Sun, 03 Mar 2024 11:19:18 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1rgoY4-0008IZ-CE
 for bug-gnu-emacs@HIDDEN; Sun, 03 Mar 2024 11:18:48 -0500
Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1rgoY2-0000Uv-UE
 for bug-gnu-emacs@HIDDEN; Sun, 03 Mar 2024 11:18:48 -0500
Received: by mail-ej1-x634.google.com with SMTP id
 a640c23a62f3a-a441d7c6125so456536766b.2
 for <bug-gnu-emacs@HIDDEN>; Sun, 03 Mar 2024 08:18:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1709482725; x=1710087525; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=9khGogJN9/nxtguUQqOKRwCcbx/Djp1KvgtCQcblgns=;
 b=bolA/xdo2sXGiYIFGE0LDD6uyq3ju/Ea9HODAL4PmVTD7O2Q3vrKbwBd6MCBu5efsV
 zcp9ZgawG+5Zen+xyo5/7iuFJsqsM4Q0eVnwgnroL3z7VSunuoJm9fQVRJiK5UBqe9Fs
 htINRAd3Yk7sSXpGMW2fvVonJI8x8lk/Mm6StKrLYZtuy5HWEysEnx92jvjiNXjS2dE/
 1PmdfOaDDKyF0W/u8GGzsnOLjx3nJqhKfUWJ9YSSDEwiY9cMhPPdBBTxHj25iFYDFoh1
 KAPGO0YF2L0xJD/73gwPIia7Atah+kGJl0TjL+DBO+sSt2ciOUwAhXqu6slRp7d62735
 +JZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1709482725; x=1710087525;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=9khGogJN9/nxtguUQqOKRwCcbx/Djp1KvgtCQcblgns=;
 b=Z3XfRSA4GqXFA64Gid8QJ/P/ynAf9XjRc3MOLewYjBoUcbk7mkzErb4lysTXSTJRCA
 VIxE3zcxy4pP84WZXs3Z0o1dTmjufaw0oukGEp0IQ8p5KHCkmkAbWWBg50d7bMJARSIq
 1caZFOQO/dstN91AMgSjiElKXNEm7Lg7CRkWztneEt+IVw3GqXWMQq6imc+zMj3xK74Q
 L06zverEL9NqUQHE8RyVOvBoRb4Kkd9nwCRG8sHfxM+0tOJqKK7dQiv+8h6fsDAcuTpe
 8auFiTAvAkOnlAJ8Sb2ayfChurjVtIq0cr9Y9iewPo9nKAplH9YNDcOz5HbGPvB/5HV5
 EtFg==
X-Gm-Message-State: AOJu0YxavmCrmihLbZeui+moVF3QUf333YIKg8+hK0xyX/y0iVrPTP1r
 O85zfuHyXCwvMwx8Yoa+ons6zmg0ohXtQ9N8Y0yDa3MGmZDOVhkL4pzFwVhQ
X-Google-Smtp-Source: AGHT+IEhKvyzyXpTyWvwBkIRBixUjV37txCttxJqE1GOQevvEsHDMn9HIaPcjIETXHofLS1eE/QsjA==
X-Received: by 2002:a17:906:d930:b0:a45:2d35:2c22 with SMTP id
 rn16-20020a170906d93000b00a452d352c22mr664380ejb.64.1709482724879; 
 Sun, 03 Mar 2024 08:18:44 -0800 (PST)
Received: from Pro.fritz.box (pd9e36601.dip0.t-ipconnect.de. [217.227.102.1])
 by smtp.gmail.com with ESMTPSA id
 k13-20020a1709067acd00b00a44f3fb4f07sm1340556ejo.191.2024.03.03.08.18.44
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 03 Mar 2024 08:18:44 -0800 (PST)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; MacOS: New warnings on stderr
X-Debbugs-Cc: 
Date: Sun, 03 Mar 2024 17:18:42 +0100
Message-ID: <m2zfvfs2zh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::634;
 envelope-from=gerd.moellmann@HIDDEN; helo=mail-ej1-x634.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

The following warnings are printed to stderr, which I haven't seen
previously. Maybe canBecomeKeyWindow should be implemented?

2024-03-03 17:10:16.334906+0100 emacs[12805:61381] [Window] Warning: -[NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned NO from -[NSWindow canBecomeKeyWindow].
2024-03-03 17:10:35.434255+0100 emacs[12805:61381] [CursorUI] -[TUINSCursorUIController activate:]: EmacsView doesn't conform to NSTextInputClient protocol.
2024-03-03 17:10:37.073109+0100 emacs[12805:61381] [Window] Warning: -[NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned NO from -[NSWindow canBecomeKeyWindow].
2024-03-03 17:13:19.141805+0100 emacs[12805:61381] [CursorUI] -[TUINSCursorUIController activate:]: EmacsView doesn't conform to NSTextInputClient protocol.

In GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin23.3.0, NS
 appkit-2487.40 Version 14.3.1 (Build 23D60)) of 2024-03-01 built on
 Pro.fritz.box
Repository revision: 862dfef88d8e62d12bac3ca2e44e035a2ff5b298
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2487
System Description:  macOS 14.3.1




Acknowledgement sent to Gerd Möllmann <gerd.moellmann@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#69525; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 26 Jul 2024 10:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.