aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1997-07-17 07:16:21 +0000
committerKenichi Handa1997-07-17 07:16:21 +0000
commit44cbfae907e464bf443399fd774187721509eca9 (patch)
tree1545ac453c6e86a0591d54679b7f12e82c064e16
parentc5ca4d3a1b9bb3165401212fa39621562c5c0e1f (diff)
downloademacs-44cbfae907e464bf443399fd774187721509eca9.tar.gz
emacs-44cbfae907e464bf443399fd774187721509eca9.zip
(batch-titdic-convert): Add optional arg FORCE.
-rw-r--r--lisp/international/titdic-cnv.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/international/titdic-cnv.el b/lisp/international/titdic-cnv.el
index abf3d0ef070..a92157744e9 100644
--- a/lisp/international/titdic-cnv.el
+++ b/lisp/international/titdic-cnv.el
@@ -397,7 +397,7 @@ the generated Quail package is saved."
397 (message "Save this buffer after you make any modification")))) 397 (message "Save this buffer after you make any modification"))))
398 398
399;;;###autoload 399;;;###autoload
400(defun batch-titdic-convert () 400(defun batch-titdic-convert (&optional force)
401 "Run `titdic-convert' on the files remaining on the command line. 401 "Run `titdic-convert' on the files remaining on the command line.
402Use this from the command line, with `-batch'; 402Use this from the command line, with `-batch';
403it won't work in an interactive Emacs. 403it won't work in an interactive Emacs.
@@ -428,11 +428,11 @@ To get complete usage, invoke \"emacs -batch -f batch-titdic-convert -h\"."
428 (setq files (list filename))) 428 (setq files (list filename)))
429 (while files 429 (while files
430 (setq file (expand-file-name (car files))) 430 (setq file (expand-file-name (car files)))
431 (if (file-newer-than-file-p 431 (when (or force
432 file (tit-make-quail-package-file-name file targetdir)) 432 (file-newer-than-file-p
433 (progn 433 file (tit-make-quail-package-file-name file targetdir)))
434 (message "Converting %s to quail-package..." file) 434 (message "Converting %s to quail-package..." file)
435 (titdic-convert file targetdir))) 435 (titdic-convert file targetdir))
436 (setq files (cdr files))) 436 (setq files (cdr files)))
437 (setq command-line-args-left (cdr command-line-args-left))) 437 (setq command-line-args-left (cdr command-line-args-left)))
438 (message "Do byte-compile the created files by:") 438 (message "Do byte-compile the created files by:")