From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Arbitrary function: find the number(s) of expected arguments Date: Sat, 19 Mar 2016 15:10:41 +0200 Message-ID: <83egb68vfy.fsf@gnu.org> References: <56E8906C.5050405@lanl.gov> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1458393081 11679 80.91.229.3 (19 Mar 2016 13:11:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2016 13:11:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Paul Pogonyshev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 19 14:11:21 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ahGf1-0006Kj-8U for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2016 14:11:19 +0100 Original-Received: from localhost ([::1]:48829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahGf0-0002re-I2 for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2016 09:11:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahGew-0002rL-Uo for emacs-devel@gnu.org; Sat, 19 Mar 2016 09:11:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahGer-0006G2-U9 for emacs-devel@gnu.org; Sat, 19 Mar 2016 09:11:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahGer-0006Fy-Qw; Sat, 19 Mar 2016 09:11:09 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3727 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ahGer-0007W1-5b; Sat, 19 Mar 2016 09:11:09 -0400 In-reply-to: (message from Paul Pogonyshev on Sat, 19 Mar 2016 13:26:47 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:201861 Archived-At: > Date: Sat, 19 Mar 2016 13:26:47 +0100 > From: Paul Pogonyshev > Cc: emacs-devel@gnu.org > > What if I use `subr-arity' for whatever reason in a case where it works, but in the next version Emacs moves > the function from `.c' to `.el' and it ceases to be a built-in? You need to guard the calls to subr-arity with subrp, and then your code will be future-proof. Patches to add func-arity to Emacs are welcome.