]> git.eshelyaron.com Git - emacs.git/commitdiff
(miscdic-convert): Don't generate a
authorKenichi Handa <handa@m17n.org>
Sat, 1 May 2004 04:38:47 +0000 (04:38 +0000)
committerKenichi Handa <handa@m17n.org>
Sat, 1 May 2004 04:38:47 +0000 (04:38 +0000)
quail file if it is up to date.

lisp/ChangeLog
lisp/international/titdic-cnv.el

index dbbf9c89a44bb1b4b888d8bbe131fbb1f9eff31a..eecf77f488be834be9530def008d48c33222a258 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-01  Kenichi Handa  <handa@m17n.org>
+
+       * international/titdic-cnv.el (miscdic-convert): Don't generate a
+       quail file if it is up to date.
+
 2004-04-30  Juri Linkov  <juri@jurta.org>
 
        * cus-edit.el (custom-mode-map):
index 759df5fd949a60b5181c18935aca2f62ee5080ab..b1ce0a0255b06b57d77200244c14ca8326ba9240 100644 (file)
@@ -1113,21 +1113,25 @@ the generated Quail package is saved."
        name title dicfile coding quailfile converter copyright
        dicbuf)
     (while tail
-      (when (or (string-match (nth 2 (car tail)) filename)
-               ;; MS-DOS filesystem truncates file names to 8+3
-               ;; limits, so "cangjie-table.cns" becomes
-               ;; "cangjie-.cns", and the above string-match fails.
-               ;; Give DOS users a chance...
-               (and (fboundp 'msdos-long-file-names)
-                    (not (msdos-long-file-names))
-                    (string-match (dos-8+3-filename (nth 2 (car tail)))
-                                  filename)))
-       (setq slot (car tail)
-             name (car slot)
+      (setq slot (car tail)
+           dicfile (nth 2 slot)
+           quailfile (nth 4 slot))
+      (when (and (or (string-match dicfile filename)
+                    ;; MS-DOS filesystem truncates file names to 8+3
+                    ;; limits, so "cangjie-table.cns" becomes
+                    ;; "cangjie-.cns", and the above string-match
+                    ;; fails.  Give DOS users a chance...
+                    (and (fboundp 'msdos-long-file-names)
+                         (not (msdos-long-file-names))
+                         (string-match (dos-8+3-filename dicfile) filename)))
+                (if (file-newer-than-file-p
+                     filename (expand-file-name quailfile dirname))
+                    t
+                  (message "%s is up to date" quailfile)
+                  nil))
+       (setq name (car slot)
              title (nth 1 slot)
-             dicfile (nth 2 slot)
              coding (nth 3 slot)
-             quailfile (nth 4 slot)
              converter (nth 5 slot)
              copyright (nth 6 slot))
        (message "Converting %s to %s..." dicfile quailfile)