From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: map-file-lines Date: Tue, 03 Feb 2009 23:17:54 +0900 Message-ID: <8763jrwqnh.fsf@catnip.gol.com> References: <86wsc87o3c.fsf@lifelogs.com> <86k5887eg6.fsf@lifelogs.com> <87tz7crlha.fsf@ambire.localdomain> <86zlh362oa.fsf@lifelogs.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233670944 21360 80.91.229.12 (3 Feb 2009 14:22:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 14:22:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 15:23:38 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LUMBa-0004d6-Hz for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 15:23:34 +0100 Original-Received: from localhost ([127.0.0.1]:49332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUMAH-0001mK-Q2 for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 09:22:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUM6G-0008U1-U3 for emacs-devel@gnu.org; Tue, 03 Feb 2009 09:18:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUM6E-0008SV-4m for emacs-devel@gnu.org; Tue, 03 Feb 2009 09:18:04 -0500 Original-Received: from [199.232.76.173] (port=55453 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUM6D-0008SM-Nh for emacs-devel@gnu.org; Tue, 03 Feb 2009 09:18:01 -0500 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:56594) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LUM6B-0004f5-Cb; Tue, 03 Feb 2009 09:17:59 -0500 Original-Received: from 218.231.174.40.eo.eaccess.ne.jp ([218.231.174.40] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1LUM66-0006sa-RY; Tue, 03 Feb 2009 23:17:54 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id B029ADFBB; Tue, 3 Feb 2009 23:17:54 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: <86zlh362oa.fsf@lifelogs.com> (Ted Zlatanov's message of "Tue, 03 Feb 2009 08:00:21 -0600") Original-Lines: 14 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:108681 Archived-At: Ted Zlatanov writes: > TN> How about (while (not (zerop (dec numlines))) ...)? > > That's better and no CL dependency, thanks! I presume `decf' was meant, which is in cl, albeit a macro. For non-cl: (setq numlines (1- numlines)) -Miles -- Cat, n. A soft, indestructible automaton provided by nature to be kicked when things go wrong in the domestic circle.