From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: Arbitrary function: find the number(s) of expected arguments Date: Sat, 19 Mar 2016 14:42:46 +0100 Message-ID: References: <56E8906C.5050405@lanl.gov> <83egb68vfy.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e011838f0edb1c0052e6709a0 X-Trace: ger.gmane.org 1458394972 6972 80.91.229.3 (19 Mar 2016 13:42:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2016 13:42:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 19 14:42:52 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 1ahH9X-0008LV-Q9 for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2016 14:42:51 +0100 Original-Received: from localhost ([::1]:48939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahH9X-00012v-A8 for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2016 09:42:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahH9U-00012m-57 for emacs-devel@gnu.org; Sat, 19 Mar 2016 09:42:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahH9T-0006XV-Ad for emacs-devel@gnu.org; Sat, 19 Mar 2016 09:42:48 -0400 Original-Received: from mail-ob0-x230.google.com ([2607:f8b0:4003:c01::230]:36239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahH9T-0006XR-4J; Sat, 19 Mar 2016 09:42:47 -0400 Original-Received: by mail-ob0-x230.google.com with SMTP id m7so140195172obh.3; Sat, 19 Mar 2016 06:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=FZFScVpZdhEkQP3/qNilNAIOGW/5v5fgGTWpmkQkl+E=; b=nHQA5n1RvTe5OSGqDPK2l+UN8B6bnJ9CjMUMsbHY46D0yFRN9eqU+6SSuseY2gqa0Q wZWRqnT+mWCspPnuttJjCTlFnQpvoRQRNnqGgZ5s2yT95nPzNzejlCwrTJClBVSq6nw+ tIKc12AACnHC62NUQ/+KMyTgtCAyJGEqRYULJKfspXwsHgQJRAR/QnND5dPXvYsSLfH0 4PG573ysZ/A3+UgtgzLJJQyPZd96QCHr+mmICJrYVCl8es3wUnuyDXJZ8r+yccGNQI4D kMnqaHduycegWyhWIK02l1H3OhSyHE18YMXPEXJHYf3CIYZSSUENgRQFhOT9qTfNI42x KsMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=FZFScVpZdhEkQP3/qNilNAIOGW/5v5fgGTWpmkQkl+E=; b=HAq+gWbdrCYNS1HCQV6JPy+7MlKKRT9JAF54fZbktbifIDiLRBo3YqJuK+goB0eFTw Q9APCsMwaW1WG0NS84be1U5YQbUnIS90nkgDN0f8tvakBpRNsAEX9DKvI+Q/FY1nAr5N 5O3IOJGWdW4jhyAbP682MMBQIi4GSwnlwzQQHHykwEUQ4pGIPRpWic64f/Tg2PsDFVpB ZdC9paE+IlgVNho9yaq5kBng4SnN2V+y5OJveI5ckKBXNetwPmWIyB3/tETpURpJVeCQ MchPBlWoDumgHkxsZb2r5bawDBIa7sSZyoPQXLEWmPLRAcJCTuX6wsloPCcWOHq0zTJJ ZmdQ== X-Gm-Message-State: AD7BkJJk/Ng4pf5triM33SCrMQUQtTJQ9pYp0BWhVcXjDo7QMv7wR4QK4Zfq+3LuU4jM0E3dcg6e3tR6c5Akig== X-Received: by 10.182.33.38 with SMTP id o6mr13620258obi.40.1458394966632; Sat, 19 Mar 2016 06:42:46 -0700 (PDT) Original-Received: by 10.202.71.7 with HTTP; Sat, 19 Mar 2016 06:42:46 -0700 (PDT) In-Reply-To: <83egb68vfy.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c01::230 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:201862 Archived-At: --089e011838f0edb1c0052e6709a0 Content-Type: text/plain; charset=UTF-8 > > You need to guard the calls to subr-arity with subrp, and then your > code will be future-proof. > Eh, not really. Even if I catch the signal, it will still stop working in the way it did before. Patches to add func-arity to Emacs are welcome. > Ok, I'll see if I can do it. Paul --089e011838f0edb1c0052e6709a0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You need to guard the calls to subr-arity with subrp, and then you= r
code will be future-proof.

Eh, no= t really. Even if I catch the signal, it will still stop working in the way= it did before.

Patches to add func-arity to Emacs are welcome.

=
Ok, I'll see if I can do it.

Paul= =C2=A0


--089e011838f0edb1c0052e6709a0--