aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-09-16 07:04:03 +0000
committerRichard M. Stallman1997-09-16 07:04:03 +0000
commit8c14aa224c8778085af7b832b8ed62d9990c44b8 (patch)
treedb9fbd9c71c0ee1394e96c14be3a72a61eae32b0
parent1fa1e1f500f6448680c01df95082d203f893e7f5 (diff)
downloademacs-8c14aa224c8778085af7b832b8ed62d9990c44b8.tar.gz
emacs-8c14aa224c8778085af7b832b8ed62d9990c44b8.zip
(quail-completion-list-translations): Fix
and simplify generation of translation list.
-rw-r--r--lisp/international/quail.el17
1 files changed, 6 insertions, 11 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index 07a21f9efd3..0a12d18546f 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -1659,21 +1659,16 @@ All possible translations of the current key and whole possible longer keys
1659 ;; Insert every 10 elements with indices in a line. 1659 ;; Insert every 10 elements with indices in a line.
1660 (let ((len (length translations)) 1660 (let ((len (length translations))
1661 (i 0) 1661 (i 0)
1662 (first t)
1663 num) 1662 num)
1664 (while (< i len) 1663 (while (< i len)
1665 (if first 1664 (when (zerop (% i 10))
1666 (progn 1665 (when (>= i 10)
1667 (insert "(1/1)") 1666 (newline)
1668 (setq first nil)) 1667 (indent-to indent))
1669 (if (= (% i 10) 0) 1668 (insert (format "(%d/%d)" (1+ (/ i 10)) (1+ (/ len 10)))))
1670 (progn
1671 (newline)
1672 (indent-to indent)
1673 (insert (format "(%d/%d)" (1+ (/ i 10)) (1+ (/ len 10)))))))
1674 ;; We show the last digit of FROM while converting 1669 ;; We show the last digit of FROM while converting
1675 ;; 0,1,..,9 to 1,2,..,0. 1670 ;; 0,1,..,9 to 1,2,..,0.
1676 (insert (format " %d." (if (= (% i 10) 9) 0 (1+ (% i 10))))) 1671 (insert (format " %d." (% (1+ i) 10)))
1677 (insert (aref translations i)) 1672 (insert (aref translations i))
1678 (setq i (1+ i))) 1673 (setq i (1+ i)))
1679 (newline))))) 1674 (newline)))))