aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorStefan Kangas2021-10-22 07:41:55 +0200
committerStefan Kangas2021-10-22 07:51:45 +0200
commit885448d1e66ba70faf3559e4028552fbb090aef5 (patch)
tree2fb367252f033922771966b9b781d18c17ece7f0 /admin
parent357d273d2e312fca7b187dca45585cbdbf4c6469 (diff)
downloademacs-885448d1e66ba70faf3559e4028552fbb090aef5.tar.gz
emacs-885448d1e66ba70faf3559e4028552fbb090aef5.zip
; Revert parts of previous commit
* admin/unidata/unidata-gen.el (unidata-gen-table) (unidata-gen-table-symbol, unidata-gen-table-integer) (unidata-gen-table-numeric, unidata-gen-table-word-list) (unidata-describe-decomposition): * lisp/composite.el (unicode-category-table): * lisp/files.el (recover-file): * lisp/frame.el (frames-on-display-list, frame-background-mode): * lisp/language/indian.el (script-regexp-alist): Revert parts of previous commit; it seemed innocent but caused issues.
Diffstat (limited to 'admin')
-rw-r--r--admin/unidata/unidata-gen.el56
1 files changed, 28 insertions, 28 deletions
diff --git a/admin/unidata/unidata-gen.el b/admin/unidata/unidata-gen.el
index fc397a9a6ca..abd41e34a48 100644
--- a/admin/unidata/unidata-gen.el
+++ b/admin/unidata/unidata-gen.el
@@ -583,17 +583,17 @@ Property value is a symbol `o' (Open), `c' (Close), or `n' (None)."
583 (aset vec (- range start) val-code)) 583 (aset vec (- range start) val-code))
584 (setq tail (cdr tail))) 584 (setq tail (cdr tail)))
585 (setq str "\002" val-code -1 count 0) 585 (setq str "\002" val-code -1 count 0)
586 (mapc (lambda (x) 586 (mapc #'(lambda (x)
587 (if (= val-code x) 587 (if (= val-code x)
588 (setq count (1+ count)) 588 (setq count (1+ count))
589 (if (> count 2) 589 (if (> count 2)
590 (setq str (concat str (string val-code 590 (setq str (concat str (string val-code
591 (+ count 128)))) 591 (+ count 128))))
592 (if (= count 2) 592 (if (= count 2)
593 (setq str (concat str (string val-code val-code))) 593 (setq str (concat str (string val-code val-code)))
594 (if (= count 1) 594 (if (= count 1)
595 (setq str (concat str (string val-code)))))) 595 (setq str (concat str (string val-code))))))
596 (setq val-code x count 1))) 596 (setq val-code x count 1)))
597 vec) 597 vec)
598 (if (= count 128) 598 (if (= count 128)
599 (if val 599 (if val
@@ -613,8 +613,8 @@ Property value is a symbol `o' (Open), `c' (Close), or `n' (None)."
613 613
614(defun unidata-gen-table-symbol (prop index default-value val-list) 614(defun unidata-gen-table-symbol (prop index default-value val-list)
615 (let ((table (unidata-gen-table prop index 615 (let ((table (unidata-gen-table prop index
616 (lambda (x) (and (> (length x) 0) 616 #'(lambda (x) (and (> (length x) 0)
617 (intern x))) 617 (intern x)))
618 default-value val-list))) 618 default-value val-list)))
619 (set-char-table-extra-slot table 1 0) 619 (set-char-table-extra-slot table 1 0)
620 (set-char-table-extra-slot table 2 1) 620 (set-char-table-extra-slot table 2 1)
@@ -622,8 +622,8 @@ Property value is a symbol `o' (Open), `c' (Close), or `n' (None)."
622 622
623(defun unidata-gen-table-integer (prop index default-value val-list) 623(defun unidata-gen-table-integer (prop index default-value val-list)
624 (let ((table (unidata-gen-table prop index 624 (let ((table (unidata-gen-table prop index
625 (lambda (x) (and (> (length x) 0) 625 #'(lambda (x) (and (> (length x) 0)
626 (string-to-number x))) 626 (string-to-number x)))
627 default-value val-list))) 627 default-value val-list)))
628 (set-char-table-extra-slot table 1 0) 628 (set-char-table-extra-slot table 1 0)
629 (set-char-table-extra-slot table 2 1) 629 (set-char-table-extra-slot table 2 1)
@@ -631,13 +631,13 @@ Property value is a symbol `o' (Open), `c' (Close), or `n' (None)."
631 631
632(defun unidata-gen-table-numeric (prop index default-value val-list) 632(defun unidata-gen-table-numeric (prop index default-value val-list)
633 (let ((table (unidata-gen-table prop index 633 (let ((table (unidata-gen-table prop index
634 (lambda (x) 634 #'(lambda (x)
635 (if (string-match "/" x) 635 (if (string-match "/" x)
636 (/ (float (string-to-number x)) 636 (/ (float (string-to-number x))
637 (string-to-number 637 (string-to-number
638 (substring x (match-end 0)))) 638 (substring x (match-end 0))))
639 (if (> (length x) 0) 639 (if (> (length x) 0)
640 (string-to-number x)))) 640 (string-to-number x))))
641 default-value val-list))) 641 default-value val-list)))
642 (set-char-table-extra-slot table 1 0) 642 (set-char-table-extra-slot table 1 0)
643 (set-char-table-extra-slot table 2 2) 643 (set-char-table-extra-slot table 2 2)
@@ -1000,7 +1000,7 @@ Property value is a symbol `o' (Open), `c' (Close), or `n' (None)."
1000 (cl-incf (alist-get elt (cdr word-list) 0))))) 1000 (cl-incf (alist-get elt (cdr word-list) 0)))))
1001 (set-char-table-range table (cons start limit) vec)))))) 1001 (set-char-table-range table (cons start limit) vec))))))
1002 (setq word-list (sort (cdr word-list) 1002 (setq word-list (sort (cdr word-list)
1003 (lambda (x y) (> (cdr x) (cdr y))))) 1003 #'(lambda (x y) (> (cdr x) (cdr y)))))
1004 (setq tail word-list idx 0) 1004 (setq tail word-list idx 0)
1005 (while tail 1005 (while tail
1006 (setcdr (car tail) (unidata-encode-word idx)) 1006 (setcdr (car tail) (unidata-encode-word idx))
@@ -1266,11 +1266,11 @@ Property value is a symbol `o' (Open), `c' (Close), or `n' (None)."
1266 1266
1267(defun unidata-describe-decomposition (val) 1267(defun unidata-describe-decomposition (val)
1268 (mapconcat 1268 (mapconcat
1269 (lambda (x) 1269 #'(lambda (x)
1270 (if (symbolp x) (symbol-name x) 1270 (if (symbolp x) (symbol-name x)
1271 (concat (string ?') 1271 (concat (string ?')
1272 (compose-string (string x) 0 1 (string ?\t x ?\t)) 1272 (compose-string (string x) 0 1 (string ?\t x ?\t))
1273 (string ?')))) 1273 (string ?'))))
1274 val " ")) 1274 val " "))
1275 1275
1276(defun unidata-describe-bidi-bracket-type (val) 1276(defun unidata-describe-bidi-bracket-type (val)