diff options
| author | Jim Blandy | 1993-06-10 10:40:16 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-10 10:40:16 +0000 |
| commit | 17df4d9dae5415bdff13cf2f1f3f8e4d35d94614 (patch) | |
| tree | ee6d16a565a94bb4fba1c041199908891a36e268 | |
| parent | 407865ffc91a5fc1f6fcf7f6ecf5d80fa367a208 (diff) | |
| download | emacs-17df4d9dae5415bdff13cf2f1f3f8e4d35d94614.tar.gz emacs-17df4d9dae5415bdff13cf2f1f3f8e4d35d94614.zip | |
* gnus.el (gnus-newsrc-to-gnus-format): Change regexp which
matches .newsrc lines for better performance under the new regexp
routines.
| -rw-r--r-- | lisp/gnus.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/gnus.el b/lisp/gnus.el index 139dfe4edc3..f9f5c663214 100644 --- a/lisp/gnus.el +++ b/lisp/gnus.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNUS: an NNTP-based News Reader for GNU Emacs | 1 | ;;; GNUS: an NNTP-based News Reader for GNU Emacs |
| 2 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1993 Free Software Foundation, Inc. | 2 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1993 Free Software Foundation, Inc. |
| 3 | ;; $Header: /gd/gnu/emacs/19.0/lisp/RCS/gnus.el,v 1.18 1993/06/05 09:17:34 rms Exp jimb $ | 3 | ;; $Header: /gd/gnu/emacs/19.0/lisp/RCS/gnus.el,v 1.19 1993/06/09 11:53:26 jimb Exp jimb $ |
| 4 | 4 | ||
| 5 | ;; This file is part of GNU Emacs. | 5 | ;; This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -6563,9 +6563,11 @@ If optional argument RAWFILE is non-nil, the raw startup file is read." | |||
| 6563 | (goto-char (point-min)) | 6563 | (goto-char (point-min)) |
| 6564 | ;; Due to overflows in regex.c, change the following regexp: | 6564 | ;; Due to overflows in regex.c, change the following regexp: |
| 6565 | ;; "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(.*\\)$" | 6565 | ;; "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(.*\\)$" |
| 6566 | ;; Suggested by composer@bucsf.bu.edu (Jeff Kellem). | 6566 | ;; Suggested by composer@bucsf.bu.edu (Jeff Kellem) |
| 6567 | ;; but no longer viable because of extensive backtracking in Emacs 19: | ||
| 6568 | ;; "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(\\(...\\)*.*\\)$" nil t) | ||
| 6567 | (while (re-search-forward | 6569 | (while (re-search-forward |
| 6568 | "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(\\(...\\)*.*\\)$" nil t) | 6570 | "^\\([^:! \t\n]+\\)\\([:!]\\)[ \t]*\\(\\|[^ \t].*\\)$" nil t) |
| 6569 | (setq newsgroup (buffer-substring (match-beginning 1) (match-end 1))) | 6571 | (setq newsgroup (buffer-substring (match-beginning 1) (match-end 1))) |
| 6570 | ;; Check duplications of newsgroups. | 6572 | ;; Check duplications of newsgroups. |
| 6571 | ;; Note: Checking the duplications takes very long time. | 6573 | ;; Note: Checking the duplications takes very long time. |