aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/ChangeLog5
-rw-r--r--admin/unidata/unidata-gen.el8
2 files changed, 8 insertions, 5 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog
index 4ebf97d3163..cd5f08989fc 100644
--- a/admin/ChangeLog
+++ b/admin/ChangeLog
@@ -1,3 +1,8 @@
12014-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * unidata/unidata-gen.el (unidata-gen-table-word-list): Use alist-get
4 and cl-incf.
5
12014-09-08 Eli Zaretskii <eliz@gnu.org> 62014-09-08 Eli Zaretskii <eliz@gnu.org>
2 7
3 * unidata/unidata-gen.el (unidata-check): Bring this function up 8 * unidata/unidata-gen.el (unidata-check): Bring this function up
diff --git a/admin/unidata/unidata-gen.el b/admin/unidata/unidata-gen.el
index fb9b6dccc72..ec4f9d154d2 100644
--- a/admin/unidata/unidata-gen.el
+++ b/admin/unidata/unidata-gen.el
@@ -88,6 +88,8 @@
88;; CHAR-or-RANGE: a character code or a cons of character codes 88;; CHAR-or-RANGE: a character code or a cons of character codes
89;; PROPn: string representing the nth property value 89;; PROPn: string representing the nth property value
90 90
91(eval-when-compile (require 'cl-lib))
92
91(defvar unidata-list nil) 93(defvar unidata-list nil)
92 94
93;; Name of the directory containing files of Unicode Character Database. 95;; Name of the directory containing files of Unicode Character Database.
@@ -923,11 +925,7 @@ is the character itself.")))
923 (dotimes (i (length vec)) 925 (dotimes (i (length vec))
924 (dolist (elt (aref vec i)) 926 (dolist (elt (aref vec i))
925 (if (symbolp elt) 927 (if (symbolp elt)
926 (let ((slot (assq elt word-list))) 928 (cl-incf (alist-get elt (cdr word-list) 0)))))
927 (if slot
928 (setcdr slot (1+ (cdr slot)))
929 (setcdr word-list
930 (cons (cons elt 1) (cdr word-list))))))))
931 (set-char-table-range table (cons start limit) vec)))))) 929 (set-char-table-range table (cons start limit) vec))))))
932 (setq word-list (sort (cdr word-list) 930 (setq word-list (sort (cdr word-list)
933 #'(lambda (x y) (> (cdr x) (cdr y))))) 931 #'(lambda (x y) (> (cdr x) (cdr y)))))