From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 09:50:45 2025 Received: (at submit) by debbugs.gnu.org; 8 Sep 2025 13:50:46 +0000 Received: from localhost ([127.0.0.1]:50526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uvcGb-00043m-99 for submit@debbugs.gnu.org; Mon, 08 Sep 2025 09:50:45 -0400 Received: from lists.gnu.org ([2001:470:142::17]:50582) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uvcGU-00043H-0f for submit@debbugs.gnu.org; Mon, 08 Sep 2025 09:50:42 -0400 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 1uvcGH-0005rW-IU for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 09:50:25 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1] helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uvcG6-0004VM-MB for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 09:50:25 -0400 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: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JJZmZzExz6mLICmyFAn85vj6iPK06sGCVOUMN4hO2C4=; b=MCPO8tjrg4q1XF4Oa/8iu2N9JZ lpg5ErmgY7lgWJvU7Dv9oSr9TLc2e2itrxfIJFQVt2GUyJ3gQIqj4nKzlaBR0nqXLQhLjCOk+pLf9 ofMfjMZwd47lA73oKWUZtYpiZje7Z03OHbP+nntgFQzd7uXqz81QqcVUPIOye/FhYI4s=; From: Daniel Mendler To: bug-gnu-emacs@gnu.org Subject: 31.0.50; project.el uses define-completion-category but depends on 26.1 X-Debbugs-Cc: Dmitry Gutov Date: Mon, 08 Sep 2025 15:49:49 +0200 Message-ID: <87jz29jbpe.fsf@daniel-mendler.de> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a01:4f8:c012:9177::1; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.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.1 (/) Since a few days ago project.el uses define-completion-category which is not yet available on old Emacs versions. project.el is published on ELPA and depends on Emacs 26.1. See also https://old.reddit.com/r/emacs/comments/1nblwbl/suddenly_everything_wants_definecompletioncategory/ From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 12:07:54 2025 Received: (at submit) by debbugs.gnu.org; 8 Sep 2025 16:07:54 +0000 Received: from localhost ([127.0.0.1]:51928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uvePJ-0003jy-KI for submit@debbugs.gnu.org; Mon, 08 Sep 2025 12:07:54 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57822) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uvePG-0003jS-0A for submit@debbugs.gnu.org; Mon, 08 Sep 2025 12:07:50 -0400 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 1uveP4-0005p2-Ld for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 12:07:38 -0400 Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uveOy-0001QZ-EF for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 12:07:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1757347649; bh=tjiItF5QXlHu68MatlsbPIQezPRsHTAbi7yFpFFjibk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=EZnya+CBiebqDxJV7P7WVxFGx1zoqUzqqJYKLRtUwa7IDXTDISObFLLzWd6ic+c1B +co7++SFO97wcnJYI/6QHAsT865TtwuG4+ZwjWEUt1wwA67Klre2pK7tFI+JPHxbkx oIkJulEd9blrAaSOqvH5mTptpeCdBc00lFBF8i11IoPtZW5KGinZIT98+keuDlASx2 vy0KysXL9OZjFTU21wMOLlYyOGgV+4mtWTan86CRD5Zmtk+HH0F3zPs0cDHTW95yWm RU9vkh4UEZ6Mbslfkh4Et2Xn10gnpbX8p8jJ141BTxkGP7KnnBaBX+61FGBn+gygkV Vc52TnjiN92iQ== From: Eshel Yaron To: Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Subject: Re: bug#79409: 31.0.50; project.el uses define-completion-category but depends on 26.1 In-Reply-To: <87jz29jbpe.fsf@daniel-mendler.de> References: <87jz29jbpe.fsf@daniel-mendler.de> Date: Mon, 08 Sep 2025 18:07:25 +0200 Message-ID: <87wm699bcy.fsf@mail.eshelyaron.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Daniel Mendler , 79409@debbugs.gnu.org, Dmitry Gutov 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.1 (/) Daniel Mendler writes: > Since a few days ago project.el uses define-completion-category which is > not yet available on old Emacs versions. project.el is published on ELPA > and depends on Emacs 26.1. Right, thanks, should now be fixed on master (with commit 6b6cfa8e40b). Eshel From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 12:19:29 2025 Received: (at submit) by debbugs.gnu.org; 8 Sep 2025 16:19:29 +0000 Received: from localhost ([127.0.0.1]:51966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uveaW-0004JG-U9 for submit@debbugs.gnu.org; Mon, 08 Sep 2025 12:19:29 -0400 Received: from lists.gnu.org ([2001:470:142::17]:53388) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uveaS-0004Iv-26 for submit@debbugs.gnu.org; Mon, 08 Sep 2025 12:19:25 -0400 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 1uveaM-00035U-9z for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 12:19:18 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1] helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uveaE-000385-5f for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 12:19:17 -0400 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=kVYafOFUsarkpZanfPmjC93N5tK65njuh9hroRMPQC4=; b=Yep7Vuu1vmPNu1TiqD3l4eIeEt HfJ1SKtIAYcVVJP2yodou/UVq5NJBEqEB6RzICAQdJpcrCXYX8AuajL0ZmY7YWgXkcZag37NuOEuj 36sLTYb8hR+mVh+O5MDaSOFnC+m8LaXMzZvkSdfkB7JGA0vGplUepfHlAnqlv4pqi4vQ=; From: Daniel Mendler To: Eshel Yaron Subject: Re: bug#79409: 31.0.50; project.el uses define-completion-category but depends on 26.1 In-Reply-To: <87wm699bcy.fsf@mail.eshelyaron.com> References: <87jz29jbpe.fsf@daniel-mendler.de> <87wm699bcy.fsf@mail.eshelyaron.com> Date: Mon, 08 Sep 2025 18:18:59 +0200 Message-ID: <87tt1c7w98.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a01:4f8:c012:9177::1; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FORGED_SPF_HELO=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Dmitry Gutov , "Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors" , 79409@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: -0.1 (/) Eshel Yaron writes: > Daniel Mendler writes: > >> Since a few days ago project.el uses define-completion-category which is >> not yet available on old Emacs versions. project.el is published on ELPA >> and depends on Emacs 26.1. > > Right, thanks, should now be fixed on master (with commit 6b6cfa8e40b). Thanks, I didn't see that you've already sent a mail to devel a short while before my report. I wonder if some fallback code is needed, such that project-buffer is treated like the buffer completion category on older Emacs versions? Daniel From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 14:09:18 2025 Received: (at submit) by debbugs.gnu.org; 8 Sep 2025 18:09:18 +0000 Received: from localhost ([127.0.0.1]:52430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uvgIo-0004Kh-7Y for submit@debbugs.gnu.org; Mon, 08 Sep 2025 14:09:18 -0400 Received: from lists.gnu.org ([2001:470:142::17]:53814) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uvgIk-0004KR-QA for submit@debbugs.gnu.org; Mon, 08 Sep 2025 14:09:15 -0400 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 1uvgIe-0008PK-L1 for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 14:09:08 -0400 Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uvgIV-000679-8J for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 14:09:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1757354936; bh=ENcmaY6NkI+pQKj62SNbBURrBBAo5IeMVokUgs2DdDE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=nOAr1e7M6RUNeQvOObO2fdfmnYzzShTwCmrzZ/QOaMPqh11eAOxkQ8wqO5vPPxYfm OLzEKR44hFgFcwLy8/zBImsB8T2GTpjR2iK7yAkFgeWX/yg6BzwUfimaV5CC76OvB9 dTbUQr8OMQXu0SgwmK+2uJ3dNdvnt0UhktTsfUtPANBE0+bvKP3itdKg1QpMOo+JjH nH/wJ/nmyVubFuqyavCV1TNR28c5sEBmRMzl8PJKc6aQOrpZiY1JMtmpg/2sipMRQc uOxhjAabp7g+klzcHg11gjEaga2d+4Z4ZGLXK94/h2HR3CBIOoNBIcXJebxxyVPeg3 G2xom6Q+dJMOQ== From: Eshel Yaron To: Daniel Mendler Subject: Re: bug#79409: 31.0.50; project.el uses define-completion-category but depends on 26.1 In-Reply-To: <87tt1c7w98.fsf@daniel-mendler.de> References: <87jz29jbpe.fsf@daniel-mendler.de> <87wm699bcy.fsf@mail.eshelyaron.com> <87tt1c7w98.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Mon, 08 Sep 2025 20:08:51 +0200 Message-ID: <87tt1cakb0.fsf@mail.eshelyaron.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Dmitry Gutov , "Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors" , 79409@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: -0.1 (/) Daniel Mendler writes: > Eshel Yaron writes: > >> Daniel Mendler writes: >> >>> Since a few days ago project.el uses define-completion-category which is >>> not yet available on old Emacs versions. project.el is published on ELPA >>> and depends on Emacs 26.1. >> >> Right, thanks, should now be fixed on master (with commit 6b6cfa8e40b). > > Thanks, I didn't see that you've already sent a mail to devel a short > while before my report. I wonder if some fallback code is needed, such > that project-buffer is treated like the buffer completion category on > older Emacs versions? I thought about that, and it seems like a good idea. IIUC, there was no such arrangement in Dmitry's introduction of the project-buffer category though, so I'll leave that to him. Regards, Eshel From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 15:01:43 2025 Received: (at submit) by debbugs.gnu.org; 8 Sep 2025 19:01:43 +0000 Received: from localhost ([127.0.0.1]:52629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uvh7W-0002y1-0h for submit@debbugs.gnu.org; Mon, 08 Sep 2025 15:01:43 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33280) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uvh7N-0002vz-59 for submit@debbugs.gnu.org; Mon, 08 Sep 2025 15:01:38 -0400 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 1uvh7D-0004gG-T3 for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 15:01:25 -0400 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uvh74-0007S6-Sk for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 15:01:23 -0400 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id D0E827A0151; Mon, 8 Sep 2025 15:01:09 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Mon, 08 Sep 2025 15:01:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1757358069; x=1757444469; bh=ZtlHOgLBOuAZwXyVAmltdPTGP4/mxOFo2E5kUv2XEi4=; b= Qwu2g5Yx4A96XUHmR6Wibiuik/vZMQ+SvbieHBcPHZLc7ST7MzgZpcHsJ6ydnpax HioUZky703UFwodffSmyQCc/fa3Vpu+BDRJDXAXhB7jWFAWmZopk0JGBVDSWEyrz LUAisFJbS4sg7ElymBBE8fjhfFzKHgANBqU1lvBvuY6q3Ip2zpxGKw8kfQTOC0Gt QdSyvolS3TrPUK3xjvmjSusRXDiJGuqd7FWFMRcUoc62YIzjB9Cw/XcCjwUgxFgs Kh6UVSQ5bUACXXtPXWS5k5IkL7SQfjZ1M+IIbt4t3wTwP+CmzBDV0DWJs20MnUHa G2bac0smAQUySmEwLM72PA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1757358069; x= 1757444469; bh=ZtlHOgLBOuAZwXyVAmltdPTGP4/mxOFo2E5kUv2XEi4=; b=C J6q7sstdkBlG9NvFkER2cOAMyTk6SBvIU6sHOFm0OnFtMECfZ4nhfSCkiGYPINjL esLtCbGmF3sWtS449hizpbC06qSGJJlry+RxkgVrb6FhQPbplk2yeOLG2eKlcQXg 9mgLOM0TabMBp8wjrVs2lg4J7bL4TGKy7oT9noQeRQIOX5KN+8ZGzGjrGNB2QXFY AzyGeWNl1gJ1pNCVZ17Tj0/C7MrffSfx0wjB/CY86GdRoriyxD4sRiIqWwlIniYb oTA67JAJWCdqXKow2lEJQZSoYLlvrw4eCGYcZCx6VL+iDX7td4nTPwNM320XRy5k BP4rLMejU4GqTJKVQNOww== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddukeefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih ucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtthgvrh hnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveegudejheen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhith hrhiesghhuthhovhdruggvvhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepmhgrihhlsegurghnihgvlhdqmhgvnhgulhgvrhdruggvpdhrtg hpthhtohepmhgvsegvshhhvghlhigrrhhonhdrtghomhdprhgtphhtthhopegsuhhgqdhg nhhuqdgvmhgrtghssehgnhhurdhorhhgpdhrtghpthhtohepjeelgedtleesuggvsggsuh hgshdrghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Sep 2025 15:01:07 -0400 (EDT) Message-ID: Date: Mon, 8 Sep 2025 22:01:03 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#79409: 31.0.50; project.el uses define-completion-category but depends on 26.1 To: Daniel Mendler , Eshel Yaron References: <87jz29jbpe.fsf@daniel-mendler.de> <87wm699bcy.fsf@mail.eshelyaron.com> <87tt1c7w98.fsf@daniel-mendler.de> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <87tt1c7w98.fsf@daniel-mendler.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=202.12.124.156; envelope-from=dmitry@gutov.dev; helo=fhigh-b5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit Cc: "Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors" , 79409@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: -0.3 (/) On 08/09/2025 19:18, Daniel Mendler wrote: > Eshel Yaron writes: > >> Daniel Mendler writes: >> >>> Since a few days ago project.el uses define-completion-category which is >>> not yet available on old Emacs versions. project.el is published on ELPA >>> and depends on Emacs 26.1. >> Right, thanks, should now be fixed on master (with commit 6b6cfa8e40b). > Thanks, I didn't see that you've already sent a mail to devel a short > while before my report. I wonder if some fallback code is needed, such > that project-buffer is treated like the buffer completion category on > older Emacs versions? Thanks for the report. I've asked what Stefan thinks about a fallback route in this case. Maybe it would be a good use for the 'compat' dependency, in addition to the FR in bug#79327. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 15:19:49 2025 Received: (at submit) by debbugs.gnu.org; 8 Sep 2025 19:19:50 +0000 Received: from localhost ([127.0.0.1]:52696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uvhP3-0005Jf-5v for submit@debbugs.gnu.org; Mon, 08 Sep 2025 15:19:49 -0400 Received: from lists.gnu.org ([2001:470:142::17]:60300) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uvhOw-0005HY-Rc for submit@debbugs.gnu.org; Mon, 08 Sep 2025 15:19:46 -0400 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 1uvhOm-0008Ph-Gw for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 15:19:32 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1] helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uvhOg-0002Xc-4h for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 15:19:31 -0400 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=syvShy3zUxbbs0Yth9+rrGJ19Ga0wyg0lSiSsW7AWh4=; b=LO3IzZ+vP05tQy+svPt7RV+qXi dn3T409Bw9BtCdmMabiNnnIQZ1F+5aExp5lKcburhzxt9fBsrI8WYQneRNwl3uqWFs+aaDl+3NBZn cs5lEnvMjiG7VppwrqCGBXhc+gbqjSG47vrsUKc7Qxs5GqHneErrWtsEj+qTVmersWdQ=; From: Daniel Mendler To: Dmitry Gutov Subject: Re: bug#79409: 31.0.50; project.el uses define-completion-category but depends on 26.1 In-Reply-To: References: <87jz29jbpe.fsf@daniel-mendler.de> <87wm699bcy.fsf@mail.eshelyaron.com> <87tt1c7w98.fsf@daniel-mendler.de> Date: Mon, 08 Sep 2025 21:19:18 +0200 Message-ID: <87plc07nwp.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a01:4f8:c012:9177::1; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FORGED_SPF_HELO=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: "Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors" , Eshel Yaron , 79409@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: -0.1 (/) Dmitry Gutov writes: > On 08/09/2025 19:18, Daniel Mendler wrote: >> Eshel Yaron writes: >> >>> Daniel Mendler writes: >>> >>>> Since a few days ago project.el uses define-completion-category which is >>>> not yet available on old Emacs versions. project.el is published on ELPA >>>> and depends on Emacs 26.1. >>> Right, thanks, should now be fixed on master (with commit 6b6cfa8e40b). >> Thanks, I didn't see that you've already sent a mail to devel a short >> while before my report. I wonder if some fallback code is needed, such >> that project-buffer is treated like the buffer completion category on >> older Emacs versions? > > Thanks for the report. > > I've asked what Stefan thinks about a fallback route in this case. > > Maybe it would be a good use for the 'compat' dependency, in addition to the FR > in bug#79327. I don't think we can use Compat here, since we cannot replace the completion-metadata-get function such that callers magically learn about category inheritance. We could provide a poor implementation for define-completion-category which either does nothing or which copies the completion category overrides and defaults from the parent to the inherited category, but as such would behave differently than the new mechanism. Neither is a satisfactory solution. (buffer-match-p from the other bug report has been ported back, so this can be used.) Daniel From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 15:24:30 2025 Received: (at submit) by debbugs.gnu.org; 8 Sep 2025 19:24:30 +0000 Received: from localhost ([127.0.0.1]:52726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uvhTZ-0005x6-Um for submit@debbugs.gnu.org; Mon, 08 Sep 2025 15:24:30 -0400 Received: from lists.gnu.org ([2001:470:142::17]:46100) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uvhTU-0005vY-Gv for submit@debbugs.gnu.org; Mon, 08 Sep 2025 15:24:25 -0400 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 1uvhTO-0002T3-BJ for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 15:24:18 -0400 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uvhSv-0003nB-Vz for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2025 15:24:16 -0400 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfhigh.stl.internal (Postfix) with ESMTP id 120A67A002C; Mon, 8 Sep 2025 15:23:46 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Mon, 08 Sep 2025 15:23:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1757359425; x=1757445825; bh=Pljq06+WKYJ0D2lfhRzTHYJy1MUI0+V/4r5VrAsBmrs=; b= QnGeKaNnfUQHwENmrOuQB4gthhaiPpZSpN1/kjVbi7Ot6KgNki16HMUrqrnqwTe6 TBKCRsZJsyIxS/BhrRqOyuyIr/PCi8zmNcIyqEKrGOlfTkjBqDBzk/IqIF+RZoCG ztzvA4Siu0aruiuaYIV6UxRaJRWK68WiHuSFwIuOT5w03bYfaVnUQNf2DfDGT06W jRKBF9g+D5Zii3bEh414RfqPPWYrJ/MTf8bJoaCCsz5zwtoF8u2YkGqPwSED3HTc x7IVFR8YD4LW1QOJ97s8ba69pHKjGue9SvOIudClS3CHofU5Wp1WvOQ9P9n+3QSI hZ/4kIC4HfY+FzmzdGScZA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1757359425; x= 1757445825; bh=Pljq06+WKYJ0D2lfhRzTHYJy1MUI0+V/4r5VrAsBmrs=; b=K DAM+/ReEAdV9oessUghMcOUsxWZ/q6pWWczfrSUW7eB9ASO2w1okNNQ2dkZHOuoU 8CoDn0A2cJIwhY5TxoXizk4ZpHHiClezn2q1k5jpgc387tWFLxZkxLYKycQd7Dh5 4k9EZd1ijLyZkYQU24A7nPIHGEEyYFRwqwHmmt3BLSCP5AjUTCHEL/2xYpAMiqln loWLkrOrfBHTp7iIrSwu60HgciNOIzDyEWgff95dyskS3gsbbowl1Yju75bEAs6n Lbga3dXyEA3cocZ6eIMxgckcq72WD8szrIQSuth0r2XtfXfvZ7qAQ8K8zwApm3uY mPqGSp0WOpPTwZLzPXl7g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddukeefhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih ucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtthgvrh hnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveegudejheen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhith hrhiesghhuthhovhdruggvvhdpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepmhgrihhlsegurghnihgvlhdqmhgvnhgulhgvrhdruggvpdhrtg hpthhtohepmhgvsegvshhhvghlhigrrhhonhdrtghomhdprhgtphhtthhopegsuhhgqdhg nhhuqdgvmhgrtghssehgnhhurdhorhhgpdhrtghpthhtohepjeelgedtleesuggvsggsuh hgshdrghhnuhdrohhrghdprhgtphhtthhopehmohhnnhhivghrsehirhhordhumhhonhht rhgvrghlrdgtrg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Sep 2025 15:23:43 -0400 (EDT) Message-ID: Date: Mon, 8 Sep 2025 22:23:42 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#79409: 31.0.50; project.el uses define-completion-category but depends on 26.1 To: Daniel Mendler References: <87jz29jbpe.fsf@daniel-mendler.de> <87wm699bcy.fsf@mail.eshelyaron.com> <87tt1c7w98.fsf@daniel-mendler.de> <87plc07nwp.fsf@daniel-mendler.de> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <87plc07nwp.fsf@daniel-mendler.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=202.12.124.157; envelope-from=dmitry@gutov.dev; helo=fhigh-b6-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit Cc: "Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors" , Eshel Yaron , Stefan Monnier , 79409@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: -0.3 (/) On 08/09/2025 22:19, Daniel Mendler wrote: > I don't think we can use Compat here, since we cannot replace the > completion-metadata-get function such that callers magically learn about > category inheritance. Huh, right. I guess Compat could do that with advice and such, but that way lies trouble. > We could provide a poor implementation for > define-completion-category which either does nothing or which copies the > completion category overrides and defaults from the parent to the > inherited category, but as such would behave differently than the new > mechanism. Neither is a satisfactory solution. That probably means there's little point for project.el to add any shims. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 15:41:55 2025 Received: (at 79409) by debbugs.gnu.org; 8 Sep 2025 19:41:55 +0000 Received: from localhost ([127.0.0.1]:52801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uvhkQ-0008O3-Is for submit@debbugs.gnu.org; Mon, 08 Sep 2025 15:41:55 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:48281 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 1uvhkK-0008MZ-7n for 79409@debbugs.gnu.org; Mon, 08 Sep 2025 15:41:49 -0400 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=6ylsXTK3aKbxWAW21Xq/zpu5lEem0h3RfQOkebiLk88=; b=JI2oT/eWoMHA9Y7Mmr8cJ8Ef1l kh7UHZ6Ws2+hpYrdWlHeXdgx2TGndNSZ370Vb9/nHdPI76lSsvlewd5ta88ujrvbx4tQlWUq5lmUF K2p443+chjKxPcND5bhHYKnJuCtXQbNAViFEaB8IkE0pWXcUG61HkBERonnjequNVnPA=; From: Daniel Mendler To: Dmitry Gutov Subject: Re: bug#79409: 31.0.50; project.el uses define-completion-category but depends on 26.1 In-Reply-To: References: <87jz29jbpe.fsf@daniel-mendler.de> <87wm699bcy.fsf@mail.eshelyaron.com> <87tt1c7w98.fsf@daniel-mendler.de> <87plc07nwp.fsf@daniel-mendler.de> Date: Mon, 08 Sep 2025 21:41:38 +0200 Message-ID: <87ldmo7mvh.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 79409 Cc: "Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors" , Eshel Yaron , Stefan Monnier , 79409@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 (-) Dmitry Gutov writes: > On 08/09/2025 22:19, Daniel Mendler wrote: >> I don't think we can use Compat here, since we cannot replace the >> completion-metadata-get function such that callers magically learn about >> category inheritance. > > Huh, right. > > I guess Compat could do that with advice and such, but that way lies trouble. Yes, we've excluded advices early on during the development of Compat. >> We could provide a poor implementation for >> define-completion-category which either does nothing or which copies the >> completion category overrides and defaults from the parent to the >> inherited category, but as such would behave differently than the new >> mechanism. Neither is a satisfactory solution. > > That probably means there's little point for project.el to add any shims. > Thanks. You could add a project-buffer category to completion-category-defaults to give the same effect as category inheritance as long as the user doesn't override the settings. Otoh you could also just leave things as is. This is not a big deal, since it will just result in a minor difference in completion styles settings and users could always override if they bother. Daniel From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 16:18:01 2025 Received: (at 79409) by debbugs.gnu.org; 8 Sep 2025 20:18:01 +0000 Received: from localhost ([127.0.0.1]:52895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uviJM-0004wU-KP for submit@debbugs.gnu.org; Mon, 08 Sep 2025 16:18:01 -0400 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]:54129) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uviJH-0004v6-2T for 79409@debbugs.gnu.org; Mon, 08 Sep 2025 16:17:56 -0400 Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfout.stl.internal (Postfix) with ESMTP id 4C8781D0015C; Mon, 8 Sep 2025 16:17:49 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Mon, 08 Sep 2025 16:17:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1757362669; x=1757449069; bh=d5hzX52+um4S3J+9FamejZ5eb1/3XL/TodQ6ILxfc5I=; b= N3THE7aOTe0WdWdOpAWeffaaqLLY4ZKsuebhBsdcq5sgKVfQGrVRwwmbHPzHOuFp rZESUfjnfxS6HZhxjElTITi+z5fqHiiLh66tBke+mRG2aaxB6lr7+S2zBR7mxCO4 M9UEEAzL9VqKTTg4MLWb8NoLiDiTHde8vpcR6xs0aWqi6k1cuc/XvImjaNLBJFTs xn8S+dO3hA8nGB6q85WDQOUrtg/O2+9TYgz/LUumu4WcnXI+zq7WIy05p1rfoyEX +603e77KQEo5JcvavdtTGQjjzxEJYCbIJR3AQSS0J/jFCEJ/88lWNcP7PfTQjjkp 5oI270DYjMmRryvP25mXmA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1757362669; x= 1757449069; bh=d5hzX52+um4S3J+9FamejZ5eb1/3XL/TodQ6ILxfc5I=; b=T CH2bN5CXlIrf02uKHrw8n7uBzN8Nus4bXg0ln2zC7ORhDoVmyVVHkCCAnDyMoBdZ RRIcO8yo4lLAKCKxm6q7VjvDtj64o8PO3B6y4aFBsnOGFLWeoOn3jiBDCOJGoWA9 cHY/+b25UVbasKlqTjXhQJo4XO8YkHTXT+JuZPQG45TmQP1Shem5adJmcj5sQYPb QRlQcGmUUGw00lKgnJnxILN5VnAkV7T5ZiS8ioqimocYaHV3zID4sGg5gTRWmIRl /dDS2ragr4R6ihDJRZHnPESfDMW2swXkCXBzatjfT8Rx+vbPMZbHp5qghbFzIIH2 7GFFb4e9zx9KeqjTjEEdA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddukeegjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih ucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtthgvrh hnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveegudejheen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhith hrhiesghhuthhovhdruggvvhdpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepmhgrihhlsegurghnihgvlhdqmhgvnhgulhgvrhdruggvpdhrtg hpthhtohepmhgvsegvshhhvghlhigrrhhonhdrtghomhdprhgtphhtthhopegsuhhgqdhg nhhuqdgvmhgrtghssehgnhhurdhorhhgpdhrtghpthhtohepjeelgedtleesuggvsggsuh hgshdrghhnuhdrohhrghdprhgtphhtthhopehmohhnnhhivghrsehirhhordhumhhonhht rhgvrghlrdgtrg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Sep 2025 16:17:46 -0400 (EDT) Message-ID: Date: Mon, 8 Sep 2025 23:17:43 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#79409: 31.0.50; project.el uses define-completion-category but depends on 26.1 To: Daniel Mendler References: <87jz29jbpe.fsf@daniel-mendler.de> <87wm699bcy.fsf@mail.eshelyaron.com> <87tt1c7w98.fsf@daniel-mendler.de> <87plc07nwp.fsf@daniel-mendler.de> <87ldmo7mvh.fsf@daniel-mendler.de> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <87ldmo7mvh.fsf@daniel-mendler.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79409 Cc: "Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors" , Eshel Yaron , Stefan Monnier , 79409@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 (-) On 08/09/2025 22:41, Daniel Mendler wrote: > You could add a project-buffer category to completion-category-defaults > to give the same effect as category inheritance as long as the user > doesn't override the settings. I suppose you mean like this. Seems like an improvement, since the original commit only added the entry in the latest Emacs. diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index c15148110a6..2291b2a6b4c 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -1718,9 +1718,11 @@ project--buffers-completion-table (t (complete-with-action action buffers string pred))))) -(when (fboundp 'define-completion-category) ; Introduced in Emacs 31. - (define-completion-category 'project-buffer '(buffer) - "Completion category for buffers in a given project.")) +(if (fboundp 'define-completion-category) ; Introduced in Emacs 31. + (define-completion-category 'project-buffer '(buffer) + "Completion category for buffers in a given project.") + (add-to-list 'completion-category-defaults + '(project-buffer (styles . (basic substring))))) (defun project--read-project-buffer () (let* ((pr (project-current t)) Or - the reverse - project--buffers-completion-table could switch to the category 'buffer' in older Emacs. > Otoh you could also just leave things as is. This is not a big deal, > since it will just result in a minor difference in completion styles > settings and users could always override if they bother. Maybe not a big deal indeed.