From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 12 16:46:21 2025 Received: (at submit) by debbugs.gnu.org; 12 Jan 2025 21:46:22 +0000 Received: from localhost ([127.0.0.1]:49336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tX5mn-0000an-Kv for submit@debbugs.gnu.org; Sun, 12 Jan 2025 16:46:21 -0500 Received: from lists.gnu.org ([2001:470:142::17]:53714) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tX5ml-0000aa-6H for submit@debbugs.gnu.org; Sun, 12 Jan 2025 16:46:19 -0500 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 1tX5mf-0003Fa-JH for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2025 16:46:13 -0500 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tX5md-0002k4-UT for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2025 16:46:13 -0500 Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-7b6eb531e13so204041285a.0 for ; Sun, 12 Jan 2025 13:46:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736718370; x=1737323170; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=zU8V9/N1dFbE2C5J0neaP3DTWkEpy6yKGIr1nb5fPcs=; b=FbvmW4Sb+ZnpekVLCzpwaLqiVFmTVpqgKLVitte0Ej8Litd75aWc8Bqkn2iJ1kOs1l zLONWzJoRNI49UDG7TtcpLLtnde8a5xvyqlUy7PEhHZXMOlHTnFPN9rsqRyInJpA+kVm 1tO1U6bsXIE7pzOL477YCaKtJ4WK0ZETGyeNFbOI/mC0FSLSuRxGhPKoq4LDiPYxjF0V JIFlq1mqJEsFxpqb8J9hFFfSVpF4XD/d/+QE57tuSeUXoaTJ6vldkQBNi9HyvsA+dEjJ XT2I+QZTqCz1gx7K2vvBuiYHpVNTcbwq2rezjG62G3cGH5hu2PbrvfmT3Skh1lIFqRbu iMrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736718370; x=1737323170; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zU8V9/N1dFbE2C5J0neaP3DTWkEpy6yKGIr1nb5fPcs=; b=e/0vTABMC0FA1jT2G5JMG8FUwJRGSRakZDR6YQbxdCEr7btaGoflXnq6MO+cOz27P0 juMPxnGEStVtkycCdsLiINyppR1hS5uPWBKgfVevuX4F1qwKc+eKrSZ2GpG0FBX4TmRW NNlGNOl//ZDdIuz0eV8fSPeByckjj1XAnWvTgnDTHtCBojK0crvdsJU6nd2PjipheizT eKbDkvcwaC2We47Ld0ezXl1kh9CI2dGhBC92g+3Sn4uhUyaIUUtvdDiJsWuJ/Mr/K3wI RgB0c74UUBC/J6/b2VPFvxOx1xVE9a135JVEV1NdeUCvujT5W2xm3eY2ApLejsx4gMOu fOvg== X-Gm-Message-State: AOJu0Yz7Kk2MCWGSmuloTa42ZPGuakmSZ/+qkjkr1DetoyXOIaZVfVD5 jrrPPTU/2wmu7gM6ullYnhwVri8yqyTiJHyNnU8B62VJEFVvSDc3javaRQ== X-Gm-Gg: ASbGncvhDOlHRIqI/ItjbC1fXCHkV2942V61vMxtBi7DvoQ2BaE1Bo88CQIJ2oMWoBI w+5qY85cFcdMfMFlFC0THCmXAjL6Apvbem58lGMQzIniJGo6t+tkEXtO3ovcxyZjhoUS4Cnihw9 yIS1uo6NlLkxcWbHVn7UAdsk5w2izP15dauPG8UGzLTgp/ouA13oVWNAQjLzhLTJjtpctkFiMUv uScxkxba23M7koAl3x2RG5Y6I040IOTP5cwkFAYXOozTyXQmlsRd3JquiCihg3BzKEnLXrehK+J UUO3+F0bNZ7V18nIx5f1lntF+xuu X-Google-Smtp-Source: AGHT+IH4o5tvJ4AGrwC/x8FEx+zG8OLPsZ5gZUAeXUQeJ5V0ZSyuCQs4DyCly1bCBc6j4L+AsRwb+g== X-Received: by 2002:a05:620a:178c:b0:7b6:e20c:1a0e with SMTP id af79cd13be357-7bcd9787b48mr2828597885a.51.1736718370214; Sun, 12 Jan 2025 13:46:10 -0800 (PST) Received: from smtpclient.apple (cm-24-53-185-196.buckeyecom.net. [24.53.185.196]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7bce35031acsm420184185a.88.2025.01.12.13.46.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Jan 2025 13:46:09 -0800 (PST) From: JD Smith Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.87.4.3\)) Subject: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 Message-Id: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> Date: Sun, 12 Jan 2025 16:45:58 -0500 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3826.300.87.4.3) Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=jdtsmith@gmail.com; helo=mail-qk1-x72a.google.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) The TS support in python.el breaks versions of emacs prior to v30, since = it calls the recently introduced macro = `treesit-declare-unavailable-functions`. The header still notes: ;; Version: 0.28 ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq "2.23")) ;; Maintainer: emacs-devel@gnu.org From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 12 17:29:52 2025 Received: (at 75526) by debbugs.gnu.org; 12 Jan 2025 22:29:52 +0000 Received: from localhost ([127.0.0.1]:49392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tX6Su-0005RV-0A for submit@debbugs.gnu.org; Sun, 12 Jan 2025 17:29:52 -0500 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:52499) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tX6Sp-0005RC-Ek for 75526@debbugs.gnu.org; Sun, 12 Jan 2025 17:29:49 -0500 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-aaedd529ba1so536626566b.1 for <75526@debbugs.gnu.org>; Sun, 12 Jan 2025 14:29:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736720981; x=1737325781; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=VYhdJSHFEOr6aStUYqmPPR9Fb51+W1Bff7aXT4PoQec=; b=ETAYr4OgpKkYQhcxEEN+ulV/RkJIJkx2LKsw4dOO7wSwy2ZpqTNT7GxrWb8p8Dej8g hkPgL9xbh3X3723KN4qlHVZPbq+TEPSodDatqOf9mQ2D5XmkWGXsNmT/T7tGvLUo6Nc+ p15XA18r0RwtG2EyyHFfVluH8jF/TDV42bjlRTEu5An2A+XID7xizYNobghDkXWEfy8E i9GOebNIxlCX/o5ijFiYmyH+xaZo8mLZTheNVZt4WhhFo0bfoMP5GKgZU4E/RMKzmTjT R5Ld92glvF8tEL1LCr0UN3A3XkVrv6BYFRguIFZNCLbfgt2cOocI75VLy9o5FxyfIt2o 49zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736720981; x=1737325781; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VYhdJSHFEOr6aStUYqmPPR9Fb51+W1Bff7aXT4PoQec=; b=ZsbIp3zsFyXx14AjxIlJirMuJ2ZZc5y4WE2isN8eDIZo2gr+Ls8KfWj19QI82iLc2x rTg1zYjBz2yCgyjFCWMkibmlvQt+fTDF/iK3DhRHZc+aRX6A4OfACsosYBOTtukbZV3g WrRgj3NFh77GrOavTI4xmEP4+jl/yTnnln1fekFEC5hZU/V21Tbs535xLjH1iGMrn0Zj NwuymSG/7qkfwY7Qw2VZ5Kt+7klZr09fJE3qPQYohwkU4ElgaXPPC5pyu5xrTOiHnoVM XdczxPSDZIA5e3SLd6dRiE5HhuSXXZ/PJBIEORTLfxMViqF9sF9UppuOMjgH4AurJfrm nebA== X-Forwarded-Encrypted: i=1; AJvYcCVMHZhnlV6I8YgECH11Joz8EvyF0PmJZ3Je+9tKnAPkfqcr2xwvd3GOQOtuB9xOB/ep0hlvSg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzYqoUOKrXKNjLtjP3NDEyf2HdV1gv1x+FPhHEAmH5FWq3kwgvI VrzD1oyrspJWxMy2/W2dsb3mz41MpnjbMiCiEZAJsgnniFkvXr5VjaFAE0unoaqoFSAg6Sug95N ehbpdfdhufuu/oXlh0vGgta85/2s= X-Gm-Gg: ASbGncteHxmmvilRCcWHWnQsfllfV1Mmm5B5T2Ta2lernJV0aJiiMA+Eg5xgnhGN/bB /5gx2Ns6iiWbmVAFZHwOfSvMu7AhWPj8evSXK11Um X-Google-Smtp-Source: AGHT+IHO8KjS5FVOrKUxtV5z4nkZbUFaV88CGDHWSIzgLbSYGUHBWp+3IKcuvA0RLWcC35nfbo3g2Ml0JPLaMS66NH4= X-Received: by 2002:a05:6402:530f:b0:5d1:2377:5af3 with SMTP id 4fb4d7f45d1cf-5d972e00027mr42304773a12.5.1736720980698; Sun, 12 Jan 2025 14:29:40 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 12 Jan 2025 22:29:40 +0000 From: Stefan Kangas In-Reply-To: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> MIME-Version: 1.0 Date: Sun, 12 Jan 2025 22:29:40 +0000 X-Gm-Features: AbW1kvaTD4uPnbQf4n8R22knELQjackJ4fkAhwMR2-Ny6qNRCTeoIIbG6L6Lf8s Message-ID: Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 To: JD Smith , 75526@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75526 Cc: Daniel Mendler , Philip Kaludercic X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) JD Smith writes: > The TS support in python.el breaks versions of emacs prior to v30, since it calls the recently introduced macro `treesit-declare-unavailable-functions`. The header still notes: > > ;; Version: 0.28 > ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq "2.23")) > ;; Maintainer: emacs-devel@gnu.org Maybe this could be fixed in compat? From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 12 18:58:28 2025 Received: (at 75526) by debbugs.gnu.org; 12 Jan 2025 23:58:28 +0000 Received: from localhost ([127.0.0.1]:49496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tX7qe-0000xn-1M for submit@debbugs.gnu.org; Sun, 12 Jan 2025 18:58:28 -0500 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:55161 helo=mail.qxqx.de) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tX7qa-0000xD-GR for 75526@debbugs.gnu.org; Sun, 12 Jan 2025 18:58:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GefhlcnogR59JPcItxNokhGZl0/J7xPOkCGCTA7EKcE=; b=qHgcw5iKJQMBHLqQxxDXnLdMPl 4qmYPRI4x1QNw9Kl/NtYx677foRjHQwxcUKSHvN2EbmOIPM3wkWIq/Liuf8K7SjD/6cos17tLi0MC l6c1Z5bKVHOuJKtBbVEVh2njWqTRMjY8SSSdEkL3UsDMxd5/ydTd4oeXp6HFo9zk+Du0=; From: Daniel Mendler To: Stefan Kangas Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 In-Reply-To: (Stefan Kangas's message of "Sun, 12 Jan 2025 22:29:40 +0000") References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> Date: Mon, 13 Jan 2025 00:58:13 +0100 Message-ID: <87o70bfuui.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 75526 Cc: Philip Kaludercic , 75526@debbugs.gnu.org, JD Smith X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Stefan Kangas writes: > JD Smith writes: > >> The TS support in python.el breaks versions of emacs prior to v30, since it calls the recently introduced macro `treesit-declare-unavailable-functions`. The header still notes: >> >> ;; Version: 0.28 >> ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq "2.23")) >> ;; Maintainer: emacs-devel@gnu.org > > Maybe this could be fixed in compat? Yes, we can add the macro `treesit-declare-unavailable-functions` to Compat. But python.el needs to `(require 'treesit nil 'noerror)` instead of `(require 'treesit)`. Daniel From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 13 01:19:32 2025 Received: (at 75526) by debbugs.gnu.org; 13 Jan 2025 06:19:32 +0000 Received: from localhost ([127.0.0.1]:49903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tXDnP-00013P-Lh for submit@debbugs.gnu.org; Mon, 13 Jan 2025 01:19:31 -0500 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:60923) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tXDnN-000138-20 for 75526@debbugs.gnu.org; Mon, 13 Jan 2025 01:19:29 -0500 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-21654fdd5daso63671355ad.1 for <75526@debbugs.gnu.org>; Sun, 12 Jan 2025 22:19:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736749163; x=1737353963; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IZ+SLXgVH4jXTqnA2YuoPBo8P9G/cBcI1Z4JKHVfCjY=; b=fI6SmEr2qz//Ws2ltmZhB7m0MBaig/sw/O+RqVbMJ3FsKGQpUKlQTz7BVYOniXZUkb 4rN98KSJpN6+Sv9WDM9+u5rObJkiFAKp3TKoA2xsSr2Guc4wYdHKaPVHTOQIxvPQXaYP x85FYVmCtZNE549pAvpBMwUT/0zXEGw8scrKeOugVzfpf9Xc7wxtupEy0/2IWshbM5dP jnuIpKD5GxjByA0CSrLkbk6TPUdtUctnwiYuVM9he8YZQqBwXkcWiiTCB8WZMD+Z6wto VfJturWX/c6PewM9mRjJektD/3lu74jNAxmHK6RMYjaOF019OirNJX1bMhVHxSCtu8di r+3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736749163; x=1737353963; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IZ+SLXgVH4jXTqnA2YuoPBo8P9G/cBcI1Z4JKHVfCjY=; b=bvz8HpI3P8i6ucBFmyRDIQvwnc45ovfiJx/14ufHtefAU6Z1q1I3hWGGvdsGi6A4Gn 6NVIqfGwQOy2KsPhcOERds3USgBIrH5BlMsZbfLKszK3h9o7++Dj4Ms2xk6y66yY/Bzt lsx0Nu7ve0v/LikxzwjqshOHVcFZ7guqxPZvmdvxlaLW3gubiRFQKLYS+Fi0Sj/i4s5i cPcQtaMNA9yJcTCw/0FrN34Oi+TBduNEdgCZzArhezFlj5c4dn9yunnjbESNoKw+BXB3 cmgBF4FBjNyRYl47MFq1vBPulDOK0pLUl1zS5dQqex2HlQpiREJ2tjMdl++a9rbF4lmx yJFw== X-Forwarded-Encrypted: i=1; AJvYcCXJqBPfyA0v2YdTkB9yys7Dz6C0FPNMb2CZWvVXzp4G1iGN4125BT6h03RVrmRHT8cdVFdLJg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx3VqjFZo+PU6XHN0mQ/CYT3t2isUG6b//a1VIXm0TBvWJxZJ9L Ix/KWlG3SyWAn8j5D2XUgG+GVQ5ogb3AF8sMnX2218epTKn1I7LH X-Gm-Gg: ASbGnctz2oEcSjdiR1D0XD44q765iv9th/D0X6db3nqjujxn9IdfLZBIM+YvKtu7Z55 htb4gGZQ1UToCf16V40DnSfH8OjElXDlOhQmMhIFoaceHOwjkmUQO/LvJUpEVd7xmgpJPK8DkoJ hVVMY4ncdAaDfpZCZr+o3NtSQvfGt9iXDjFYb7RVyEQtKogtiHaSkihoq91MF7vferNgOuz8y8n 3T4irC5wf3xwaX8S3StbZHqGJhk4H2D5cwo7vwsZ8eIUjNMjCRIkgsQf5BJhzhVAVDjoeaRNJ0/ QAug X-Google-Smtp-Source: AGHT+IHJhjRXcfAbNJ8Tr9lgz4YKXG5VByqMjzxfmdTURoO2uM8x/TQV8pVysGtlUuy7DdiwFa2tmA== X-Received: by 2002:a17:902:d2d2:b0:216:393b:23e0 with SMTP id d9443c01a7336-21a83fde4dbmr308049695ad.36.1736749162714; Sun, 12 Jan 2025 22:19:22 -0800 (PST) Received: from smtpclient.apple ([2601:646:8f81:6120:c04e:a612:3dd1:a163]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21a9f23499csm46329745ad.193.2025.01.12.22.19.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Jan 2025 22:19:20 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 From: Yuan Fu In-Reply-To: <87o70bfuui.fsf@daniel-mendler.de> Date: Sun, 12 Jan 2025 22:19:08 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> <87o70bfuui.fsf@daniel-mendler.de> To: Daniel Mendler X-Mailer: Apple Mail (2.3776.700.51) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75526 Cc: Philip Kaludercic , JD Smith , Stefan Kangas , 75526@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jan 12, 2025, at 3:58=E2=80=AFPM, Daniel Mendler via Bug reports = for GNU Emacs, the Swiss army knife of text editors = wrote: >=20 > Stefan Kangas writes: >=20 >> JD Smith writes: >>=20 >>> The TS support in python.el breaks versions of emacs prior to v30, = since it calls the recently introduced macro = `treesit-declare-unavailable-functions`. The header still notes: >>>=20 >>> ;; Version: 0.28 >>> ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq = "2.23")) >>> ;; Maintainer: emacs-devel@gnu.org >>=20 >> Maybe this could be fixed in compat? >=20 > Yes, we can add the macro `treesit-declare-unavailable-functions` to > Compat. But python.el needs to `(require 'treesit nil 'noerror)` = instead > of `(require 'treesit)`. Oops, sorry about that. I didn=E2=80=99t know python.el is on ELPA. Let = me know if there=E2=80=99s anything needed from me. Yuan From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 24 18:59:43 2025 Received: (at 75526) by debbugs.gnu.org; 24 Jan 2025 23:59:43 +0000 Received: from localhost ([127.0.0.1]:47675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tbTaQ-0003Me-Oq for submit@debbugs.gnu.org; Fri, 24 Jan 2025 18:59:43 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:50399) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tbTaP-0003MP-92 for 75526@debbugs.gnu.org; Fri, 24 Jan 2025 18:59:41 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5d3cf094768so5000813a12.0 for <75526@debbugs.gnu.org>; Fri, 24 Jan 2025 15:59:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737763175; x=1738367975; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=NEvA0iDytjv10hj9esJBOhe/EGMDsaD11CotR1zkuZA=; b=RuQp2OkE9Q933jxD/03jJKzYBdt1L53Cr5UGSYwOabKtHiGnt3UbBOM3RDdFQyLCU9 DtBhaJ4xPfC/LIGI3WL3rsCAz+D6UBRjKVQilmCpOBeCKqKIRRSNpe4lVK0JxrYGycTa RMZ6nqf0pkt3L+mE4fmwBkEWPpigT1Zaw/4PwaAqFUBsTgcLZKVXQw7kAPOuG0FiKFj2 aDbfXPGANFI8/4EpaxE8KMy2eN7DDXJ/R/DMUqLUMdKJmMOJtuXV04j6hLtFs2SZ6CLU p+erDqO73JiwpMKyhr2ibVmiqmcoqGFBuVQh9N4o/0BL2iQNAEGsbOR3El57o84fbV/S bRrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737763175; x=1738367975; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NEvA0iDytjv10hj9esJBOhe/EGMDsaD11CotR1zkuZA=; b=LLb+q9f9h2iQJ5foBK2OBTBWE0frNxiTp4lg2Ta/UxmvkyPjNcin1HmNlyxOJYzJjF i/ps+xhSK9uv95ImsGzKuvvkYFcjn1YVYeBU02iCKbzx2jL0kYhP9xVAJLUpgsrCQnqc 7qS8lE7osfedYeEmQYbS2hNJdh7BvCdOqhGEgCpabkrFUm5l81Ec2VEHy6y+gcUuEkFl 09PgzNmS+GIK3zVIUNwbaWnk5RstDkbs6Lcvq/rMJnf4/iAFnxt1CSyAeZVs2MxRRv/8 OYObEpEfR7nu4TObyvow37icwWlGA6GsGOfsfsQDGArCJUO2wkj2hC3hKkhp39tpnndC T2gg== X-Forwarded-Encrypted: i=1; AJvYcCWBvBrV+dqY3eRwa41A0VnjmMqZMj4LduxHnkUAf8rCubsv5v1NNLZH3+nWyXuWa4QSCChKgw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzyazzE7QVgE5tP2VtNPRCctYK/7YcQLY3BMye1DgCqNIjqkXNY 4xcZHlCOMZPHe79nw5Nxg/wR1kOHJDu617UlmdmeGq6cBrBFV8I/VRLkj4NQISPxdEh13JVsn69 zYdGeZgp92Z9/6+8/oQO9GYRnFRM= X-Gm-Gg: ASbGncsC/X1CpaNsBtCjJ0egxEa2BbfAgK1mmf90oOS4dsrylJV0aRqnvI8UsjE2X2t nzxXhx4+jZJj935fJDuTWTrHlbR50zd9dVDhRQCY9vZHQfQjfA0hE11w6gQQ3Vd8= X-Google-Smtp-Source: AGHT+IEFGV9ckyK47H9FTjM6FGekczFJvZrkJulz8H83eU8+O9aqRWh4Q/a2BtjNbJdgafYnxJKovguLEEtRd6qDatI= X-Received: by 2002:a05:6402:5207:b0:5d3:ce7f:ac05 with SMTP id 4fb4d7f45d1cf-5db7db235d6mr29912661a12.31.1737763174806; Fri, 24 Jan 2025 15:59:34 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 24 Jan 2025 17:59:34 -0600 From: Stefan Kangas In-Reply-To: <87o70bfuui.fsf@daniel-mendler.de> References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> <87o70bfuui.fsf@daniel-mendler.de> MIME-Version: 1.0 Date: Fri, 24 Jan 2025 17:59:34 -0600 X-Gm-Features: AWEUYZmYvmtf_s2ZJZhaFalr8I8BozoaM3sTKfYZU-uBIazdXd4-TVojHAHjjz0 Message-ID: Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 To: Daniel Mendler Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 75526 Cc: Philip Kaludercic , 75526@debbugs.gnu.org, JD Smith X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Daniel Mendler writes: > Stefan Kangas writes: > >> JD Smith writes: >> >>> The TS support in python.el breaks versions of emacs prior to v30, since it calls the recently introduced macro `treesit-declare-unavailable-functions`. The header still notes: >>> >>> ;; Version: 0.28 >>> ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq "2.23")) >>> ;; Maintainer: emacs-devel@gnu.org >> >> Maybe this could be fixed in compat? > > Yes, we can add the macro `treesit-declare-unavailable-functions` to > Compat. But python.el needs to `(require 'treesit nil 'noerror)` instead > of `(require 'treesit)`. Thanks. Please let us know when this is implemented and which version of compat we should require. Then we can also make the above change at the same time. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 25 02:02:47 2025 Received: (at 75526) by debbugs.gnu.org; 25 Jan 2025 07:02:47 +0000 Received: from localhost ([127.0.0.1]:48220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tbaBq-0004hk-MA for submit@debbugs.gnu.org; Sat, 25 Jan 2025 02:02:46 -0500 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:51875 helo=mail.qxqx.de) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tbaBn-0004hJ-99 for 75526@debbugs.gnu.org; Sat, 25 Jan 2025 02:02:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=L7tx+gpU24oZxjjHzO0dHSndGWQHT/AYQwcspCaGsFM=; b=qj9oLNoQAkpv1DTeLsoBo5lxjR EAPED49+9lrRvhOunuADb04C7O/FFAj+Igec19Qxa83+YTbXgKnKvUHRK4NPHnCmCK9JwrAb36JNE 13TNkrWirvyKumOgfMhC1mvMcliZhAJ2VC/7HYGQkTnWY5ZQGvB521fD/9HY1tmduHu0=; From: Daniel Mendler To: Stefan Kangas Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 In-Reply-To: (Stefan Kangas's message of "Fri, 24 Jan 2025 17:59:34 -0600") References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> <87o70bfuui.fsf@daniel-mendler.de> Date: Sat, 25 Jan 2025 08:02:35 +0100 Message-ID: <871pwr8jg4.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 75526 Cc: Philip Kaludercic , 75526@debbugs.gnu.org, JD Smith X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Stefan Kangas writes: > Daniel Mendler writes: > >> Stefan Kangas writes: >> >>> JD Smith writes: >>> >>>> The TS support in python.el breaks versions of emacs prior to v30, since it calls the recently introduced macro `treesit-declare-unavailable-functions`. The header still notes: >>>> >>>> ;; Version: 0.28 >>>> ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq "2.23")) >>>> ;; Maintainer: emacs-devel@gnu.org >>> >>> Maybe this could be fixed in compat? >> >> Yes, we can add the macro `treesit-declare-unavailable-functions` to >> Compat. But python.el needs to `(require 'treesit nil 'noerror)` instead >> of `(require 'treesit)`. > > Thanks. Please let us know when this is implemented and which version > of compat we should require. Then we can also make the above change at > the same time. Yes, but it will take a while until compat-31 is released. We usually release at the time of the branch creation of the corresponding Emacs version (emacs-31). Until then, it is probably better to revert the change in python.el. Daniel From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 27 20:54:06 2025 Received: (at 75526) by debbugs.gnu.org; 28 Jan 2025 01:54:06 +0000 Received: from localhost ([127.0.0.1]:34994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tcanm-0007Nr-1m for submit@debbugs.gnu.org; Mon, 27 Jan 2025 20:54:06 -0500 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:53322) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tcank-0007NL-Ea for 75526@debbugs.gnu.org; Mon, 27 Jan 2025 20:54:04 -0500 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-215770613dbso63560345ad.2 for <75526@debbugs.gnu.org>; Mon, 27 Jan 2025 17:54:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738029238; x=1738634038; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MvDodhdHH0eLB5aJUHVA9dqkOHbT8pMsMAzCots0TGM=; b=JfE9t0DE8OguekexowbkK6/z32mKFV+n4oXF+Lo7lkTEo4mB50Z8e8NCPSMlt7gRfI HcxyUwFAkkzpJVD47SePgsxrKY7Bjg+UC+WG1zd8nWHDL+AMuL0P0Zq0Eseg6NyE1NaU RAAw0uP+1X+ssUx5sk/CvmMtNwxxiItVKdyEmrXSsO++QX2POiD3AfYhtcVwiqAIFZJF b8Z8qZJh3m9yPtdRKfNoRT7UmJwJfF8wMWJoiZyaqT1w/ZVBQfHqCPunlJAbkU7PD8sR RTHpCeniOslzrHwA6zIN+APAEj1szyU2Hx6WsChuO2UMKAC0f38FLMf+7GyOEW4/o2QU dcFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738029238; x=1738634038; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MvDodhdHH0eLB5aJUHVA9dqkOHbT8pMsMAzCots0TGM=; b=DSRjsOFJt3v4naSh9+woCGoUVrNIRNiwqbkiaBw1nfBPnFN9TJo5tGFq+Kab1PrLyS 26RYzt2Ts21CxqcITIIIXWafWlzQqq7xwVoatLDeZV5LsxbaRr9gA3WhovbO90BwPM5N eezfwVxmCfiDVBPBlv6J0BMVTTm4SNdm98pg4il2qgLgFz86AgXgDCzQxHSzwlULeUDD wirBH8ed2BqJnh+p48p9eNlTE9XhuNguwpQF784JAvTpkVLBPSv1RSoFojIBRDt9mh3I O/lzvwDdZ2j8ZP0tqiQTJ6U2vbuUiwhVsRPK6EIgX4IAis2XKu04eguZB1Y98I0X9HgU IF9A== X-Forwarded-Encrypted: i=1; AJvYcCXJ/3HNqZN1h8yfQwsxk4Pc0zf9Z5cc4idrSH6aC/+4yzAc63aDoUUrAx0Ez9LNI48MGxjvRw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxTcyxz123fM+QtnDGs6jvT9RfEzhpvrA/6zlN8jqRQqAafTpwa Ulaz2MYnhPQa6Hn2RW5ZZxHvnz9EJvSvKkEpS/+RN+egtV2jeUMo X-Gm-Gg: ASbGncsJ//2fjz6+0T914VgmNflXSAue4qYVWBIqM0fHwlMBspek/vUjfq1q+qisKvU xzIK73PbMcji3jtWSZBF+5UKqz32vrN7UlVgNbSvFnq+G0y8lguj9fhYUgOqx/5FVZ8p/sUZHCE mxk9kgJ0CwyxS0anfzZS2fS5adCGzmaefbtuj83B9rek1xvNeQ68dSlOUPaa9Aj13JvoVKFfo80 2KlmYeEDpt7ACueTXAfRQOFe9+VwI7w7BRZGBGPqMhMxdcCqhJeR8IcRsoipAtHLKbKSxUeOHlR HWNgKb4ESSOEKxkN/kIf/HYF4+JJ X-Google-Smtp-Source: AGHT+IHqU0T1cNLoP55MObw8H1+oD9PKIfylIHuyyFLEGIC5g2d0SJvnUS0LeofPJ2P59rnIQ1XNSQ== X-Received: by 2002:a17:902:f544:b0:216:2a36:5b2e with SMTP id d9443c01a7336-21c355a4cfbmr642365025ad.32.1738029238272; Mon, 27 Jan 2025 17:53:58 -0800 (PST) Received: from smtpclient.apple ([2601:646:8f81:6120:954a:ef64:25ce:1e3c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21da3d9b8e0sm71283815ad.40.2025.01.27.17.53.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jan 2025 17:53:57 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 From: Yuan Fu In-Reply-To: Date: Mon, 27 Jan 2025 17:53:46 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> <87o70bfuui.fsf@daniel-mendler.de> To: Daniel Mendler X-Mailer: Apple Mail (2.3776.700.51) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 75526 Cc: Philip Kaludercic , JD Smith , Stefan Kangas , 75526@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jan 12, 2025, at 10:19=E2=80=AFPM, Yuan Fu = wrote: >=20 >=20 >=20 >> On Jan 12, 2025, at 3:58=E2=80=AFPM, Daniel Mendler via Bug reports = for GNU Emacs, the Swiss army knife of text editors = wrote: >>=20 >> Stefan Kangas writes: >>=20 >>> JD Smith writes: >>>=20 >>>> The TS support in python.el breaks versions of emacs prior to v30, = since it calls the recently introduced macro = `treesit-declare-unavailable-functions`. The header still notes: >>>>=20 >>>> ;; Version: 0.28 >>>> ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq = "2.23")) >>>> ;; Maintainer: emacs-devel@gnu.org >>>=20 >>> Maybe this could be fixed in compat? >>=20 >> Yes, we can add the macro `treesit-declare-unavailable-functions` to >> Compat. But python.el needs to `(require 'treesit nil 'noerror)` = instead >> of `(require 'treesit)`. >=20 > Oops, sorry about that. I didn=E2=80=99t know python.el is on ELPA. = Let me know if there=E2=80=99s anything needed from me. >=20 > Yuan Any progress on this? I can add it to compat.el if no one is available = right now. Compat.el is on savannah, right? Yuan From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 27 22:57:13 2025 Received: (at 75526) by debbugs.gnu.org; 28 Jan 2025 03:57:14 +0000 Received: from localhost ([127.0.0.1]:35146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tcciv-0004Tz-Ey for submit@debbugs.gnu.org; Mon, 27 Jan 2025 22:57:13 -0500 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:61784) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tccis-0004Tm-Cg for 75526@debbugs.gnu.org; Mon, 27 Jan 2025 22:57:11 -0500 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-21669fd5c7cso91691925ad.3 for <75526@debbugs.gnu.org>; Mon, 27 Jan 2025 19:57:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738036624; x=1738641424; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IB5GIr30gAij3iP+DUPZ2mMRr25ZVJkrzKV8BqFKBxk=; b=jviXZcYl88ZmmF5RYt76ThxFHBOWD4huSdqxu9425dX/hq+IW932A/xl8Xq2p2C5eh gGKkwt7w/X3hpLgMf/remv3Mm0g29OG74kO0GXws8r7hrCn8TbFXdwIlzL0L6oZg6plV ptqO899760w3vu4WRY2JTwAu0/9rONTjsIHksYxfd4wnlhyWZkpDhUMFSt0KTiWZkl9g cvCuBRsHcWIjlw+EgbLbT4AwUvX0b2FsPzcBCyHpmcHgHVbaV1/dnE85rTdsqIExKwKS RN8khWQWFNAXvdbL1P6Pi9Vw6awi1zytQVcpys5DCLmKV5ocmRnwl5BobVuSfkWMRrte avVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738036624; x=1738641424; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IB5GIr30gAij3iP+DUPZ2mMRr25ZVJkrzKV8BqFKBxk=; b=o8iVmKscG6fnrd9I53mUn8v4McA8mPBBePCmMv4YP3P/TTUW+BMEDAjF6hVL0jXgig t5mC+OzvKznCoJknimgWav5GdU/tSJMflWz+vCbQUn7z2WWQ12Gjr/NUJaVJzLsJ8I+c /Rdwy9v+7A6H7AKV63KjMnaCOTpup+rgvgtC8fIx5lSl+fQbWQ4Su8v3uiiaR26mkpa0 ZRKcZjXdVGl3EJJenZZKjBe7KMPNQdsbR5IHqeqJxgnMChoNSMfGVMXJzwuQ3hf2Ip5L bbAFagyElGxxBH2JGxRr+/Czf5/1iPJYFTXUmqEKhYZUezO7KbV+e5HyRyzENPyuDroy wJAw== X-Forwarded-Encrypted: i=1; AJvYcCXDG/vX6nbPk8mnZNe0mdsiebbjodRFW+QuPsuJzEW7Zw7PhYLyAVnWPSx+oowbCHRRpKFB4w==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyJTdp1BWHHn2FghMyHd4R6i2oKIzLw0QoXqMOjQ5LjaGe/HgBI OGHe0yNLIqUfcVtj+sZKErylJIYKBS+pGBuIM4nEuR7qvI4OlK+M X-Gm-Gg: ASbGncuIamarrz2LJpp5uhetcgCfrjmAsxtLqkNFa3Z4mK/ZheUeTy2IDnxfrUgYLwL p08du+RILJWF6Nh6fm49vpdx7UMHWrw9kB8eBBdJRRYFNMjs//xt4eqz2At4Gf0PrN9+haMMaUs wuIwiDZd5mktf/uX618ttIJUDW6+JL7qBDpSSkHNpI/P7DxDJK5gG3b1ZSdlnWSCPE++qVp1Z9L RculpbxXg3xg7FOP/0plnqGUMW0N82jAhRKxpz/L/Q7HQvqRctsIUkFiBoG534bPp6lb/SA7cpl DwDJzI4GOGsRxH32jKg7FIaBMyutMWjzpiWjhMg= X-Google-Smtp-Source: AGHT+IFATy4d4G81aM5aajz2naRrB8HQ1uzIQDmQ4FoAcJWgtoYNjYemhDbqowhsnuFtReFgTciWTQ== X-Received: by 2002:a05:6a20:6ca9:b0:1e1:aab8:3887 with SMTP id adf61e73a8af0-1eb215ec4famr50913330637.39.1738036624174; Mon, 27 Jan 2025 19:57:04 -0800 (PST) Received: from smtpclient.apple ([2601:646:8f81:6120:954a:ef64:25ce:1e3c]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72f8a77c851sm8275544b3a.137.2025.01.27.19.57.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jan 2025 19:57:03 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 From: Yuan Fu In-Reply-To: <871pwr8jg4.fsf@daniel-mendler.de> Date: Mon, 27 Jan 2025 19:56:52 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <6DFBCCE6-3047-4DDD-AB17-EF018BD4A08B@gmail.com> References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> <87o70bfuui.fsf@daniel-mendler.de> <871pwr8jg4.fsf@daniel-mendler.de> To: Daniel Mendler X-Mailer: Apple Mail (2.3776.700.51) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 75526 Cc: Philip Kaludercic , JD Smith , Stefan Kangas , 75526@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jan 24, 2025, at 11:02=E2=80=AFPM, Daniel Mendler via Bug reports = for GNU Emacs, the Swiss army knife of text editors = wrote: >=20 > Stefan Kangas writes: >=20 >> Daniel Mendler writes: >>=20 >>> Stefan Kangas writes: >>>=20 >>>> JD Smith writes: >>>>=20 >>>>> The TS support in python.el breaks versions of emacs prior to v30, = since it calls the recently introduced macro = `treesit-declare-unavailable-functions`. The header still notes: >>>>>=20 >>>>> ;; Version: 0.28 >>>>> ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq = "2.23")) >>>>> ;; Maintainer: emacs-devel@gnu.org >>>>=20 >>>> Maybe this could be fixed in compat? >>>=20 >>> Yes, we can add the macro `treesit-declare-unavailable-functions` to >>> Compat. But python.el needs to `(require 'treesit nil 'noerror)` = instead >>> of `(require 'treesit)`. >>=20 >> Thanks. Please let us know when this is implemented and which = version >> of compat we should require. Then we can also make the above change = at >> the same time. >=20 > Yes, but it will take a while until compat-31 is released. We usually > release at the time of the branch creation of the corresponding Emacs > version (emacs-31). Until then, it is probably better to revert the > change in python.el. >=20 > Daniel Thanks, I reverted it on master. Yuan= From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 01:55:59 2025 Received: (at 75526) by debbugs.gnu.org; 28 Jan 2025 06:55:59 +0000 Received: from localhost ([127.0.0.1]:35365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tcfVv-0007N8-5Y for submit@debbugs.gnu.org; Tue, 28 Jan 2025 01:55:59 -0500 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:47997 helo=mail.qxqx.de) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tcfVr-0007Mr-Oq for 75526@debbugs.gnu.org; Tue, 28 Jan 2025 01:55:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5obsK47hGUD+qkOkc3OWkSeIjnbKSlEqSMlY0Ln2UsY=; b=GEfFNHZ8U+oNC15cHmqPCMYcea CiyIxXvDVUNScvT1tRe+YFIdI4PO6feaiJHOLc3QxjleriiGukC4QpSI4pxX9be2iHRz368xwzDFl dpvY8X9NVQEZ/6JgYwzYdzRI4+wccPUPLS5Pky879r6Ssv80Pc7VxVprBfhbr+HnFhls=; From: Daniel Mendler To: Yuan Fu Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 In-Reply-To: (Yuan Fu's message of "Mon, 27 Jan 2025 17:53:46 -0800") References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> <87o70bfuui.fsf@daniel-mendler.de> Date: Tue, 28 Jan 2025 07:55:47 +0100 Message-ID: <87sep3mnpo.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 75526 Cc: Philip Kaludercic , JD Smith , Stefan Kangas , 75526@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Yuan Fu writes: >> On Jan 12, 2025, at 10:19=E2=80=AFPM, Yuan Fu wrote: >>=20 >>=20 >>=20 >>> On Jan 12, 2025, at 3:58=E2=80=AFPM, Daniel Mendler via Bug reports for= GNU Emacs, the Swiss army knife of text editors wr= ote: >>>=20 >>> Stefan Kangas writes: >>>=20 >>>> JD Smith writes: >>>>=20 >>>>> The TS support in python.el breaks versions of emacs prior to v30, si= nce it calls the recently introduced macro `treesit-declare-unavailable-fun= ctions`. The header still notes: >>>>>=20 >>>>> ;; Version: 0.28 >>>>> ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq "2.23")) >>>>> ;; Maintainer: emacs-devel@gnu.org >>>>=20 >>>> Maybe this could be fixed in compat? >>>=20 >>> Yes, we can add the macro `treesit-declare-unavailable-functions` to >>> Compat. But python.el needs to `(require 'treesit nil 'noerror)` instead >>> of `(require 'treesit)`. >>=20 >> Oops, sorry about that. I didn=E2=80=99t know python.el is on ELPA. Let = me know if there=E2=80=99s anything needed from me. >>=20 >> Yuan > > Any progress on this? I can add it to compat.el if no one is available ri= ght now. Compat.el is on savannah, right? No, this is too early. Compat-31 is still far away. > Yuan From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 22:00:41 2025 Received: (at 75526) by debbugs.gnu.org; 29 Jan 2025 03:00:41 +0000 Received: from localhost ([127.0.0.1]:39421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tcyJk-0001BD-QK for submit@debbugs.gnu.org; Tue, 28 Jan 2025 22:00:41 -0500 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:50638) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tcyJg-0001At-2y for 75526@debbugs.gnu.org; Tue, 28 Jan 2025 22:00:36 -0500 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2ee86a1a92dso8879444a91.1 for <75526@debbugs.gnu.org>; Tue, 28 Jan 2025 19:00:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738119630; x=1738724430; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3h4hGy0mLB0QyKk2W/xVSeaSGPret/78+dTwh/V2M7k=; b=JNFzt0Qe7cDFjUwD8GT4xJCljvxiwZKL8Ss4IiEjBHHFNqWWboZO3crj/yQszASPDU 38iWKeJPMUXKArCOD/wsCu4PPL80BDGDBP2CPq7gFRi4zinhUCmqdm5qwFmk9iZnW8g3 XWZtUtb3yG39on+qze33hy1qNhYyY9gTK5DLsTZ9ED0tIIuq2+smhMWpRuItWx9Lswfd xUqKzLUUv2FM4quq8MtFmZnEoNzzzMDHoCq2TYcXXwwQg+3krUpZECEqCMyXVsqfdQ8B ABRrTVPtfWtVAKLG8SBSBM1u2svgE9ASkhxYpPKxdaAbJSoYv/+Dto1kpAR/81FFNXJ6 lZJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738119630; x=1738724430; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3h4hGy0mLB0QyKk2W/xVSeaSGPret/78+dTwh/V2M7k=; b=p3GtS+VFGlkgl7X8+7P/spJcJ7DEXFyyLmFrOZ0he3CA9grnakUIXj2M1ssNAdZdBu xSopmSIwgEWqNKBQprfBHZd0z/++rPAHf/3TktyiwqXln6V/EWCmxzoV+LdKnArYdmuC vSff3+UTj6Qmz2qDPBXSPPigLJf8lRvv0BN5h2tPrmw2R/g3E56ilZj0/sK75X5KszLN xmRFzd1Q3Mfhwn2pyKjozKEWgs/0qR8jwcO2zJU2jycXiAVBKLANMEjQVJhOykJEYnhF P43zJRQuqgK7y8A0BmH0SCISbG5IX+9rGD+FPnPNy258UOIgx+lUl7M993Xn6sMcWZSQ Zy3w== X-Forwarded-Encrypted: i=1; AJvYcCWIzJ9jVqyaaESoBctR9sW8E3BAV4DSUdcn+yw+2odnfxlXSJY43DWSveeWQnUgBfG2ak29BQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Ywrk1swIjgYGgM5XtdwBNW7TofBJaJ+YBBTc5N6KOmp06WBCtpH EyoKZM8hUzNAUt00XzNUdPaa7BiHUFmoPbDH7pg2IxyTlG3j1VdZ X-Gm-Gg: ASbGnctG6IuvX+b/YEaamAtNSmIJ0ijCbCckNcLXzedBfOwn4ca9f8mA8KXCvKwCROv QkraJVm0f3pU8LtN1aFGLAtJ0HJ6lX/DboY5A8+WfM9czvuHgb/nowOlSmstlHGzJDV2SIdzpOP PzWlTP1qN1GAHvsvJcrN35XH5Z/N1ZtVj5vRbuGvQy8w4w6sF0m1948nLvVRVX90S4wyW2YVcvK ey+/89dpJYRuGGcQLSWgxRAhCFyHglCgE9aWWd0sbY35lGKRLkne92E5swqZJ0H4H/BFlUwkxzz 8ZQxEaSWfrJKJn/jRXS0ftRpNAvS9OUFRuiYZ3A= X-Google-Smtp-Source: AGHT+IGwPIxbfdro5vEX9p89p1Iezx7Xk1L7/cOMLLD+606DQjLADOFcs6bYyu9SnCcpRMxMl3es4g== X-Received: by 2002:a17:90b:2f44:b0:2ee:c91a:ad05 with SMTP id 98e67ed59e1d1-2f83abc3987mr2049369a91.3.1738119629730; Tue, 28 Jan 2025 19:00:29 -0800 (PST) Received: from smtpclient.apple ([2601:646:8f81:6120:78af:756b:c744:4c15]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f83bf9498asm337192a91.32.2025.01.28.19.00.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jan 2025 19:00:29 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 From: Yuan Fu In-Reply-To: <87sep3mnpo.fsf@daniel-mendler.de> Date: Tue, 28 Jan 2025 19:00:17 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <7B5B5169-E58D-4D0A-BA05-EE4820EB2325@gmail.com> References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> <87o70bfuui.fsf@daniel-mendler.de> <87sep3mnpo.fsf@daniel-mendler.de> To: Daniel Mendler X-Mailer: Apple Mail (2.3776.700.51) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 75526 Cc: Philip Kaludercic , JD Smith , Stefan Kangas , 75526@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jan 27, 2025, at 10:55=E2=80=AFPM, Daniel Mendler = wrote: >=20 > Yuan Fu writes: >=20 >>> On Jan 12, 2025, at 10:19=E2=80=AFPM, Yuan Fu = wrote: >>>=20 >>>=20 >>>=20 >>>> On Jan 12, 2025, at 3:58=E2=80=AFPM, Daniel Mendler via Bug reports = for GNU Emacs, the Swiss army knife of text editors = wrote: >>>>=20 >>>> Stefan Kangas writes: >>>>=20 >>>>> JD Smith writes: >>>>>=20 >>>>>> The TS support in python.el breaks versions of emacs prior to = v30, since it calls the recently introduced macro = `treesit-declare-unavailable-functions`. The header still notes: >>>>>>=20 >>>>>> ;; Version: 0.28 >>>>>> ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq = "2.23")) >>>>>> ;; Maintainer: emacs-devel@gnu.org >>>>>=20 >>>>> Maybe this could be fixed in compat? >>>>=20 >>>> Yes, we can add the macro `treesit-declare-unavailable-functions` = to >>>> Compat. But python.el needs to `(require 'treesit nil 'noerror)` = instead >>>> of `(require 'treesit)`. >>>=20 >>> Oops, sorry about that. I didn=E2=80=99t know python.el is on ELPA. = Let me know if there=E2=80=99s anything needed from me. >>>=20 >>> Yuan >>=20 >> Any progress on this? I can add it to compat.el if no one is = available right now. Compat.el is on savannah, right? >=20 > No, this is too early. Compat-31 is still far away. Thanks. I reverted the change in python.el Yuan= From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 27 20:39:53 2025 Received: (at 75526) by debbugs.gnu.org; 28 Feb 2025 01:39:53 +0000 Received: from localhost ([127.0.0.1]:41119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnpM0-0006ss-Ra for submit@debbugs.gnu.org; Thu, 27 Feb 2025 20:39:53 -0500 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:54380) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tnpLz-0006sb-2g for 75526@debbugs.gnu.org; Thu, 27 Feb 2025 20:39:51 -0500 Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-46fcbb96ba9so19292571cf.0 for <75526@debbugs.gnu.org>; Thu, 27 Feb 2025 17:39:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740706785; x=1741311585; darn=debbugs.gnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=ABbHLeM4hP+zSf3q48mdzW9Cq3dr0ZZyttvMWvRodPo=; b=bpJh5cbG6vtL1HpXyDau6gAz+Jn2lji/b5UGKP26x6Cgp5nm96InNcL0g1ECynh2Dj uXges0r/ZQPzLGHUeBekDp+NGO3SPyZlUXofeY5mgs/zZJ8cytFcPLOD5TcbEhVL4398 SemqZjCeLD8mTK7Epo1RoxQ4k4Tfw0WvGEuKGPA5OPeBLxOpEJTyYbp+xLjwwr6cYZ+v LMIabPFeHZoA4MNw1sy3szxPlhuVEyf6XTw8H6uRfkM38C4DAS1ykrt2hJd5991LlMfi Yg6CAry0nb/pzZC7Th5Dj4UGpaWHtvRIWFZdsACuS7Q5Z7pU1qKaE/sCL07oTnGzmoZT 6PBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740706785; x=1741311585; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ABbHLeM4hP+zSf3q48mdzW9Cq3dr0ZZyttvMWvRodPo=; b=JwPCzHPl8os9KetxYFSPVUjNene05iSbxevsMER339sxOW3+D3PMShz9ISL2p+4kpP X7i+oie5KtbGveEdtOQs8q86W6XxSJ5lHrSNZ5+7sNpmzDLLYENQ7G7FXgwOKGXbr/XV zHyCtlHgqv9IuKsS7P0Ry2Zwl81lHXS1ODcFy/Rcd+GpRETVW8d3oQGxLXuIS7GqETU+ cRt+vI45Q1sejbvwtY8mdAyT7HePP+pi1F6LHYl13ML/OaqyzNcFmgkmTyK4IuQ76SkV PD3ZAu/E90apRrncb7GJX9LOF925RyngdMPod45WwKVV0K+1YB3aVGeH4kkcp1zNWcAq uo8w== X-Forwarded-Encrypted: i=1; AJvYcCV0NEHB6Ff2ilP6ytuQorud2vf6XHxG7Lnx14QePTGLt5lgNgX3sXF6u9Raafu7joKAr0rfvw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yyr254TM5T9X6F2SynLxWSMRCrzBcI4FezV0Dgir9wcTOjlEn+R uH7JCnBvzMWrMpHKt/6h0r/MffbOymYPJ/kjETv72y7i+O+XEPWh X-Gm-Gg: ASbGncumSX3drBEwvc6LEAwiNzsYbMyM8+KAQV3na9661iFg/JkhItROyWk/s+awR2z z5BaF3ewLRLsTWckK6x5Q7P/yw8OOngg0OXFX5tvIo9R9eVxLr1APEWD6uYbDWLaUhqMemELkd9 HkXnxz883qjdsUHaihlMNjtBjquoyaZVyaYa841yy6UBUbiGQVn1hezx3yi/eJjJKoISMqxxPXH fpDZ5VOrnaK+5kjtVJsBkgDzaBpWi/YX5TMuig+wDXj1FWg5PaO3PUQ3VgP7kWDKZBONBjWxjWx HiFEiKJFfqyM55yPXy7m+J+P6ys4ZR/7hrSFPML6eJ+YWPYpawgE+IEY+1OkxKpld5vxk7hmKg= = X-Google-Smtp-Source: AGHT+IG6I5ibW4JbtH+9tAVJy5iIF8hZUPdFFH2oGenSBgAWupWCnDjhQeCqCMaTlgnxnYCru269dw== X-Received: by 2002:a05:622a:646:b0:472:54d:295a with SMTP id d75a77b69052e-474bc08de3emr19615121cf.30.1740706785200; Thu, 27 Feb 2025 17:39:45 -0800 (PST) Received: from smtpclient.apple (cm-24-53-185-196.buckeyecom.net. [24.53.185.196]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-474721bf65asm18150221cf.36.2025.02.27.17.39.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Feb 2025 17:39:44 -0800 (PST) From: JD Smith Message-Id: <3508490F-43D5-4B87-80E3-FE932D06D95E@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_F188DA71-0F8B-4BEF-B69E-8E3D19624987" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.87.4.3\)) Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 Date: Thu, 27 Feb 2025 20:39:33 -0500 In-Reply-To: <7B5B5169-E58D-4D0A-BA05-EE4820EB2325@gmail.com> To: Yuan Fu References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> <87o70bfuui.fsf@daniel-mendler.de> <87sep3mnpo.fsf@daniel-mendler.de> <7B5B5169-E58D-4D0A-BA05-EE4820EB2325@gmail.com> X-Mailer: Apple Mail (2.3826.300.87.4.3) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75526 Cc: Daniel Mendler , Philip Kaludercic , Stefan Kangas , 75526@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_F188DA71-0F8B-4BEF-B69E-8E3D19624987 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 28, 2025, at 10:00=E2=80=AFPM, Yuan Fu = wrote: >=20 >=20 >=20 >> On Jan 27, 2025, at 10:55=E2=80=AFPM, Daniel Mendler = wrote: >>=20 >> Yuan Fu writes: >>=20 >>>> On Jan 12, 2025, at 10:19=E2=80=AFPM, Yuan Fu = wrote: >>>>=20 >>>>=20 >>>>=20 >>>>> On Jan 12, 2025, at 3:58=E2=80=AFPM, Daniel Mendler via Bug = reports for GNU Emacs, the Swiss army knife of text editors = wrote: >>>>>=20 >>>>> Stefan Kangas writes: >>>>>=20 >>>>>> JD Smith writes: >>>>>>=20 >>>>>>> The TS support in python.el breaks versions of emacs prior to = v30, since it calls the recently introduced macro = `treesit-declare-unavailable-functions`. The header still notes: >>>>>>>=20 >>>>>>> ;; Version: 0.28 >>>>>>> ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq = "2.23")) >>>>>>> ;; Maintainer: emacs-devel@gnu.org >>>>>>=20 >>>>>> Maybe this could be fixed in compat? >>>>>=20 >>>>> Yes, we can add the macro `treesit-declare-unavailable-functions` = to >>>>> Compat. But python.el needs to `(require 'treesit nil 'noerror)` = instead >>>>> of `(require 'treesit)`. >>>>=20 >>>> Oops, sorry about that. I didn=E2=80=99t know python.el is on ELPA. = Let me know if there=E2=80=99s anything needed from me. >>>>=20 >>>> Yuan >>>=20 >>> Any progress on this? I can add it to compat.el if no one is = available right now. Compat.el is on savannah, right? >>=20 >> No, this is too early. Compat-31 is still far away. >=20 > Thanks. I reverted the change in python.el >=20 Thanks. Unfortunately there are now new changes to python.el which = again break Emacs < 30. The file still mentions:=20 > Package-Requires: ((emacs "24.4")=20 It now uses the Emacs 30 only `derived-mode-add-parents'. If python.el = is going to be developed primarily on master, it should probably be = removed from MELPA or at least use compat. I'll take this up with them. JD= --Apple-Mail=_F188DA71-0F8B-4BEF-B69E-8E3D19624987 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Jan 28, = 2025, at 10:00=E2=80=AFPM, Yuan Fu <casouri@gmail.com> = wrote:



On Jan 27, 2025, at 10:55=E2=80=AFPM, Daniel = Mendler <mail@daniel-mendler.de> wrote:

Yuan Fu = <casouri@gmail.com> writes:

On Jan 12, 2025, at 10:19=E2=80=AF= PM, Yuan Fu <casouri@gmail.com> wrote:



On Jan 12, 2025, at 3:58=E2=80=AFPM, Daniel Mendler via = Bug reports for GNU Emacs, the Swiss army knife of text editors = <bug-gnu-emacs@gnu.org> wrote:

Stefan Kangas = <stefankangas@gmail.com> writes:

JD= Smith <jdtsmith@gmail.com> writes:

The TS support in python.el breaks versions of emacs prior = to v30, since it calls the recently introduced macro = `treesit-declare-unavailable-functions`.  The header still = notes:

;; Version: 0.28
;; Package-Requires: ((emacs "24.4") = (compat "29.1.1.0") (seq "2.23"))
;; Maintainer: = emacs-devel@gnu.org

Maybe this could be fixed in = compat?

Yes, we can add the macro = `treesit-declare-unavailable-functions` to
Compat. But python.el = needs to `(require 'treesit nil 'noerror)` instead
of `(require = 'treesit)`.

Oops, sorry about that. I didn=E2=80=99t = know python.el is on ELPA. Let me know if there=E2=80=99s anything = needed from me.

Yuan

Any progress on this? I = can add it to compat.el if no one is available right now. Compat.el is = on savannah, right?

No, this is too early. Compat-31 = is still far away.

Thanks. = I reverted the change in python.el


Thanks. =  Unfortunately there are now new changes to python.el which again = break Emacs < 30.  The file still mentions: 

Package-Requires: ((emacs = "24.4") 

It now uses the = Emacs 30 only `derived-mode-add-parents'.  If python.el is going to = be developed primarily on master, it should probably be removed from = MELPA or at least use compat.  I'll take this up with = them.

JD
= --Apple-Mail=_F188DA71-0F8B-4BEF-B69E-8E3D19624987-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 28 03:34:19 2025 Received: (at 75526) by debbugs.gnu.org; 28 Feb 2025 08:34:19 +0000 Received: from localhost ([127.0.0.1]:44814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnvp5-0005bQ-0S for submit@debbugs.gnu.org; Fri, 28 Feb 2025 03:34:19 -0500 Received: from mout02.posteo.de ([185.67.36.66]:49911) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tnvoz-0005at-TM for 75526@debbugs.gnu.org; Fri, 28 Feb 2025 03:34:16 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 682BF240101 for <75526@debbugs.gnu.org>; Fri, 28 Feb 2025 09:34:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1740731647; bh=uhP4nzNOcU2/U5kfeB3v61m+L+atUbmdNbohOeE2pkA=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding:From; b=nzdTWmNSbQpZ66fYej/hEY+wpNr9CEJrCV0OoAIfLmgZDs1AL/gAQoZoXJos5OwXH eZuQGH7goDpn22Z3e22ZCLg6foQFnuqR+RTWC0eyXfpJDdHrv9MPGQbVc2DhC89N0S hilkiscnFhjEvRBSbODv3CxiMR24lfGggGFLhfigd2XrO6YX4xx9gxnSdSysN/Z4yB L6uCNsoWWv+d9u9xgruHYFMjQW48CPMNdhhvOO8LPWw9kOSoJ4D9tZn0C2ScmOf4gl URBoNIqQcTgXLU6DKOqTVc1bo3f2q4fobjUN0iEyPo6ZfLnoEg11fbUrE9m95f/+Mg xG4iJ2XL5vG9Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Z41hZ36nKz6twM; Fri, 28 Feb 2025 09:34:05 +0100 (CET) From: Philip Kaludercic To: JD Smith Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 In-Reply-To: <3508490F-43D5-4B87-80E3-FE932D06D95E@gmail.com> References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> <87o70bfuui.fsf@daniel-mendler.de> <87sep3mnpo.fsf@daniel-mendler.de> <7B5B5169-E58D-4D0A-BA05-EE4820EB2325@gmail.com> <3508490F-43D5-4B87-80E3-FE932D06D95E@gmail.com> Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Date: Fri, 28 Feb 2025 08:34:04 +0000 Message-ID: <87wmdah3ib.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75526 Cc: Daniel Mendler , Yuan Fu , Stefan Kangas , 75526@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) JD Smith writes: >> On Jan 28, 2025, at 10:00=E2=80=AFPM, Yuan Fu wrote: >>=20 >>=20 >>=20 >>> On Jan 27, 2025, at 10:55=E2=80=AFPM, Daniel Mendler wrote: >>>=20 >>> Yuan Fu writes: >>>=20 >>>>> On Jan 12, 2025, at 10:19=E2=80=AFPM, Yuan Fu wro= te: >>>>>=20 >>>>>=20 >>>>>=20 >>>>>> On Jan 12, 2025, at 3:58=E2=80=AFPM, Daniel Mendler via Bug reports = for GNU Emacs, the Swiss army knife of text editors = wrote: >>>>>>=20 >>>>>> Stefan Kangas writes: >>>>>>=20 >>>>>>> JD Smith writes: >>>>>>>=20 >>>>>>>> The TS support in python.el breaks versions of emacs prior to >>>>>>>> v30, since it calls the recently introduced macro >>>>>>>> `treesit-declare-unavailable-functions`. The header still >>>>>>>> notes: >>>>>>>>=20 >>>>>>>> ;; Version: 0.28 >>>>>>>> ;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq "2.2= 3")) >>>>>>>> ;; Maintainer: emacs-devel@gnu.org >>>>>>>=20 >>>>>>> Maybe this could be fixed in compat? >>>>>>=20 >>>>>> Yes, we can add the macro `treesit-declare-unavailable-functions` to >>>>>> Compat. But python.el needs to `(require 'treesit nil 'noerror)` ins= tead >>>>>> of `(require 'treesit)`. >>>>>=20 >>>>> Oops, sorry about that. I didn=E2=80=99t know python.el is on ELPA. L= et me know if there=E2=80=99s anything needed from me. >>>>>=20 >>>>> Yuan >>>>=20 >>>> Any progress on this? I can add it to compat.el if no one is available= right now. Compat.el is on savannah, right? >>>=20 >>> No, this is too early. Compat-31 is still far away. >>=20 >> Thanks. I reverted the change in python.el >>=20 > > Thanks. Unfortunately there are now new changes to python.el which again= break Emacs < 30. The file still mentions:=20 > >> Package-Requires: ((emacs "24.4")=20 > > > It now uses the Emacs 30 only `derived-mode-add-parents'. If > python.el is going to be developed primarily on master, it should > probably be removed from MELPA or at least use compat. I'll take this > up with them. python.el is on MELPA? (and it /does/ use Compat!) But note that Compat doesn't implement everything, IIRC this includes derived-mode-add-parents. > JD From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 28 07:35:14 2025 Received: (at 75526) by debbugs.gnu.org; 28 Feb 2025 12:35:14 +0000 Received: from localhost ([127.0.0.1]:46663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnzaD-0004if-UK for submit@debbugs.gnu.org; Fri, 28 Feb 2025 07:35:14 -0500 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]:61906) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tnzaB-0004cq-08 for 75526@debbugs.gnu.org; Fri, 28 Feb 2025 07:35:12 -0500 Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-7c0892e4b19so224914485a.3 for <75526@debbugs.gnu.org>; Fri, 28 Feb 2025 04:35:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740746105; x=1741350905; darn=debbugs.gnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=A5c6Vat6aPBujCEGugXagY1GS8+Bw2fcwhQjgbp5quA=; b=JPAPZgxoqvNtirK8QtRrU+55HbNZRnnJJEBChxty9RQpn4k12mPHxpO7bCqwdNe2WS wtfs34Td8cIuYlPI4c08qBXLRfyhpy3iQF1XSXeLSG3CjMsHUrO0/V/PtxiYC9ctjW38 t6Mic0O5WBrKSVXNx0/xN6o6fDOJj3BqUm8cP9GvZ3QSx8uLLxXNKNsf4cfvjGTAp7UE bexvDj8YaEbE3d02tb8FigFDgZtezLhAxgO3F56vPkXS3qR59RXYb9ZMJdnpUmmuf7cm yHswqrHhRiVZfvKaGk3hNK+joTukHMSnJv1GrPJn1PJY5TwkywXoUda4g1oogX0cVKi9 cusw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740746105; x=1741350905; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=A5c6Vat6aPBujCEGugXagY1GS8+Bw2fcwhQjgbp5quA=; b=peLRZNuVol3dJq/xhdLC8lZHXCpWUXSHWi2Hk1haj8sl4mRSSCQuva8ReWM5gd5GvY 4aDppJ0gvhSWhT0FeAvTNREIhPJTV+UXZF/kRYlomtQAuITpTYNE2i+atb8xdEssbSBx +eU5HU0I9PLK2M+cG+BrNeMyT1F3ZFuhIqvBKtecc/hQsLPFCx9FExnIEJeWSD5dqZSt F+tkSq3bODHUCyLl1UJ5QJO3Lhqo+8w3JpUMzrTR4WtIo/yIh1AzZ8BTwUbYtdFB7BWC eDdV16H9BC3nGMFG2YrPT6JsnsHfbcpB9lBhyo7JOOuXW1XXzR4PUNYGIFggT/MMAe94 ty6g== X-Forwarded-Encrypted: i=1; AJvYcCXmILvpmvGzxV3sFchgy0BvClYqcWMY20dRyQ3XXuO9PmoE8431f6KSBKUmAXIQnyecG0GYng==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwMNFNVhaRS/hZayHCIdtdia3UswvoRKUCK+fvzJmFWWDpALp+s Gbtwjnj+uC9SQ6P1lvqudvsnbpGpqObVCyJI3ZlhTcpEsw6Tx1qz X-Gm-Gg: ASbGncuoaKLayDx4aMTAQystdiTBAh+nr7JdwF5yVijQW8j9H7OrZZjv1EKgL9JEw8P 4rtx4l4y1ckVBLzWMehqmtEDoHDp2sWFtr7lPBI4NqCK1SAGAOIYFAym9FroAz9+bM0jO1gKHkl dcKVBkd0Bk0dynvZnT0nOgTrmCS076HX3DYK8HxeVPAttt88EdOMxTsGqDZ51uLxLpw0qWsy2BX P3vUKv+3CwPrKfCTatqfSaBGEGD99gI3vFAefbTSy4lvu5SB/m4T1GpU5Te04ynW9AOuF/dAC0R 9jFr09JGNAh+sr2mEb0SkXpQhRBX1g8wfzTtj45Lpded+SNyw80ibCysfLdnklKGXgi0d8C/Zw= = X-Google-Smtp-Source: AGHT+IGu6FjnFX8g+99TfrP8TnZc4Cd6YLcvdMUnhm3S8TQ6a7aUpK2Jg1knev4eu30GcszvzBSCYA== X-Received: by 2002:a05:620a:2a01:b0:7c0:7eb4:6635 with SMTP id af79cd13be357-7c39c4b64aamr366284385a.20.1740746105065; Fri, 28 Feb 2025 04:35:05 -0800 (PST) Received: from smtpclient.apple (cm-24-53-185-196.buckeyecom.net. [24.53.185.196]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7c378daa790sm239957085a.93.2025.02.28.04.35.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Feb 2025 04:35:04 -0800 (PST) From: JD Smith Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_5FAF6C64-320A-4132-BBA6-23184AD99E10" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.87.4.3\)) Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4 Date: Fri, 28 Feb 2025 07:34:53 -0500 In-Reply-To: <87wmdah3ib.fsf@posteo.net> To: Philip Kaludercic References: <20D9F687-4E89-4A36-B5BF-EAD07A311B9E@gmail.com> <87o70bfuui.fsf@daniel-mendler.de> <87sep3mnpo.fsf@daniel-mendler.de> <7B5B5169-E58D-4D0A-BA05-EE4820EB2325@gmail.com> <3508490F-43D5-4B87-80E3-FE932D06D95E@gmail.com> <87wmdah3ib.fsf@posteo.net> X-Mailer: Apple Mail (2.3826.300.87.4.3) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75526 Cc: Daniel Mendler , Yuan Fu , Stefan Kangas , 75526@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_5FAF6C64-320A-4132-BBA6-23184AD99E10 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 >=20 > python.el is on MELPA? (and it /does/ use Compat!) But note that = Compat > doesn't implement everything, IIRC this includes > derived-mode-add-parents. Sorry, I was confusing the python-mode on MELPA. The issue is actually = with the version on gnu-devel:=20 https://elpa.gnu.org/devel/python.html=EF=BF=BC --Apple-Mail=_5FAF6C64-320A-4132-BBA6-23184AD99E10 Content-Type: multipart/related; type="text/html"; boundary="Apple-Mail=_7B780FB5-BE36-43E8-98CE-5637F19355CE" --Apple-Mail=_7B780FB5-BE36-43E8-98CE-5637F19355CE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

python.el is on MELPA? (and it /does/ use = Compat!)  But note that Compat
doesn't = implement everything, IIRC this includes
derived-mode-add-parents.

Sorry, I was = confusing the python-mode on MELPA.  The issue is actually with the = version on gnu-devel: