Fix last fix.
authorChong Yidong <cyd@stupidchicken.com>
Fri, 23 Jan 2009 19:19:05 +0000 (19:19 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 23 Jan 2009 19:19:05 +0000 (19:19 +0000)
lisp/mail/rmailkwd.el

index 0484752..94d67cb 100644 (file)
@@ -144,7 +144,7 @@ With prefix argument N moves forward N messages with these labels."
        (current rmail-current-message)
        (regexp (concat " \\("
                        (mail-comma-list-regexp labels)
-                       "\\)")))
+                       "\\)\\(,\\|\\'\\)")))
     (while (and (> n 0) (< current rmail-total-messages))
       (setq current (1+ current))
       (if (string-match regexp (rmail-get-labels current))