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#72440: 31.0.50; MacOS: TUINSRemoteViewController log message Date: Mon, 05 Aug 2024 20:27:55 +0200 Message-ID: References: <080798E8-7522-4B71-8A46-E9A35FD9F1A3@gmail.com> <247FBCAB-DF0A-4C4A-B211-37B84C5494F1@gmail.com> 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="3064"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Alan Third , 72440@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 05 20:30:03 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 1sb2T4-0000gL-PC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Aug 2024 20:30:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sb2Sm-0006nF-Ls; Mon, 05 Aug 2024 14:29:44 -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 1sb2Sk-0006n0-IB for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 14:29:42 -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 1sb2Si-0001Dk-Uq for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 14:29:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Juf7a8ObkrZW4t6Ch1jn8LqePi2/eIdo8vivinMftEA=; b=V39cTJ4Hsqa5NTd9aQYvUjXiI1eiEmXUxYLr/6s+oDkQpYt5424ko58DLLVxSraPRNJqtWXCTvjm+ytTcKp1vD/oYgOFnCZG3iFivtPE3osZhMD17Tn3bxLkd7cTn6+pXpA4OXnEKcAbsZNjwzBh/+GslYh3RAhZkhR+fzGbH6FEb+MqVicDqu6DdaqHRjAJOsZdZKONBFedtIQb3EcKG8YvapIdTC70NlSD/8T/cT9/rAT5opyst81ibEMl5SywtCM4448A5+TM3UY5HJg9BNl8x1EXMx0mVHYUdLwD1ezia/o+gS1KaB7DIAkpHWWWZVBfrH8g5L4/nZsKdgOrMQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sb2T4-000871-76 for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 14:30:02 -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: Mon, 05 Aug 2024 18:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72440 X-GNU-PR-Package: emacs Original-Received: via spool by 72440-submit@debbugs.gnu.org id=B72440.172288256931103 (code B ref 72440); Mon, 05 Aug 2024 18:30:02 +0000 Original-Received: (at 72440) by debbugs.gnu.org; 5 Aug 2024 18:29:29 +0000 Original-Received: from localhost ([127.0.0.1]:59436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sb2SW-00085b-HK for submit@debbugs.gnu.org; Mon, 05 Aug 2024 14:29:28 -0400 Original-Received: from mail-ed1-f43.google.com ([209.85.208.43]:57589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sb2SU-00085G-H0 for 72440@debbugs.gnu.org; Mon, 05 Aug 2024 14:29:27 -0400 Original-Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5ba482282d3so2872153a12.2 for <72440@debbugs.gnu.org>; Mon, 05 Aug 2024 11:29:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722882477; x=1723487277; 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=Juf7a8ObkrZW4t6Ch1jn8LqePi2/eIdo8vivinMftEA=; b=M5Bb97P4Fa69TE7VdpIuwyAw/neCmpl34PVc17gE1xR1nY6o14Qqc6eIFfXVlqqDk5 otYmddSuX6t66zltCQ2FfLhcqy4Ik+qEqag8WFuSX+THpCxDgGxYUGUQT7nFV+x5prXt yDs7ypyHEvdnQnZUA1JybD/eoyS/EP2FUGqukrYaKJo/6bwGYlXtS8tFtkLPOYrV5DmQ hEyUMJFGSqqL0u5XTx76Ma6CtUaEiOwrQ4Xe0kdKFcXjQKUQKaG2Ytt/ORXbRWQN7aRt zB3O6+h/cb1xn6nWCRCrr9VQ/8YZcMBrpD3SizOKsqsdWFbxf+TVEg3GGsLIeRblGEQQ Td4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722882477; x=1723487277; 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=Juf7a8ObkrZW4t6Ch1jn8LqePi2/eIdo8vivinMftEA=; b=GmJOFNWaVAjguN6kyXnygZxTeFKL9/RetsK+vtJgVuZcs2m6tRInkk5kO1Kee0gB64 V1+JOqcc4bCARxbluvJsO8LvdQxZizRxCzYcw5fa/aVr2rpeEmMYipQNGwROdWSGksVC dWsbrT+X3nnEmobH0ccRujdUkEcXZGeI2HXTF8JtzoN1o8/zpcD71Ke0uCxFB6BNXi0L a7QYryU5IQbdjXcFMBRphj+N3b6l4PURI5IMp6miK7jB4NYi6KKIN/jJerUjSItj4Cxq o04bGns/kn3IRwoYYpdq2bz8rc14R9ayadCF9VMtWyZqrAZ8vZ9UNcF+tc79FsUm2i/B YZ4w== X-Forwarded-Encrypted: i=1; AJvYcCV6fz9KpAcDqUD/FGu4XHio1vHMNAjZBOYI0PUY7iRQdY2UgS+WwFldO69OzmtVDftxoBkk4hfLkuRXZ9gVQtH2ze/TD7w= X-Gm-Message-State: AOJu0Yz1LNht+xez6We+lZuC264fnQIDv6I7QI3dGKUGrekuRN+kNMWo FLJwZ2JjQ4moM12zHrBCjDPVM7D/RB+Lvyg20yKDFqBeUd2OIsxlKUIpyw== X-Google-Smtp-Source: AGHT+IFKAFEhFKSN9jn5ThZxRjReu8XVZJMQAwO79fGtCqz/0BgqMQCWtJcmtGKLOv+LJZOTcKj0ww== X-Received: by 2002:aa7:d604:0:b0:5a3:76e3:1dc with SMTP id 4fb4d7f45d1cf-5b7f39e043bmr8259022a12.10.1722882476643; Mon, 05 Aug 2024 11:27:56 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e366bb.dip0.t-ipconnect.de. [217.227.102.187]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5b83bf3ad38sm5197891a12.84.2024.08.05.11.27.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 11:27:56 -0700 (PDT) In-Reply-To: <247FBCAB-DF0A-4C4A-B211-37B84C5494F1@gmail.com> ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Mon, 5 Aug 2024 17:49:57 +0200") 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:289801 Archived-At: Mattias Engdeg=C3=A5rd writes: > 5 aug. 2024 kl. 17.27 skrev Gerd M=C3=B6llmann : > >> Can you please check with what I just committed? > > Thank you but that doesn't make a difference -- it's a static, not dynami= c, warning. > Instead we could put it inside > > #if MAC_OS_X_VERSION_MAX_ALLOWED >=3D 140000 > .. > #endif > > which works here but I may be confusing the version macros. > > More to the point, is the [self setClipsToBounds: YES] line actually > required with older OS versions? If so, maybe it's just a matter of > declaring the property somehow since it's supposed to exist even if > the declaration was only made public in v14, but not sure if that is > even possible. I also don't know what's the right thing to do is here. One could use the #ifdef as you showed, but then an Emacs compiled on 13.x won't do what it should when run on 14.x. (I gather that it would otherwise run fine.) A runtime check with NSAppKitVersionNumber would work, if one copies the float values for the version from NSApplication.h, and compares with that. One has to copy the version number if one compiles on older versions where the constant is not defined (can be either a define or a const double in 14.5 here). What a mess. Hopefully Alan has some advice.