]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-make-summary-line-1): Change comma after last label to a space.
authorRichard M. Stallman <rms@gnu.org>
Tue, 30 Sep 2003 12:43:49 +0000 (12:43 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 30 Sep 2003 12:43:49 +0000 (12:43 +0000)
(rmail-summary-font-lock-keywords): Adapt to that change.

lisp/mail/rmailsum.el

index 3affdf88bb528666d3025458142723d094af90d7..cd8d7d67aa467b9c44b79100e542cacc62a1a939 100644 (file)
@@ -51,7 +51,7 @@
     ("^.....-.*" . font-lock-type-face)                                ; Unread.
     ;; Neither of the below will be highlighted if either of the above are:
     ("^.....[^D-] \\(......\\)" 1 font-lock-keyword-face)      ; Date.
-    ("{ \\([^\n}]+\\),}" 1 font-lock-comment-face))            ; Labels.
+    ("{ \\([^\n}]+\\) }" 1 font-lock-comment-face))            ; Labels.
   "Additional expressions to highlight in Rmail Summary mode.")
 
 ;; Entry points for making a summary buffer.
@@ -300,8 +300,12 @@ By default, `identity' is set."
                 ""
               (concat "{"
                       (buffer-substring (point)
-                                        (progn (end-of-line) (point)))
-                      "} ")))))
+                                        (progn (end-of-line)
+                                               (backward-char)
+                                               (if (looking-at ",")
+                                                   (point)
+                                                 (1+ (point)))))
+                      " } ")))))
         (line
          (progn
            (forward-line 1)