From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#65797: `buffer-match-p` should not use `func-arity` Date: Fri, 15 Sep 2023 03:45:01 +0300 Message-ID: <244413e1-9c02-5ace-e5c9-839e0ed24369@gutov.dev> References: <87v8cmct9b.fsf@breatheoutbreathe.in> <87sf7o38g1.fsf_-_@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2498"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: 65797@debbugs.gnu.org, Joseph Turner To: Philip Kaludercic , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 15 02:46:13 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qgwyJ-0000QX-3T for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Sep 2023 02:46:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgwy6-0001Jg-AZ; Thu, 14 Sep 2023 20:45:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgwy4-0001JJ-9e for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 20:45:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgwy4-0003My-0x for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 20:45:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgwy9-00020F-O5 for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 20:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Sep 2023 00:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65797 X-GNU-PR-Package: emacs Original-Received: via spool by 65797-submit@debbugs.gnu.org id=B65797.16947387237644 (code B ref 65797); Fri, 15 Sep 2023 00:46:01 +0000 Original-Received: (at 65797) by debbugs.gnu.org; 15 Sep 2023 00:45:23 +0000 Original-Received: from localhost ([127.0.0.1]:41483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgwxW-0001zD-Nh for submit@debbugs.gnu.org; Thu, 14 Sep 2023 20:45:22 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:46019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgwxR-0001yv-Id for 65797@debbugs.gnu.org; Thu, 14 Sep 2023 20:45:21 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 040EE3200988; Thu, 14 Sep 2023 20:45:04 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 14 Sep 2023 20:45:05 -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:sender:subject:subject:to:to; s=fm3; t= 1694738704; x=1694825104; bh=MTlYxJ7QLkm1zCy+K74nLrRveli/6bkDHEQ bHMq/gZg=; b=bYzazmRWX4r33XC4wcfxzG+XZYgxdLibcjZX4W2ngSMPzarhWO8 v8bkl7JNZmM3CMZ1RZq+PBg+tuTTVrOb0Jkd5pVW8be5tbrTzsgZcipSRYuMoyW9 DpoeVuTBJrpsO6EUP5C/ELoVWl4ene/c3O9sc6Lwu1H1U0nliiKjmkNPQ0gwtljx fTypO7kWdYoit1AODLD0X69XwAk8Q4Tls6EFFL0f6KJLRtgMX4Q7Pq16AGYAZscp CiKklCXbHSLOcUSyHkEjpUxgUcEcdbIoQG2PtvIikM3l9NGfmCxvIJZhHSMYqSwZ FCc5FoyCiMNn6sTCiNyKLgJvstTZgi0F0MQ== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1694738704; x=1694825104; bh=MTlYxJ7QLkm1zCy+K74nLrRveli/6bkDHEQ bHMq/gZg=; b=FSV5Rng0Q5qGuJkzIqQnon+SW9yo89gttCkx8CfTL2Lqzt3gzL7 YChKQ6NtdDfug4f7h4P4l2sEQ5G0WR4dC0VPDnT1rWxKMu8Jc3eqazuWD9p9ZSFn QDF9DV/0fsWoogf4lpNGyNgGVzFOTdl7n/+jxfGz19SjIMikEq9RlIAEE9SFEKw4 Pzzh39yn/tsmtCgbR2Xp0bFkFrpd5ZoPd0BRFTJyIafmgkgqd6Nmsz8VW0izt2cQ f3EPZUYTYubLbIF35Tno7TzmbGCgQC+G28LgxcYJgDVtJdfz21EVdqjXc5kRN4bU W4+RIzA2ZVariab/QRu5Qr+HlllFvAyw80w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejuddgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Sep 2023 20:45:02 -0400 (EDT) Content-Language: en-US In-Reply-To: <87sf7o38g1.fsf_-_@posteo.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270467 Archived-At: On 08/09/2023 20:01, Philip Kaludercic wrote: > FWIW The intention here was to be able and specify simpler conditions > that don't have to handle the alist. There doesn't seem to be any built-in named functions that we expect to be used, so I suppose any such are either in custom files or third-party code (and are custom-written anyway). Then breaking those (asking the users to update them, basically) might not be the worst decision. OTOH, the condition-case/wrong-number-of-arguments solution also should work 99,9% of the time, and that might cover all such functions in existence too.