From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: dotimes-with-progress-reporter doc string lacks SPEC Date: Thu, 06 Jul 2006 23:40:58 +0200 Message-ID: <85y7v6v2c5.fsf@lola.goethe.zz> References: <44AD7613.1060805@student.lu.se> <200607070028.12058.pogonyshev@gmx.net> <7dbe73ed0607061437g5c1b59a3o87d6a28cf14c0ac6@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152222187 11386 80.91.229.2 (6 Jul 2006 21:43:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Jul 2006 21:43:07 +0000 (UTC) Cc: Lennart Borgman , emacs-devel@gnu.org, Paul Pogonyshev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 06 23:43:02 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FybcC-0001fy-Jo for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 23:42:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FybcC-00021y-5o for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 17:42:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FybbT-0001cJ-6m for emacs-devel@gnu.org; Thu, 06 Jul 2006 17:41:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FybbS-0001bi-F9 for emacs-devel@gnu.org; Thu, 06 Jul 2006 17:41:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FybbR-0001bS-VU for emacs-devel@gnu.org; Thu, 06 Jul 2006 17:41:42 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fybbi-0007qB-Sb for emacs-devel@gnu.org; Thu, 06 Jul 2006 17:41:58 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FybbR-0006Sv-8a; Thu, 06 Jul 2006 17:41:41 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id EB12C1C3663F; Thu, 6 Jul 2006 23:40:58 +0200 (CEST) Original-To: "Mathias Dahl" In-Reply-To: <7dbe73ed0607061437g5c1b59a3o87d6a28cf14c0ac6@mail.gmail.com> (Mathias Dahl's message of "Thu, 6 Jul 2006 23:37:24 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56665 Archived-At: "Mathias Dahl" writes: >> Well, the same applies to `dotimes'. > > This is interesting. Here is the source for the `dotimes' macro: > > (defmacro dotimes (spec &rest body) > "Loop a certain number of times. > Evaluate BODY with VAR bound to successive integers from 0, inclusive, > to COUNT, exclusive. Then evaluate RESULT to get return value, default > nil. > > \(fn (VAR COUNT [RESULT]) BODY...)" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > When loaded (or is it compiled?) though (I just made a dummy call to > it), the documentation string says this: > > dotimes is a Lisp macro in `cl-macs'. > (dotimes (VAR COUNT [RESULT]) BODY...) > Not mentioning any `spec' at all. > > Anyone care to explain this magic? See above. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum