Japanese translation of message catalog for Sawfish Window-Manager
修订版 | 796a6d3358c5529e83ad80e62d83a7ffa70bfdcd (tree) |
---|---|
时间 | 2000-09-26 19:40:55 |
作者 | john <john> |
Commiter | john |
(decode-event): use a do' statement instead of while and setq
@@ -40,15 +40,14 @@ cell). The symbolic description has the form `(TYPE MODIFIER-LIST ACTION)'." | ||
40 | 40 | |
41 | 41 | (decode-mods |
42 | 42 | (lambda () |
43 | - (let (i out) | |
44 | - (setq i 0) | |
45 | - (while (< i 13) | |
43 | + (let ((out '())) | |
44 | + (do ((i 0 (1+ i))) | |
45 | + ((= i 13)) | |
46 | 46 | (when (not (zerop (logand mods (lsh 1 i)))) |
47 | 47 | (setq out (cons (aref [shift lock control mod-1 mod-2 |
48 | 48 | mod-3 mod-4 mod-5 button-1 |
49 | 49 | button-2 button-3 button-4 |
50 | - button-5] i) out))) | |
51 | - (setq i (1+ i))) | |
50 | + button-5] i) out)))) | |
52 | 51 | (when (not (zerop (logand mods (lsh 1 20)))) |
53 | 52 | (setq out (cons 'meta out))) |
54 | 53 | (when (not (zerop (logand mods (lsh 1 21)))) |