From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#69525: 30.0.50; MacOS: New warnings on stderr Date: Mon, 4 Mar 2024 21:40:06 +0000 Message-ID: References: <86a5nfnuxl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26232"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69525@debbugs.gnu.org, Eli Zaretskii To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 04 22:41:05 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rhG3V-0006Xf-B7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Mar 2024 22:41:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhG3A-0006Rl-3G; Mon, 04 Mar 2024 16:40:44 -0500 Original-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 ) id 1rhG2z-0006RA-By for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 16:40:34 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhG2y-0003ma-Vc for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 16:40:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rhG3S-00035Q-H1 for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 16:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2024 21:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69525 X-GNU-PR-Package: emacs Original-Received: via spool by 69525-submit@debbugs.gnu.org id=B69525.170958844511835 (code B ref 69525); Mon, 04 Mar 2024 21:41:02 +0000 Original-Received: (at 69525) by debbugs.gnu.org; 4 Mar 2024 21:40:45 +0000 Original-Received: from localhost ([127.0.0.1]:45068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhG3B-00034p-EZ for submit@debbugs.gnu.org; Mon, 04 Mar 2024 16:40:45 -0500 Original-Received: from dane.soverin.net ([185.233.34.157]:58099) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhG39-00034b-1z for 69525@debbugs.gnu.org; Mon, 04 Mar 2024 16:40:43 -0500 Original-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) Original-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== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96) (envelope-from ) id 1rhG2Y-001mk1-06; Mon, 04 Mar 2024 21:40:06 +0000 Mail-Followup-To: Alan Third , Gerd =?UTF-8?Q?M=C3=B6llmann?= , Eli Zaretskii , 69525@debbugs.gnu.org Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281022 Archived-At: On Mon, Mar 04, 2024 at 02:48:52PM +0100, Gerd Möllmann wrote: > Alan Third writes: > > > On Sun, Mar 03, 2024 at 06:36:29PM +0100, Gerd Möllmann wrote: > >> Gerd Möllmann writes: > >> > >> > Eli Zaretskii writes: > >> > > >> >>> From: Gerd Möllmann > >> >>> 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