aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-03-22 15:10:39 +0000
committerStefan Monnier2004-03-22 15:10:39 +0000
commit87e8daba667979a8eacead21f9a2a1bb943ef806 (patch)
tree1fd188323795edba314c24195870028ee422a278
parent28d38c0b907983275ca409a4bf27bc79804bcd2b (diff)
downloademacs-87e8daba667979a8eacead21f9a2a1bb943ef806.tar.gz
emacs-87e8daba667979a8eacead21f9a2a1bb943ef806.zip
(gnus-score-find-bnews): Simplify and don't assume point-min == 1.
-rw-r--r--lisp/gnus/gnus-score.el12
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el
index 0623d1bd8f1..91035d89f2e 100644
--- a/lisp/gnus/gnus-score.el
+++ b/lisp/gnus/gnus-score.el
@@ -2586,13 +2586,11 @@ GROUP using BNews sys file syntax."
2586 (replace-match ".*" t t)) 2586 (replace-match ".*" t t))
2587 (goto-char (point-min)) 2587 (goto-char (point-min))
2588 ;; Deal with "not."s. 2588 ;; Deal with "not."s.
2589 (if (looking-at "not.") 2589 (setq not-match (looking-at "not."))
2590 (progn 2590 (setq regexp
2591 (setq not-match t) 2591 (concat "^" (buffer-substring (+ (point-min) (if not-match 4 0))
2592 (setq regexp 2592 (point-max))
2593 (concat "^" (buffer-substring 5 (point-max)) "$"))) 2593 "$"))
2594 (setq regexp (concat "^" (buffer-substring 1 (point-max)) "$"))
2595 (setq not-match nil))
2596 ;; Finally - if this resulting regexp matches the group name, 2594 ;; Finally - if this resulting regexp matches the group name,
2597 ;; we add this score file to the list of score files 2595 ;; we add this score file to the list of score files
2598 ;; applicable to this group. 2596 ;; applicable to this group.