From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65797: 29.0.92; func-arity should not return (0 . many) with apply-partially Date: Mon, 11 Sep 2023 21:58:26 +0300 Message-ID: <831qf4r0z1.fsf@gnu.org> References: <87v8cmct9b.fsf@breatheoutbreathe.in> <87cyytwa14.fsf@breatheoutbreathe.in> <83fs3pxivc.fsf@gnu.org> <83fs3owmqq.fsf@gnu.org> <87o7i8k57u.fsf@breatheoutbreathe.in> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28187"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 65797@debbugs.gnu.org To: Joseph Turner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 11 20:59:16 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 1qfm7v-0006zq-R3 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Sep 2023 20:59:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfm7h-0003OP-9e; Mon, 11 Sep 2023 14:59:01 -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 1qfm7f-0003OH-7e for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 14:58:59 -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 1qfm7e-0004ZH-9s for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 14:58:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfm7i-0001uw-Ed for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 14:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Sep 2023 18:59: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.16944587377360 (code B ref 65797); Mon, 11 Sep 2023 18:59:02 +0000 Original-Received: (at 65797) by debbugs.gnu.org; 11 Sep 2023 18:58:57 +0000 Original-Received: from localhost ([127.0.0.1]:54858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfm7c-0001ud-QA for submit@debbugs.gnu.org; Mon, 11 Sep 2023 14:58:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfm7b-0001uO-0k for 65797@debbugs.gnu.org; Mon, 11 Sep 2023 14:58:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfm7Q-0004YP-65; Mon, 11 Sep 2023 14:58:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=EVBB8Z6WkbbE8dekBbsajZ6HaTB74T/5cP1ek/Har1c=; b=fyyn4ojWQEVK GEGB1OHM1PLHepZwHKMFUkJSSdp/NvJdv500ueaoN5ZvK6RZBQnoGdJxA7SziaTXS5GNiU4flF6gw kc2qOmQlSK+VpFUlABv5QRTEXNlHGpcIE37opXQ2uNiuHBAR7JdcZotLvWyAtYNyW+kg6VzJ9ULKe f8mqRr4JwMB0MsJ9dw1PXO265P3QSpUTFUcRhFalU1zRxhpes6bcIh86WFDWbPCMe1MYEc8ImkMgI ddOgYndpuIv2iuq9HqX0rLvGhlzRhSIRLlw5WKMnkdvQM9UIcGiiSOKr3z9WE+nAhX8PDiaOtVrOV GMaxSizgmN+3XPORy1yLNA==; In-Reply-To: <87o7i8k57u.fsf@breatheoutbreathe.in> (message from Joseph Turner on Mon, 11 Sep 2023 09:57:51 -0700) 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:270075 Archived-At: > From: Joseph Turner > Cc: Stefan Monnier , 65797@debbugs.gnu.org > Date: Mon, 11 Sep 2023 09:57:51 -0700 > > > Eli Zaretskii writes: > > > I think one of the alternatives you proposed was backward-compatible > > (albeit not very elegant). So my vote is for that alternative. > > I'm in favor of the solution in the patch (from Stefan's suggestion): > > > - Replace `&optional arg` with `&rest args` and pass those args via > > `apply`, so the number of args passed doesn't depend on the function > > but on the caller. > > The "&rest args" solution is clean and hack-free. It breaks > compatibility, but in unlikely cases: > > - CONDITION pred accepts only a buffer argument, but additional ARG was > passed (why would you do this?) > > - CONDITION pred accepts two arguments, and no ARG was passed (this code > would be broken anyway, right?) > > Since buffer-match-p is new in Emacs 29, is it acceptable to assume that > code affected by this breakage can be updated? We have an alternative that doesn't break any compatibility, so I think it is preferred.