From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#40968: 28.0.50; (apply nil) Date: Tue, 5 May 2020 21:51:11 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="69850"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 40968@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 06 03:52:10 2020 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 1jW9EH-000I4N-IE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 May 2020 03:52:09 +0200 Original-Received: from localhost ([::1]:35650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jW9EG-0007jo-73 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 May 2020 21:52:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jW9EA-0007je-7W for bug-gnu-emacs@gnu.org; Tue, 05 May 2020 21:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54669) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jW9E9-0002qY-Uq for bug-gnu-emacs@gnu.org; Tue, 05 May 2020 21:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jW9E9-0005zq-T7 for bug-gnu-emacs@gnu.org; Tue, 05 May 2020 21:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 May 2020 01:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40968 X-GNU-PR-Package: emacs Original-Received: via spool by 40968-submit@debbugs.gnu.org id=B40968.158872988022982 (code B ref 40968); Wed, 06 May 2020 01:52:01 +0000 Original-Received: (at 40968) by debbugs.gnu.org; 6 May 2020 01:51:20 +0000 Original-Received: from localhost ([127.0.0.1]:37982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jW9DT-0005yc-Mv for submit@debbugs.gnu.org; Tue, 05 May 2020 21:51:19 -0400 Original-Received: from mail-yb1-f170.google.com ([209.85.219.170]:35280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jW9DR-0005yH-Bi for 40968@debbugs.gnu.org; Tue, 05 May 2020 21:51:17 -0400 Original-Received: by mail-yb1-f170.google.com with SMTP id d128so168500ybb.2 for <40968@debbugs.gnu.org>; Tue, 05 May 2020 18:51:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=2Hw5VCec8FyQpBcHGoBKuPkY336Ezj7UdLrbEnFNSdE=; b=kcUy5G2Lys5lVImPLHekDRZUBG9FFd2QDzbg6u/M9NhzOyebfLHUYNxTAroP4x7CmJ HPe838ZeLAC0XnpDS3Q0Hm3+Fu2Miqc7cFVwQLMnvOanOvF5ANimpxANt/wti6gJOAqu viKu4P/2dvGfvmvSgAcA9eum6LATafkh8pHKFTSsyr8M0HkRZrLsn3HqgPl1rGsLVwsR Pbfxl0jj4FQlxHezSpiwtpyyfB52KX3f+LqL2rkPyTVsOve344RPv5PTRL08YsaQQnPT wXby07akh0qe4nYNdwlemLQmx3tBeX8PWI5dU2ACksjLpDhEJXcD/IKAAx2SM5c1eGjK JpTQ== X-Gm-Message-State: AGi0PuZaMJ5QA3uaAeJ3e/0tLkTRpViYxLEYd0G4ZZ9EHM3DffMxMznI qNIbmaQUr/MwLkQuRAWxSB9efZbZJU82sHmOMjg= X-Google-Smtp-Source: APiQypKlE+tMozxG/1MT2OSmQutyeu5po3nn/WUTk/r8if0TYdr+46WM+lYqWJVnGMzqNXE8vGhY81QH40QvE1skoSE= X-Received: by 2002:a25:fc08:: with SMTP id v8mr9851635ybd.389.1588729871642; Tue, 05 May 2020 18:51:11 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 5 May 2020 21:51:11 -0400 In-Reply-To: (Pip Cet's message of "Wed, 29 Apr 2020 18:26:15 +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" Xref: news.gmane.io gmane.emacs.bugs:179781 Archived-At: Pip Cet writes: > I'm very confused by the behavior of `apply' when given only a single > argument: when it's a nonempty list, the argument gets spread out and > passed to Ffuncall (I guess this might be useful sometimes). When it's > nil, Ffuncall gets called with nargs == 0 and Emacs crashes, at least > sometimes. > > Should we fix the special case or raise apply's minimum argument count to 2? I'm personally not a big fan of raising the minimum argument count, thereby changing the function signature and making it harder to understand. We should just fix the bug, IMHO. Best regards, Stefan Kangas