emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/gnus/gnus-score.el


From: ShengHuo ZHU
Subject: [Emacs-diffs] Changes to emacs/lisp/gnus/gnus-score.el
Date: Sun, 25 Nov 2001 10:17:25 -0500

Index: emacs/lisp/gnus/gnus-score.el
diff -u emacs/lisp/gnus/gnus-score.el:1.11 emacs/lisp/gnus/gnus-score.el:1.12
--- emacs/lisp/gnus/gnus-score.el:1.11  Wed Nov 14 15:22:13 2001
+++ emacs/lisp/gnus/gnus-score.el       Sun Nov 25 10:17:24 2001
@@ -2560,8 +2560,10 @@
              ;; too much.
              (delete-char (min (1- (point-max)) klen))
            (goto-char (point-max))
-           (search-backward (string directory-sep-char))
-           (delete-region (1+ (point)) (point-min)))
+           (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))))
          ;; If short file names were used, we have to translate slashes.
          (goto-char (point-min))
          (let ((regexp (concat
@@ -2595,10 +2597,10 @@
          ;; we add this score file to the list of score files
          ;; applicable to this group.
          (when (or (and not-match
-                        (ignore-errors
+                        (ignore-errors
                           (not (string-match regexp group-trans))))
-                   (and (not not-match)
-                        (ignore-errors (string-match regexp group-trans))))
+                   (and (not not-match)
+                        (ignore-errors (string-match regexp group-trans))))
            (push (car sfiles) ofiles)))
        (setq sfiles (cdr sfiles)))
       (kill-buffer (current-buffer))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]