diff options
| author | Kenichi Handa | 2004-05-01 04:38:47 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-05-01 04:38:47 +0000 |
| commit | d1df889e9e0a3f64584cd86ed799392cb640593c (patch) | |
| tree | 627e5442026488231619850c238a6cfadf9a4c3c | |
| parent | 8aa3c147963335f79b8c9da26f9a0f1c89fa326d (diff) | |
| download | emacs-d1df889e9e0a3f64584cd86ed799392cb640593c.tar.gz emacs-d1df889e9e0a3f64584cd86ed799392cb640593c.zip | |
(miscdic-convert): Don't generate a
quail file if it is up to date.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/international/titdic-cnv.el | 30 |
2 files changed, 22 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dbbf9c89a44..eecf77f488b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-05-01 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * international/titdic-cnv.el (miscdic-convert): Don't generate a | ||
| 4 | quail file if it is up to date. | ||
| 5 | |||
| 1 | 2004-04-30 Juri Linkov <juri@jurta.org> | 6 | 2004-04-30 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * cus-edit.el (custom-mode-map): | 8 | * cus-edit.el (custom-mode-map): |
diff --git a/lisp/international/titdic-cnv.el b/lisp/international/titdic-cnv.el index 759df5fd949..b1ce0a0255b 100644 --- a/lisp/international/titdic-cnv.el +++ b/lisp/international/titdic-cnv.el | |||
| @@ -1113,21 +1113,25 @@ the generated Quail package is saved." | |||
| 1113 | name title dicfile coding quailfile converter copyright | 1113 | name title dicfile coding quailfile converter copyright |
| 1114 | dicbuf) | 1114 | dicbuf) |
| 1115 | (while tail | 1115 | (while tail |
| 1116 | (when (or (string-match (nth 2 (car tail)) filename) | 1116 | (setq slot (car tail) |
| 1117 | ;; MS-DOS filesystem truncates file names to 8+3 | 1117 | dicfile (nth 2 slot) |
| 1118 | ;; limits, so "cangjie-table.cns" becomes | 1118 | quailfile (nth 4 slot)) |
| 1119 | ;; "cangjie-.cns", and the above string-match fails. | 1119 | (when (and (or (string-match dicfile filename) |
| 1120 | ;; Give DOS users a chance... | 1120 | ;; MS-DOS filesystem truncates file names to 8+3 |
| 1121 | (and (fboundp 'msdos-long-file-names) | 1121 | ;; limits, so "cangjie-table.cns" becomes |
| 1122 | (not (msdos-long-file-names)) | 1122 | ;; "cangjie-.cns", and the above string-match |
| 1123 | (string-match (dos-8+3-filename (nth 2 (car tail))) | 1123 | ;; fails. Give DOS users a chance... |
| 1124 | filename))) | 1124 | (and (fboundp 'msdos-long-file-names) |
| 1125 | (setq slot (car tail) | 1125 | (not (msdos-long-file-names)) |
| 1126 | name (car slot) | 1126 | (string-match (dos-8+3-filename dicfile) filename))) |
| 1127 | (if (file-newer-than-file-p | ||
| 1128 | filename (expand-file-name quailfile dirname)) | ||
| 1129 | t | ||
| 1130 | (message "%s is up to date" quailfile) | ||
| 1131 | nil)) | ||
| 1132 | (setq name (car slot) | ||
| 1127 | title (nth 1 slot) | 1133 | title (nth 1 slot) |
| 1128 | dicfile (nth 2 slot) | ||
| 1129 | coding (nth 3 slot) | 1134 | coding (nth 3 slot) |
| 1130 | quailfile (nth 4 slot) | ||
| 1131 | converter (nth 5 slot) | 1135 | converter (nth 5 slot) |
| 1132 | copyright (nth 6 slot)) | 1136 | copyright (nth 6 slot)) |
| 1133 | (message "Converting %s to %s..." dicfile quailfile) | 1137 | (message "Converting %s to %s..." dicfile quailfile) |