emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: request for a new function, say, `sequence'


From: Kenichi Handa
Subject: Re: request for a new function, say, `sequence'
Date: Tue, 25 Mar 2003 11:08:06 +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)

In article <address@hidden>, "Satyaki Das" <address@hidden> writes:

> Kenichi Handa <address@hidden> writes:
>>    ;; Combining diacritics
>>    (setq c #x300)
>>    (while (<= c #x362)
>>      (modify-category-entry (decode-char 'ucs c) ?^)
>>      (setq c (1+ c)))

> If I were you I would be using loop as follows:

>    ;; Combining diacritics
>    (loop for c from #x300 to #x362
>          do (modify-category-entry (decode-char 'ucs c) ?^))

> Is there any particular reason for loop to be avoided? It is a
> macro in CL, so it gets expanded at compile time. I ask since I
> have used it in MH-E.

The above is an example usage of `sequence' (or `range'),
not the reason of requesting this function.  The original
reason is that there are cases that we need a list generated
by this function.

And, as far as I remember, it should be avoided to require
`cl' in a preloaded file if possible.  Is this rule changed
now?

---
Ken'ichi HANDA
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]