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: Fri, 26 Jul 2024 20:09:35 +0100 Message-ID: References: <86a5nfnuxl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9965"; 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 Fri Jul 26 21:11:25 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 1sXQLc-0002Ty-UP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jul 2024 21:11:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXQLA-0000wK-Gn; Fri, 26 Jul 2024 15:10:57 -0400 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 1sXQL8-0000wB-KK for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:10:54 -0400 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 1sXQL7-0007qp-QE for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:10:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXQLG-0003PJ-Ft for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2024 19:11: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.172202102513050 (code B ref 69525); Fri, 26 Jul 2024 19:11:02 +0000 Original-Received: (at 69525) by debbugs.gnu.org; 26 Jul 2024 19:10:25 +0000 Original-Received: from localhost ([127.0.0.1]:40059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXQKe-0003OP-IC for submit@debbugs.gnu.org; Fri, 26 Jul 2024 15:10:24 -0400 Original-Received: from dane.soverin.net ([185.233.34.150]:40711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXQKb-0003OB-HC for 69525@debbugs.gnu.org; Fri, 26 Jul 2024 15:10:22 -0400 Original-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 4WVy3z6mhlzpR; Fri, 26 Jul 2024 19:09:35 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4WVy3z4gsJzKy; Fri, 26 Jul 2024 19:09:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1722020975; bh=CtEEqCevBHJouG/qodWf+YeVsGJUkApRBhLx66IZHeY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NG03cETRuJFmwxSomUjj/cBNLJDx/h1WESedQmjtf9n9Y2mehw+3w31esGxCjzTF3 e3ybVxM8HGME8CONDHcicATgjRWI6tFnBC/4pnqfSLLy+6BWo9eafG0R5PQ4FpML7u wkQP60RYE4MAgHZNTl9gSJfgfDVrmx90oU7COd+Vr3h3fGCuFDoz1trE3MM7Mc33g5 Y9Bm4NkVxCVe+TNiioSeCIiSIuowTsizSL6Ya9YmehWh8Cz2xvnH26szl+JwA93Zct UZZsN6Gsoex41R/G62MG0aw5qoLcQp1MsfXx/JBEkk01bJY67abF85jLBvdava6tvL nEB6iNnUuCOIg== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.97) (envelope-from ) id 1sXQJr-00000001Zqp-0pBL; Fri, 26 Jul 2024 20:09:35 +0100 Mail-Followup-To: Alan Third , Gerd =?UTF-8?Q?M=C3=B6llmann?= , 69525@debbugs.gnu.org, Eli Zaretskii Content-Disposition: inline In-Reply-To: X-Spampanel-Class: ham 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:289379 Archived-At: On Fri, Jul 26, 2024 at 12:33:24PM +0200, Gerd Möllmann wrote: > Gerd Möllmann writes: > > > Alan Third writes: > > > >>> >>> 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. > > > > 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’s 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: NSRangePointer?) -> NSAttributedString? > > > > - (NSAttributedString *)attributedSubstringFromRange: (NSRange)theRange > > > > func insertText(Any, replacementRange: NSRange) > > Inserts the given string into the receiver, replacing the specified content. > > Required > > > > - (void)insertText: (id)aString > > > > Stopped here. FYI, up at the top right of the Apple docs you can change from Swift to Objective C, which will probably make comparisons easier. > Apple's documentation says > > Important > > 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. Looks that way. AFAICT NSTextInputClient should be available on all versions of macOS we support and also in GNUstep, although it can be hard to tell which versions of GNUstep support what. Some of these functions are just used for normal input, but many of them are used exclusively for macOS input methods. -- Alan Third