comparison lisp/gnus/gnus-score.el @ 41494:933ab100fb4a

2001-11-25 ShengHuo ZHU <zsh@cs.rochester.edu> * gnus-util.el (gnus-directory-sep-char-regexp): New. * gnus-score.el (gnus-score-find-bnews): Sync with Gnus CVS. * mm-util.el: Sync. * gnus-sum.el (gnus-summary-limit-to-subject): An exclusion version. (gnus-summary-limit-to-author): Ditto. (gnus-summary-limit-to-extra): Ditto. (gnus-summary-find-matching): Support not-matching argument. * message.el (message-wash-subject): Use `insert' rather than `insert-string', which is deprecated. From Kai Gro,A_(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
author ShengHuo ZHU <zsh@cs.rochester.edu>
date Sun, 25 Nov 2001 15:17:24 +0000
parents 70987a4f43c8
children 7d09b72f86c0 d7ddb3e565de
comparison
equal deleted inserted replaced
41493:d85992144288 41494:933ab100fb4a
2558 (if (looking-at (regexp-quote kill-dir)) 2558 (if (looking-at (regexp-quote kill-dir))
2559 ;; If the file name was just "SCORE", `klen' is one character 2559 ;; If the file name was just "SCORE", `klen' is one character
2560 ;; too much. 2560 ;; too much.
2561 (delete-char (min (1- (point-max)) klen)) 2561 (delete-char (min (1- (point-max)) klen))
2562 (goto-char (point-max)) 2562 (goto-char (point-max))
2563 (search-backward (string directory-sep-char)) 2563 (if (re-search-backward gnus-directory-sep-char-regexp nil t)
2564 (delete-region (1+ (point)) (point-min))) 2564 (delete-region (1+ (point)) (point-min))
2565 (gnus-message 1 "Can't find directory separator in %s"
2566 (car sfiles))))
2565 ;; If short file names were used, we have to translate slashes. 2567 ;; If short file names were used, we have to translate slashes.
2566 (goto-char (point-min)) 2568 (goto-char (point-min))
2567 (let ((regexp (concat 2569 (let ((regexp (concat
2568 "[/:" (if trans (char-to-string trans)) "]"))) 2570 "[/:" (if trans (char-to-string trans)) "]")))
2569 (while (re-search-forward regexp nil t) 2571 (while (re-search-forward regexp nil t)
2593 (setq not-match nil)) 2595 (setq not-match nil))
2594 ;; Finally - if this resulting regexp matches the group name, 2596 ;; Finally - if this resulting regexp matches the group name,
2595 ;; we add this score file to the list of score files 2597 ;; we add this score file to the list of score files
2596 ;; applicable to this group. 2598 ;; applicable to this group.
2597 (when (or (and not-match 2599 (when (or (and not-match
2598 (ignore-errors 2600 (ignore-errors
2599 (not (string-match regexp group-trans)))) 2601 (not (string-match regexp group-trans))))
2600 (and (not not-match) 2602 (and (not not-match)
2601 (ignore-errors (string-match regexp group-trans)))) 2603 (ignore-errors (string-match regexp group-trans))))
2602 (push (car sfiles) ofiles))) 2604 (push (car sfiles) ofiles)))
2603 (setq sfiles (cdr sfiles))) 2605 (setq sfiles (cdr sfiles)))
2604 (kill-buffer (current-buffer)) 2606 (kill-buffer (current-buffer))
2605 ;; Slight kludge here - the last score file returned should be 2607 ;; Slight kludge here - the last score file returned should be
2606 ;; the local score file, whether it exists or not. This is so 2608 ;; the local score file, whether it exists or not. This is so