From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#69525: 30.0.50; MacOS: New warnings on stderr Date: Fri, 26 Jul 2024 12:33:24 +0200 Message-ID: References: <86a5nfnuxl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31047"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 69525@debbugs.gnu.org, Eli Zaretskii To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 26 12:35:18 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 1sXII9-0007sQ-VN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jul 2024 12:35:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXIHt-0003vl-Nq; Fri, 26 Jul 2024 06:35:01 -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 1sXIHm-0003Yc-AG for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 06:34:55 -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 1sXIHl-0006MP-O5 for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 06:34:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXIHt-0003mw-RM for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 06:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2024 10:35:01 +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.172199008314528 (code B ref 69525); Fri, 26 Jul 2024 10:35:01 +0000 Original-Received: (at 69525) by debbugs.gnu.org; 26 Jul 2024 10:34:43 +0000 Original-Received: from localhost ([127.0.0.1]:38844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXIHa-0003mF-K8 for submit@debbugs.gnu.org; Fri, 26 Jul 2024 06:34:42 -0400 Original-Received: from mail-ed1-f52.google.com ([209.85.208.52]:48255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXIHZ-0003m2-2U for 69525@debbugs.gnu.org; Fri, 26 Jul 2024 06:34:41 -0400 Original-Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5a15692b6f6so2538800a12.0 for <69525@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) Original-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) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Tue, 05 Mar 2024 06:31:16 +0100") 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:289357 Archived-At: Gerd M=C3=B6llmann writes: > Alan Third 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.