From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: perhaps rephrase "misplaced interactive spec" Date: Thu, 31 Jul 2014 18:45:19 -0400 Organization: A noiseless patient Spider Message-ID: References: <87mwbputjq.fsf@debian.uxu> <87iomdusvs.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1406847024 14377 80.91.229.3 (31 Jul 2014 22:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2014 22:50:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 01 00:50:18 2014 Return-path: Envelope-to: geh-help-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 1XCzAw-0001aA-4z for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Aug 2014 00:50:18 +0200 Original-Received: from localhost ([::1]:58812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCzAv-0004UO-OT for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jul 2014 18:50:17 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="6357"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4oK1kvQwN+SrRGDLfgGAS" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:0I0z34EdqSReRGhIbTSN8RSa8sQ= Original-Xref: usenet.stanford.edu gnu.emacs.help:206767 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99043 Archived-At: In article <87iomdusvs.fsf@debian.uxu>, Emanuel Berg wrote: > Emanuel Berg writes: > > > (define-minor-mode MODE DOC ... > > > > so I wonder why I just didn't get a > > wrong-number-of-arguments? That would have instantly > > made it clear. > > Aha, now I see, it is because of those others :property > arguments. So it is more complicated. > > Is the reason for having those (:some thing) that some > can be provided, and others left out? Is that > implemented function-by-function (like a C binary or > shell function that has to decode what options were > passed)? > > (define-minor-mode MODE DOC &optional INIT-VALUE > LIGHTER KEYMAP &rest BODY) > > Although it was more complicated than I thought, that > doesn't make the warning message any more clear... > Especially since it works just fine (the minor mode) > without the docstring it gets even more confusing. This type of thing tends to happen when functions and macros evolve over time. Probably the original definition was just (define-minor-mode MODE DOC &rest BODY) Then someone decided to add options, and the most obvious place to add them was before the BODY. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***