2001-11-25 09:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Sun, 25 Nov 2001 15:08:52 +0000 (15:08 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Sun, 25 Nov 2001 15:08:52 +0000 (15:08 +0000)
* gnus-util.el (gnus-directory-sep-char-regexp): New.
* gnus-score.el (gnus-score-find-bnews): Use it.

lisp/ChangeLog
lisp/gnus-score.el
lisp/gnus-util.el

index 87e7e16..636573c 100644 (file)
@@ -1,5 +1,8 @@
 2001-11-25 09:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
+       * gnus-util.el (gnus-directory-sep-char-regexp): New.
+       * gnus-score.el (gnus-score-find-bnews): Use it.
+
        * gnus-sum.el (gnus-summary-limit-to-subject): An exclusion version.
        (gnus-summary-limit-to-author): Ditto.
        (gnus-summary-limit-to-extra): Ditto.
index 2dce72c..8c94611 100644 (file)
@@ -2567,7 +2567,7 @@ GROUP using BNews sys file syntax."
              ;; too much.
              (delete-char (min (1- (point-max)) klen))
            (goto-char (point-max))
-           (if (search-backward (string directory-sep-char) nil t)
+           (if (re-search-backward gnus-directory-sep-char-regexp nil t)
                (delete-region (1+ (point)) (point-min))
              (gnus-message 1 "Can't find directory separator in %s"
                            (car sfiles))))
index ed85597..2696795 100644 (file)
@@ -1145,6 +1145,11 @@ sure of changing the value of `foo'."
 (defun gnus-not-ignore (&rest args)
   t)
 
+(defvar gnus-directory-sep-char-regexp "/"
+  "The regexp of directory separator character.
+If you find some problem with the directory separator character, try
+\"[/\\\\\]\" for some systems.")
+
 (provide 'gnus-util)
 
 ;;; gnus-util.el ends here