aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2014-02-11 21:51:37 -0800
committerLars Ingebrigtsen2014-02-11 21:51:37 -0800
commit6227467f0b9ca559b711c7a0e744cf97519ac30f (patch)
tree98012bae58b18173d77cbd88a2fb44966292b983
parentd024b579cdac8ee7b173885af84259392dfdf247 (diff)
downloademacs-6227467f0b9ca559b711c7a0e744cf97519ac30f.tar.gz
emacs-6227467f0b9ca559b711c7a0e744cf97519ac30f.zip
Fix the last patch to work from non-fancy splits, too
-rw-r--r--lisp/gnus/nnmail.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index d7af9d84406..ac4b638fda0 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -1397,7 +1397,7 @@ See the documentation for the variable `nnmail-split-fancy' for details."
1397 ((stringp split) 1397 ((stringp split)
1398 (when nnmail-split-tracing 1398 (when nnmail-split-tracing
1399 (push split nnmail-split-trace)) 1399 (push split nnmail-split-trace))
1400 (list (nnmail-expand-newtext split))) 1400 (list (nnmail-expand-newtext split t)))
1401 1401
1402 ;; Junk the message. 1402 ;; Junk the message.
1403 ((eq split 'junk) 1403 ((eq split 'junk)
@@ -1517,7 +1517,7 @@ See the documentation for the variable `nnmail-split-fancy' for details."
1517 ;; on the same split, which will find it immediately in the cache. 1517 ;; on the same split, which will find it immediately in the cache.
1518 (nnmail-split-it split)))))) 1518 (nnmail-split-it split))))))
1519 1519
1520(defun nnmail-expand-newtext (newtext) 1520(defun nnmail-expand-newtext (newtext &optional fancyp)
1521 (let ((len (length newtext)) 1521 (let ((len (length newtext))
1522 (pos 0) 1522 (pos 0)
1523 c expanded beg N did-expand) 1523 c expanded beg N did-expand)
@@ -1544,7 +1544,8 @@ See the documentation for the variable `nnmail-split-fancy' for details."
1544 (setq N (- c ?0))) 1544 (setq N (- c ?0)))
1545 ;; We wrapped the searches in parentheses, so we have to 1545 ;; We wrapped the searches in parentheses, so we have to
1546 ;; add some parentheses here... 1546 ;; add some parentheses here...
1547 (setq N (+ N 3)) 1547 (when fancyp
1548 (setq N (+ N 3)))
1548 (when (match-beginning N) 1549 (when (match-beginning N)
1549 (push (if nnmail-split-lowercase-expanded 1550 (push (if nnmail-split-lowercase-expanded
1550 (downcase (buffer-substring (match-beginning N) 1551 (downcase (buffer-substring (match-beginning N)