From: yamaoka Date: Fri, 20 Aug 1999 00:25:34 +0000 (+0000) Subject: (nnmail-split-it): Match whole word for getting group name with `\N'. X-Git-Tag: t-gnus-6_12_0-01~2 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8f7526eea9c550c30052414bcfea54da052a508;p=elisp%2Fgnus.git- (nnmail-split-it): Match whole word for getting group name with `\N'. ;; referred to Nana-gnus 6.13.5. --- diff --git a/lisp/nnmail.el b/lisp/nnmail.el index e742727..1bc980d 100644 --- a/lisp/nnmail.el +++ b/lisp/nnmail.el @@ -1159,7 +1159,7 @@ See the documentation for the variable `nnmail-split-fancy' for documentation." (setq value (cdr (assq value nnmail-split-abbrev-alist)))) ;; Someone might want to do a \N sub on this match, so get the ;; correct match positions. - (re-search-backward value start-of-value)) + (re-search-backward (concat "\\<" value "\\>") start-of-value)) (dolist (sp (nnmail-split-it (car split-rest))) (unless (memq sp split-result) (push sp split-result))))))