(float (nth 7 file-attr))))))
(defun elmo-get-last-accessed-time (path &optional dir)
- "Returns last accessed time."
+ "Return the last accessed time of PATH."
(let ((last-accessed (nth 4 (file-attributes (or (and dir
(expand-file-name
path dir))
0)))
(defun elmo-get-last-modification-time (path &optional dir)
- "Returns last accessed time."
+ "Return the last accessed time of PATH."
(let ((last-modified (nth 5 (file-attributes (or (and dir
(expand-file-name
path dir))
(float 65536)) (nth 1 last-modified)))))
(defun elmo-make-directory (path)
- "create directory recursively."
+ "Create directory recursively."
(let ((parent (directory-file-name (file-name-directory path))))
(if (null (file-directory-p parent))
(elmo-make-directory parent))
)))
(defun elmo-delete-directory (path &optional no-hierarchy)
- "delete directory recursively."
+ "Delete directory recursively."
(let ((dirent (directory-files path))
relpath abspath hierarchy)
(while dirent
(kill-buffer buffer)))
(defun elmo-delete-if (pred lst)
- "Returns new list contains items which don't satisfy PRED in LST."
+ "Return new list contains items which don't satisfy PRED in LST."
(let (result)
(while lst
(unless (funcall pred (car lst))
list2)
(defun elmo-list-member (list1 list2)
- "If any element of list1 is member of list2, returns t."
+ "If any element of list1 is member of list2, return t."
(catch 'done
(while list1
(if (member (car list1) list2)
(y-or-n-p prompt)))
(defun elmo-string-member (string slist)
- "Returns t if STRING is a member of the SLIST."
+ "Return t if STRING is a member of the SLIST."
(catch 'found
(while slist
(if (and (stringp (car slist))
;; number-set ::= "(" *number-set-elem ")" ;; list
(defun elmo-number-set-member (number number-set)
- "Returns non-nil if NUMBER is an element of NUMBER-SET.
+ "Return non-nil if NUMBER is an element of NUMBER-SET.
The value is actuall the tail of SET-LIST whose car contains NUMBER."
(or (memq number number-set)
(let (found)