From d8f7526eea9c550c30052414bcfea54da052a508 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Fri, 20 Aug 1999 00:25:34 +0000 Subject: [PATCH] (nnmail-split-it): Match whole word for getting group name with `\N'. ;; referred to Nana-gnus 6.13.5. --- lisp/nnmail.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))))) -- 1.7.10.4