changeset 101411:d59cc7925a91

(rmail-get-labels): Obey the MSG argument.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 23 Jan 2009 19:02:24 +0000
parents c1075d987474
children c1fb3b6fe79a
files lisp/mail/rmail.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Fri Jan 23 19:02:12 2009 +0000
+++ b/lisp/mail/rmail.el	Fri Jan 23 19:02:24 2009 +0000
@@ -2055,11 +2055,12 @@
 It is put in comma-separated form.
 MSG, if non-nil, identifies the message number to use.
 If nil, that means the current message."
+  (or msg (setq msg rmail-current-message))
   (let (blurb attr-names keywords)
     ;; Combine the message attributes and keywords 
     ;; into a comma-separated list.
-    (setq attr-names (rmail-get-attr-names rmail-current-message)
-	  keywords (rmail-get-keywords rmail-current-message))
+    (setq attr-names (rmail-get-attr-names msg)
+	  keywords (rmail-get-keywords msg))
     (if (string= keywords "")
 	(setq keywords nil))
     (cond