riece-log-flashback-1; simplified.
(riece-log-get-files): Check existence of directory.
(riece-log-get-directory): New implementation.
+ [cf. <Liece:00396>]
2004-12-07 TAKAHASHI Kaoru <kaoru@kaisei.org>
(defun riece-log-get-file (identity)
(expand-file-name
- (concat (format-time-string "%Y%m%d") ".log")
+ (concat (format-time-string "%Y%m%d") ".txt")
(riece-log-get-directory identity)))
(defun riece-log-get-files (identity)
(nreverse (sort (directory-files directory t
(concat "^"
(riece-make-interval-regexp "[0-9]" 8)
- "\\.log$")
+ "\\.txt$")
t)
#'string-lessp)))))
(while (and (< lines 0) files)
(if (and (file-exists-p (car files))
(string-match (concat "\\([0-9][0-9][0-9][0-9]\\)"
- "\\([0-9][0-9]\\)\\([0-9][0-9]\\).log$")
+ "\\([0-9][0-9]\\)\\([0-9][0-9]\\).txt$")
(car files)))
(save-restriction
(narrow-to-region (point) (point))