* elmo-util.el (elmo-cache-expire): Completion require match "age" or "size".
authorkaoru <kaoru>
Sat, 7 Feb 2004 13:44:59 +0000 (13:44 +0000)
committerkaoru <kaoru>
Sat, 7 Feb 2004 13:44:59 +0000 (13:44 +0000)
elmo/ChangeLog
elmo/elmo-util.el

index fe6a321..97b9cc7 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-07  TAKAHASHI Kaoru  <kaoru@kaisei.org>
+
+       * elmo-util.el (elmo-cache-expire): Completion require match "age"
+       or "size".
+
 2004-01-28  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * elmo-util.el (elmo-get-hash-val): Check symbol is bound if
index 3cb5140..f07b296 100644 (file)
@@ -1761,9 +1761,10 @@ associated with SECTION."
         (method (completing-read (format "Expire by (%s): "
                                          elmo-cache-expire-default-method)
                                  '(("size" . "size")
-                                   ("age" . "age")))))
-    (if (string= method "")
-       (setq method elmo-cache-expire-default-method))
+                                   ("age" . "age"))
+                                 nil t)))
+    (when (string= method "")
+      (setq method elmo-cache-expire-default-method))
     (funcall (intern (concat "elmo-cache-expire-by-" method)))))
 
 (defun elmo-read-float-value-from-minibuffer (prompt &optional initial)