aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-29 02:06:39 +0000
committerRichard M. Stallman1997-08-29 02:06:39 +0000
commita337fe7f350e2e5a9e5945d56aaca0a972e8f262 (patch)
treeaae3e5943d20d3851a18b89195e9abbceb42ae36
parent9ba344f7bf57c53b719959b929bc4bf619c3ba9a (diff)
downloademacs-a337fe7f350e2e5a9e5945d56aaca0a972e8f262.tar.gz
emacs-a337fe7f350e2e5a9e5945d56aaca0a972e8f262.zip
(update-leim-list-file): Make it handle multiple directories.
(update-all-leim-list-files): Deleted.
-rw-r--r--lisp/international/mule-cmds.el15
1 files changed, 3 insertions, 12 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index e7972045a65..eb92a210fd2 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -358,22 +358,13 @@ See also the variable `leim-list-header'")
358 "List of functions to call to update LEIM list file. 358 "List of functions to call to update LEIM list file.
359Each function is called with one arg, LEIM directory name.") 359Each function is called with one arg, LEIM directory name.")
360 360
361(defun update-leim-list-file (dir) 361(defun update-leim-list-file (&rest dirs)
362 "Update LEIM list file in directory DIR." 362 "Update LEIM list file in directories DIRS."
363 (let ((functions update-leim-list-functions)) 363 (let ((functions update-leim-list-functions))
364 (while functions 364 (while functions
365 (funcall (car functions) (expand-file-name dir)) 365 (apply (car functions) dirs)
366 (setq functions (cdr functions))))) 366 (setq functions (cdr functions)))))
367 367
368(defun update-all-leim-list-files ()
369 "Update all the LEIM list files."
370 (interactive)
371 (let ((l load-path))
372 (while l
373 (if (string-match "leim" (car l))
374 (update-leim-list-file (car l)))
375 (setq l (cdr l)))))
376
377(defvar current-input-method nil 368(defvar current-input-method nil
378 "The current input method for multilingual text. 369 "The current input method for multilingual text.
379If nil, that means no input method is activated now.") 370If nil, that means no input method is activated now.")