From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: check argument count in defcustom :safe? Date: Sun, 12 Apr 2015 07:59:31 -0400 Message-ID: References: <85a8yehdsn.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1428839994 9744 80.91.229.3 (12 Apr 2015 11:59:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Apr 2015 11:59:54 +0000 (UTC) Cc: Stephen Leake , emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 12 13:59:44 2015 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 1YhGYC-0001l0-4f for ged-emacs-devel@m.gmane.org; Sun, 12 Apr 2015 13:59:44 +0200 Original-Received: from localhost ([::1]:44957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhGYB-00069N-HU for ged-emacs-devel@m.gmane.org; Sun, 12 Apr 2015 07:59:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhGY6-00066B-LU for emacs-devel@gnu.org; Sun, 12 Apr 2015 07:59:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhGY2-0006Bo-Lp for emacs-devel@gnu.org; Sun, 12 Apr 2015 07:59:38 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:49870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhGY2-0006Bi-H4 for emacs-devel@gnu.org; Sun, 12 Apr 2015 07:59:34 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t3CBxVUt029110; Sun, 12 Apr 2015 07:59:32 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B434F127B; Sun, 12 Apr 2015 07:59:31 -0400 (EDT) In-Reply-To: (Philipp Stephani's message of "Sun, 12 Apr 2015 06:45:04 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5274=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5274> : inlines <2686> : streams <1421207> : uri <1904832> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:185331 Archived-At: > But most functions are well-behaved and don't impose additional > restrictions over those expressed in their parameter declaration; in these > cases inspecting the argument list using help-function-arglist should work > well enough. I'm just pointing out that the concept is fundamentally flawed, even if you can hack something that will behave acceptably in most cases. Stefan