From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65797: `buffer-match-p` should not use `func-arity` Date: Thu, 14 Sep 2023 09:47:07 -0400 Message-ID: References: <87v8cmct9b.fsf@breatheoutbreathe.in> <87sf7o38g1.fsf_-_@posteo.net> <871qf1rbdo.fsf@posteo.net> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28820"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65797@debbugs.gnu.org, Joseph Turner To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 14 15:48:14 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 1qgmhZ-0007I1-6O for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Sep 2023 15:48:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgmhK-0007XH-Ic; Thu, 14 Sep 2023 09:47: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 1qgmhI-0007Wr-Qh for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 09:47:57 -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 1qgmhI-00076f-IU for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 09:47:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgmhO-0006D9-CS for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 09:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Sep 2023 13:48: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.169469924323701 (code B ref 65797); Thu, 14 Sep 2023 13:48:02 +0000 Original-Received: (at 65797) by debbugs.gnu.org; 14 Sep 2023 13:47:23 +0000 Original-Received: from localhost ([127.0.0.1]:38008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgmgl-0006AC-EG for submit@debbugs.gnu.org; Thu, 14 Sep 2023 09:47:23 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:22779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgmgj-00069z-8k for 65797@debbugs.gnu.org; Thu, 14 Sep 2023 09:47:21 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E5C2480270; Thu, 14 Sep 2023 09:47:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1694699228; bh=Gpxx+1zfix8WKoI12XjXmcxCC4V8LRUCQoxNp/AcjYY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=GlffewzQAR/ZnUnAG0vaQN1NzIJyFaa44muODfjuUv5tF1UTzbNLCrXdkD1UMr6G+ 1OyB7Vpxi8pG+KKtndIv34UhW0QWM+c+F3XpzOEsWPGcrz0mMBACZj719TBGT3ySvW IhTtUyYkH7P4dO4IyHyiFkCB4CMcAGo+L+Fc+hkMzn6ySh2ZRtMwsNAJ7EEHRwTnEk Rz7Pn49L58mpI/fvL8E1Vu8rFBbRlt58Gf7EbiWV2dBeKfLnQWRcm0Rr+m/MeIBbge llfruz6aYlgVCpKOHcEHHYKoIX1HBvYKRC0qGqXyaoI4gVjrUewkAZNAFwDlNXbSfi 7Rl8CC1CZpcog== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 96D4B80385; Thu, 14 Sep 2023 09:47:08 -0400 (EDT) Original-Received: from pastel (unknown [104.247.229.91]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 70DEE120167; Thu, 14 Sep 2023 09:47:08 -0400 (EDT) In-Reply-To: <871qf1rbdo.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 13 Sep 2023 21:50:27 +0000") 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:270428 Archived-At: >>> FWIW The intention here was to be able and specify simpler conditions >>> that don't have to handle the alist. >> You mean for `display-buffer-alist`? >> Do you have examples that rely on this? > From the core? No, I cannot think of an example, but any user > configuration may make use of this feature. >From the core would have been good, but from elsewhere (including random .emacs config you may find on the web) would be helpful to gauge how important that could be. > I am not sure if I just missed it, but is there no technical solution > around the advice issue? Couldn't `func-arity' check if the actual > function and the advice function have the same arity, and return the > right value in that case? My impression is that in 99% of the cases, > advice isn't used to increase or decrease the arity of a function. There are various 99% solutions, yes. There is no 100% solution, OTOH :-( So the documented behavior is inherently unreliable. Stefan