From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: request for a new function, say, `sequence' Date: Mon, 24 Mar 2003 19:57:10 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200303250057.h2P0vBj6016367@rum.cs.yale.edu> References: <200303230302.MAA04327@etlken.m17n.org> <200303241541.h2OFfbpa011227@rum.cs.yale.edu> <200303250015.JAA06592@etlken.m17n.org> <200303250050.JAA06631@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048554450 15333 80.91.224.249 (25 Mar 2003 01:07:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2003 01:07:30 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Mar 25 02:07:29 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18xcuX-0003zB-00 for ; Tue, 25 Mar 2003 02:07:29 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18xcvG-0006pg-00 for ; Tue, 25 Mar 2003 02:08:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18xcrV-0006o0-01 for emacs-devel@quimby.gnus.org; Mon, 24 Mar 2003 20:04:21 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18xcmK-0003aT-00 for emacs-devel@gnu.org; Mon, 24 Mar 2003 19:59:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18xclB-00032v-00 for emacs-devel@gnu.org; Mon, 24 Mar 2003 19:57:51 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 18xcka-0002Sj-00 for emacs-devel@gnu.org; Mon, 24 Mar 2003 19:57:12 -0500 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h2P0vBPe016369; Mon, 24 Mar 2003 19:57:11 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h2P0vBj6016367; Mon, 24 Mar 2003 19:57:11 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Kenichi Handa Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12589 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12589 > > Oops, I should have written "we'll use". Kawabata-san is > > now working on improving Indian language support (including > > tamil and malayalam), and in the comming code, the same > > functionality is required in many other files. > > > And, even if it is used just in devan-util.el, it's too > > generic to fit in there. > > Another possible usage of `sequence' is this. > > Currently, in lisp/international/characters.el, we have this > kind of code repeatedly. > > (setq c X) > (while (<= c Y) > ..operate-on-C > (setq c (1+ c))) > > We can change it to this: > > (dolist (c (sequence #X #Y 'list)) > ..operate-on-C) I agree that such code is pretty common, but I'd rather extend dotimes to allow something like (dotimes (c (cons X Y)) BODY). Stefan