+2001-03-06 13:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
+
+ * gnus-score.el (gnus-score-find-bnews): Maybe there is no
+ directory part.
+ (gnus-score-search-global-directories): Use file-directory-p.
+
+ * gnus-score.el (gnus-score-score-files-1): Use
+ gnus-kill-files-directory.
+ From Adrian Aichner <adrian@xemacs.org>.
+
2001-03-05 08:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
* gnus.el (charset): Move here from gnus-sum.el.
(push file out))))
(or out
;; Return a dummy value.
- (list "~/News/this.file.does.not.exist.SCORE"))))
+ (list (expand-file-name "this.file.does.not.exist.SCORE"
+ gnus-kill-files-directory)))))
(defun gnus-score-file-regexp ()
"Return a regexp that match all score files."
;; too much.
(delete-char (min (1- (point-max)) klen))
(goto-char (point-max))
- (search-backward (char-to-string directory-sep-char))
- (delete-region (1+ (point)) (point-min)))
+ (if (search-backward (char-to-string directory-sep-char) nil t)
+ (delete-region (1+ (point)) (point-min))))
;; If short file names were used, we have to translate slashes.
(goto-char (point-min))
(let ((regexp (concat
(let (out)
(while files
;; #### /$ Unix-specific?
- (if (string-match "/$" (car files))
+ (if (file-directory-p (car files))
(setq out (nconc (directory-files
(car files) t
(concat (gnus-score-file-regexp) "$"))))