• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

修订版796a6d3358c5529e83ad80e62d83a7ffa70bfdcd (tree)
时间2000-09-26 19:40:55
作者john <john>
Commiterjohn

Log Message

(decode-event): use a do' statement instead of while and setq

更改概述

差异

--- a/lisp/sawfish/wm/util/decode-events.jl
+++ b/lisp/sawfish/wm/util/decode-events.jl
@@ -40,15 +40,14 @@ cell). The symbolic description has the form `(TYPE MODIFIER-LIST ACTION)'."
4040
4141 (decode-mods
4242 (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))
4646 (when (not (zerop (logand mods (lsh 1 i))))
4747 (setq out (cons (aref [shift lock control mod-1 mod-2
4848 mod-3 mod-4 mod-5 button-1
4949 button-2 button-3 button-4
50- button-5] i) out)))
51- (setq i (1+ i)))
50+ button-5] i) out))))
5251 (when (not (zerop (logand mods (lsh 1 20))))
5352 (setq out (cons 'meta out)))
5453 (when (not (zerop (logand mods (lsh 1 21))))