diff options
| author | Katsumi Yamaoka | 2010-08-30 06:32:33 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-08-30 06:32:33 +0000 |
| commit | 5ec440915cc95c6be5065a0739d8e7673ee38c9d (patch) | |
| tree | 9d3585f6ae389d1fc56d3fe480458bd8c8b9b61e /lisp | |
| parent | 07466c8e7b83841ddcd615cb991608052f698cbf (diff) | |
| download | emacs-5ec440915cc95c6be5065a0739d8e7673ee38c9d.tar.gz emacs-5ec440915cc95c6be5065a0739d8e7673ee38c9d.zip | |
gnus-score-string: Fix regex for matching extra headers and regexp-quote the match if necessary by Andreas Schwab <schwab@suse.de>.
2009-02-04 Andreas Schwab <schwab@suse.de>
* gnus-score.el (gnus-score-string): Fix regex for matching extra
headers and regexp-quote the match if necessary.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-score.el | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index d55f89c28b6..5c148b825e6 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-02-04 Andreas Schwab <schwab@suse.de> | ||
| 2 | |||
| 3 | * gnus-score.el (gnus-score-string): Fix regex for matching extra | ||
| 4 | headers and regexp-quote the match if necessary. | ||
| 5 | |||
| 1 | 2009-03-24 Miles Bader <miles@gnu.org> | 6 | 2009-03-24 Miles Bader <miles@gnu.org> |
| 2 | 7 | ||
| 3 | * smiley.el (smiley-regexp-alist): Don't delete the semicolon before | 8 | * smiley.el (smiley-regexp-alist): Don't delete the semicolon before |
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el index 26c01229e33..8cfd3d5ad01 100644 --- a/lisp/gnus/gnus-score.el +++ b/lisp/gnus/gnus-score.el | |||
| @@ -2055,8 +2055,11 @@ score in `gnus-newsgroup-scored' by SCORE." | |||
| 2055 | 2055 | ||
| 2056 | ;; Evil hackery to make match usable in non-standard headers. | 2056 | ;; Evil hackery to make match usable in non-standard headers. |
| 2057 | (when extra | 2057 | (when extra |
| 2058 | (setq match (concat "[ (](" extra " \\. \"[^)]*" | 2058 | (setq match (concat "[ (](" extra " \\. \"\\([^\"]*\\\\\"\\)*[^\"]*" |
| 2059 | match "[^\"]*\")[ )]") | 2059 | (if (eq search-func 're-search-forward) |
| 2060 | match | ||
| 2061 | (regexp-quote match)) | ||
| 2062 | "\\([^\"]*\\\\\"\\)*[^\"]*\")[ )]") | ||
| 2060 | search-func 're-search-forward)) ; XXX danger?!? | 2063 | search-func 're-search-forward)) ; XXX danger?!? |
| 2061 | 2064 | ||
| 2062 | (cond | 2065 | (cond |