From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Use of `window-system' as a predicate is deprecated. Why? Date: Sat, 09 Jul 2022 20:37:50 +0800 Message-ID: <87y1x21mxt.fsf@yahoo.com> References: <874jzq31kb.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26430"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 09 14:40:03 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oA9kh-0006jz-PT for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Jul 2022 14:40:03 +0200 Original-Received: from localhost ([::1]:57408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oA9kg-0008M8-QJ for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Jul 2022 08:40:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oA9im-0005vX-UD for emacs-devel@gnu.org; Sat, 09 Jul 2022 08:38:07 -0400 Original-Received: from sonic309-20.consmr.mail.ne1.yahoo.com ([66.163.184.146]:42489) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oA9il-0007ad-Bl for emacs-devel@gnu.org; Sat, 09 Jul 2022 08:38:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657370281; bh=Ehv5khO4kKduLbFmKLLyfo7xLRZlRXb6FlpH1+F2C08=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=C6UJEIx1whzZBpvc9PFYP5IezBoBqdLOuNviWRhTtMbEeL+TNZ2popQi2NMhfZJ7hrWT2fvicO194OmCoqfn06bJEMLUjNAZQrECXViDS3V27TRZlVu4ETsa4pbs4g3UJ+D9413UgGELYTK/EBuuNLqRRMdna17GMeT9Y5OXhkLaCr1F7KRNzHooL/TUamwae2GI9ZsxyU37NX6hngqUsae1FujUO9i4Xzj4z8FGJ5xFvKKvsRRI8MDC4/CckGtqkMR1V6o77cH9H1VRKZ7hRTKy2+T1zF2WWvpTRoXcWYGIZzP6muqejcwqs2YDEZoIz/Mp00vewJtrkq0IrDrgDA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657370281; bh=VhU5bSP9YpCPq7jd2i+MsEcCEE4+jY6pNzoAMc7tNR3=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=t7c4Jk8EgmqZ1JyHI6jXfiDxP7l8V0khkRTfYUURJyPJHAOfYrdLBr3QLUVnRg0obZ/ikSBr109Jzx+bmU+crZvzQ8w2lCObP46WEBwnu3EkXhfkOlmpXqeD07VDrcqsS6IB0/FhrJSrfEhUl0zCJ8qMazTBhZemLzWvN8DKNEKwgoU91JUZUpHc508xdO5BpzzOrx4G6eM6hjAnRLVuAGGVgygIphZHMWnffrGAtrbZsfl5IZ8xXIw56XP0/oHlw3In9G4/2TPKM4KXws5dM3guLeOs7pI5E+vWH3ZZ/MPgctZGO0zCP9sX5WbrFSfUaOfLNzRwADkmPc+eohh+fw== X-YMail-OSG: LF8VF7oVM1koAkKJVLEtHocIHfD2VvsZ28VswGSLFsBYxUhGYMVKEngL9cvdbEt QUAXNfnYu0XF9y5OaVFpNdEhAaPHdQnkZCi47C67apmtShHArg9uV4a2BTflaOsFa1MKNCnpj3GQ ZxRcZm.27e1KxFYXRKZZ3kpApFEqHPO0hEzkUbnG00nB1FIp8vrE4jZ0m_uN7ged1VLQLKsQCJZD GIBs3K5sV7Wu._ABqQlwNO9yF6Fd_bBYCQDJ3Ilx7eg7jB6HH11jFaNg.wZjX.nIbcqc6f7Fg4PW _WPGhyefXOvi1YkGU_.O.0Ods0gp5wGCEPZcs_Fj2OWjov2HcUWeHw5IWohQyCe9x8kDJtMGwOSq d8ghY4yW9pINcj_ptaIMCcT2p0x0hs.fsGRgtPlPAF7u.LPbuehj6ZMcNn_4RRgtu6HLiEogdpFn hAYffrXMU9ZvI_m16SbBttlrYVNM2hR4IdoiCT5RBa0zOxbwFQCnQYW_FjsVM5LCLR99mOkX.3o9 8ne7EH99R58VTQUBF3CtDh7B9HnMlLimoDopOC28y2lpeTc16HSxIC75rtiruBUpfOpWnzwi1xFG JbKdj5dGJT0bXZ2sGw7XfeGV0cW6zK7jbCkzm_DlAbnK_it7utWN8pWiu.YxxLSvEUei894KZjUX 5BEdEXZRQQQWV6yVgdKGDaCQ5pa5pJgb_fas7JO_6NqMf0qUz.m9Suyd5I58Qokwt_K7NFqEhNwR fmKjOqCFNUi7R0zYV.ypOI9erXkRHqd0U0mSKRetNjSbNUDrhEDAaNR8Q9NBUgpSA9IwzvK4mfDG JEQIs8dEZ02zvl.uG5RMwznucdjawpMfq6txWM5o95 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Sat, 9 Jul 2022 12:38:01 +0000 Original-Received: by hermes--canary-production-sg3-67975bbd4b-qg7qj (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f84841f154e27930d8ddb235761720a4; Sat, 09 Jul 2022 12:37:54 +0000 (UTC) In-Reply-To: <874jzq31kb.fsf@yahoo.com> (Po Lu's message of "Sat, 09 Jul 2022 20:36:36 +0800") X-Mailer: WebService/1.1.20381 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.146; envelope-from=luangruo@yahoo.com; helo=sonic309-20.consmr.mail.ne1.yahoo.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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291986 Archived-At: Po Lu writes: > Can't you simply test whether or not `term->focus_frame_hook' is set? Though do keep in mind that we also have `FRAME_WINDOW_P', which might be the better option here.