From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#20600: 24.5.3: add-hook - wrong arguments error Date: Mon, 18 May 2015 12:54:25 +0100 Message-ID: References: <555979F2.1010705@easy-emacs.de> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3515200f05a051659db1b X-Trace: ger.gmane.org 1431950118 16478 80.91.229.3 (18 May 2015 11:55:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 May 2015 11:55:18 +0000 (UTC) Cc: 20600@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 18 13:55:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1YuJdX-0004cW-8j for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 May 2015 13:55:11 +0200 Original-Received: from localhost ([::1]:40328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuJdW-00076H-Ec for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 May 2015 07:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuJdT-00075B-4c for bug-gnu-emacs@gnu.org; Mon, 18 May 2015 07:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuJdP-0004cV-OT for bug-gnu-emacs@gnu.org; Mon, 18 May 2015 07:55:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuJdP-0004bn-KU for bug-gnu-emacs@gnu.org; Mon, 18 May 2015 07:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YuJdO-0004eq-V9 for bug-gnu-emacs@gnu.org; Mon, 18 May 2015 07:55:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 May 2015 11:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20600 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20600-submit@debbugs.gnu.org id=B20600.143195007517866 (code B ref 20600); Mon, 18 May 2015 11:55:02 +0000 Original-Received: (at 20600) by debbugs.gnu.org; 18 May 2015 11:54:35 +0000 Original-Received: from localhost ([127.0.0.1]:48797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YuJcw-0004e5-Km for submit@debbugs.gnu.org; Mon, 18 May 2015 07:54:35 -0400 Original-Received: from mail-la0-f42.google.com ([209.85.215.42]:33578) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YuJcu-0004dp-1d for 20600@debbugs.gnu.org; Mon, 18 May 2015 07:54:32 -0400 Original-Received: by lagr1 with SMTP id r1so134061782lag.0 for <20600@debbugs.gnu.org>; Mon, 18 May 2015 04:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=PY5qqyhKbNaEoQGPodJHu3sNdEacB6P0eTudwwpCawU=; b=thnEZ6hKY5AlapJnmBXij6R4Lho692iZdKLVZBXpjnMzsQYjD3dUGEm8LQcJyGJ2By vOuSBLo4UYv/0SrjL2M+jcxeZ34DjnuguCTL1UVjoC/XHhvjKgLPZGVtNIH84GpsNQM/ d8nowwDBwhRgXmO+wKzYuJp/1ClCqPbMVNJwQIVeg7sBLjiImoN6vlNVqJypEooTy/As pqYcj3b35Dl3n7XBRhLOS/SuBb57Wb59lfSUBvLhm7Qzs2qFXD5Ad5FgJnWYvooAOkR/ 4kjEMMP7qSKGUEdKul/y8WT4b4vFgD3R6tBcPYw8Rs80enrk2hVOHaVC6VZ1KBMyF4Ku +S8w== X-Received: by 10.152.43.110 with SMTP id v14mr16935084lal.4.1431950065723; Mon, 18 May 2015 04:54:25 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Mon, 18 May 2015 04:54:25 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Mon, 18 May 2015 04:54:25 -0700 (PDT) In-Reply-To: <555979F2.1010705@easy-emacs.de> X-Google-Sender-Auth: GEMYdzmfZ0vBmoWp-6K2DZm_Azo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102921 Archived-At: --001a11c3515200f05a051659db1b Content-Type: text/plain; charset=UTF-8 The function you present is not a workaround, it's the right way to do this. Still, it sounds like it might be useful for run-hooks to properly handle functions whose arity is less than the expected arity. Does anyone foresee any issues with that? --001a11c3515200f05a051659db1b Content-Type: text/html; charset=UTF-8

The function you present is not a workaround, it's the right way to do this.

Still, it sounds like it might be useful for run-hooks to properly handle functions whose arity is less than the expected arity.
Does anyone foresee any issues with that?

--001a11c3515200f05a051659db1b--