From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: request for a new function, say, `sequence' Date: Tue, 25 Mar 2003 09:50:38 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200303250050.JAA06631@etlken.m17n.org> References: <200303230302.MAA04327@etlken.m17n.org> <200303241541.h2OFfbpa011227@rum.cs.yale.edu> <200303250015.JAA06592@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1048553675 11852 80.91.224.249 (25 Mar 2003 00:54:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2003 00:54:35 +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 01:54:33 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 18xci0-000352-00 for ; Tue, 25 Mar 2003 01:54:32 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18xcij-0006jJ-00 for ; Tue, 25 Mar 2003 01:55:17 +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 18xcgP-0000Oz-02 for emacs-devel@quimby.gnus.org; Mon, 24 Mar 2003 19:52:53 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18xcfF-00085x-00 for emacs-devel@gnu.org; Mon, 24 Mar 2003 19:51:41 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18xceW-0007BU-00 for emacs-devel@gnu.org; Mon, 24 Mar 2003 19:51:03 -0500 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18xceG-0006mR-00 for emacs-devel@gnu.org; Mon, 24 Mar 2003 19:50:40 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h2P0od918117; Tue, 25 Mar 2003 09:50:39 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h2P0ocA18448; Tue, 25 Mar 2003 09:50:38 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id JAA06631; Tue, 25 Mar 2003 09:50:38 +0900 (JST) Original-To: handa@m17n.org In-reply-to: <200303250015.JAA06592@etlken.m17n.org> (message from Kenichi Handa on Tue, 25 Mar 2003 09:15:05 +0900 (JST)) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) 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:12585 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12585 In article <200303250015.JAA06592@etlken.m17n.org>, Kenichi Handa writes: > 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) It may be slower but it doesn't matter here. The latter code is more concise and easier to read. --- Ken'ichi HANDA handa@m17n.org