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 19:38:09 +0300 Message-ID: References: <87v8cmct9b.fsf@breatheoutbreathe.in> <87sf7o38g1.fsf_-_@posteo.net> <244413e1-9c02-5ace-e5c9-839e0ed24369@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20709"; 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: Philip Kaludercic , 65797@debbugs.gnu.org, Joseph Turner To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 15 18:39:20 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 1qhBqg-00055T-Pt for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Sep 2023 18:39:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhBqS-0003SX-Am; Fri, 15 Sep 2023 12:39:05 -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 1qhBqK-0003Rp-Ex for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2023 12:38: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 1qhBqK-0004Bz-2p for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2023 12:38:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhBqQ-0002ab-A1 for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2023 12:39:02 -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 16:39:02 +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.16947959079889 (code B ref 65797); Fri, 15 Sep 2023 16:39:02 +0000 Original-Received: (at 65797) by debbugs.gnu.org; 15 Sep 2023 16:38:27 +0000 Original-Received: from localhost ([127.0.0.1]:44577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhBpq-0002ZR-Mn for submit@debbugs.gnu.org; Fri, 15 Sep 2023 12:38:27 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:49479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhBpp-0002ZC-27 for 65797@debbugs.gnu.org; Fri, 15 Sep 2023 12:38:26 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 08F035C018C; Fri, 15 Sep 2023 12:38:13 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 15 Sep 2023 12:38:13 -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= 1694795893; x=1694882293; bh=wQc97JazRZlp7jbOrDS+2qzdSMAxvKjgYw+ 8ensTgps=; b=oAxo3uHiQKJrNhhWeX4XWvU2F23JFSxDsprt4mE0Y8ifu80vhiX ff6T0I42nCLhWBz27fjd6AUiH4p8jLYUWBf3bj+liNucZFekOTfp/hZL65EyhjWW /84sHdQw6utZx06d2nsHvt3hEpth42Gb/8yW/cAKC/hnCckUl6AnJXGjDdFUQm2f uOM5rnCeHPwnJXO2THWo1dmZM3ChpHOysNUYPzihwHEvprwKrL2aFtiEkxa8nWXZ RdghRB3DFsd3+KiXr/wS5GUa4k1pso5fUjqDdOWyarElhiFVx2foG7wOCZnuFBWV 1Mq0mLeui99yHb/rEi+gmkAzU9es191L6Sg== 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= 1694795893; x=1694882293; bh=wQc97JazRZlp7jbOrDS+2qzdSMAxvKjgYw+ 8ensTgps=; b=EYjaN6m+JiEkoRGCChIr5JGg7S76HH9PPbbhdpAoUUExkDtVRu2 8WJiqZq/uI7Q/JjO7pR7NpniQ56ICP4yAcp4ih71os8ta++FAvhZOj8JnIMHD/0W jtVpjUUVDIBcY2svvufUG85DxLfCZkzDTHFbrZBEV/3vsNIcGlAzeSGutB1uVs5L oFmVfyvzaiTq7NxB/Zh07YPNNTprHpTlT96zfz9H64r+GDlp/Lj1bmiWyoUfJNd+ wxKf6WcHNK6kzu9y7xQPYSl43j5ozr70FVCv98Pe18ZOUp0DW+VTxXMEwqWPleDZ vJ9BtlmRHrEw/9sxhJyPVe2R1u4fngN5R9g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejvddguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpefhffehleejffegffeugefhkeektdffgfehjedvgeejtedtudehueffgffg feejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 15 Sep 2023 12:38:11 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:270547 Archived-At: On 15/09/2023 04:38, Stefan Monnier wrote: > The main question is one of convenience: Philip wanted this DWIMish > behavior because he thought the added convenience was worth the > complexity (just without realizing that he was offering something we > can't really provide 😄. > > If the added convenience is not used in practice (or not significantly > enough to warrant the effort), then we can just change the > doc and move on. One of the considerations probably was to keep compatibility with the DSL in project-kill-buffer-conditions, where the predicate only receives one element. I'm not sure if there are any actual predicates in use, though (the remander of the DSL seems to be very expressive on its own). But if there are we could say that the predicates are called with all the arguments that buffer-match-p is called with. And in this case it wouldn't be passed an extra arg, so the predicates would continue working as-is. BTW, do we want to change '&optional ARG' to '&rest ARGS'? I don't have a use case in mind, but this would be the most flexible.