aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/gnus.el
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1993-06-10 10:40:16 +0000
committerJim Blandy <[email protected]>1993-06-10 10:40:16 +0000
commit17df4d9dae5415bdff13cf2f1f3f8e4d35d94614 (patch)
treeee6d16a565a94bb4fba1c041199908891a36e268 /lisp/gnus.el
parent407865ffc91a5fc1f6fcf7f6ecf5d80fa367a208 (diff)
* gnus.el (gnus-newsrc-to-gnus-format): Change regexp which
matches .newsrc lines for better performance under the new regexp routines.
Diffstat (limited to 'lisp/gnus.el')
-rw-r--r--lisp/gnus.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/gnus.el b/lisp/gnus.el
index 139dfe4edc..f9f5c66321 100644
--- a/lisp/gnus.el
+++ b/lisp/gnus.el
@@ -1,6 +1,6 @@
;;; GNUS: an NNTP-based News Reader for GNU Emacs
;; Copyright (C) 1987, 1988, 1989, 1990, 1993 Free Software Foundation, Inc.
-;; $Header: /gd/gnu/emacs/19.0/lisp/RCS/gnus.el,v 1.18 1993/06/05 09:17:34 rms Exp jimb $
+;; $Header: /gd/gnu/emacs/19.0/lisp/RCS/gnus.el,v 1.19 1993/06/09 11:53:26 jimb Exp jimb $
;; This file is part of GNU Emacs.
@@ -6563,9 +6563,11 @@ If optional argument RAWFILE is non-nil, the raw startup file is read."
(goto-char (point-min))
;; Due to overflows in regex.c, change the following regexp:
;; "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(.*\\)$"
- ;; Suggested by [email protected] (Jeff Kellem).
+ ;; Suggested by [email protected] (Jeff Kellem)
+ ;; but no longer viable because of extensive backtracking in Emacs 19:
+ ;; "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(\\(...\\)*.*\\)$" nil t)
(while (re-search-forward
- "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(\\(...\\)*.*\\)$" nil t)
+ "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(\\|[^ \t].*\\)$" nil t)
(setq newsgroup (buffer-substring (match-beginning 1) (match-end 1)))
;; Check duplications of newsgroups.
;; Note: Checking the duplications takes very long time.