message.el (message-insert-formatted-citation-line): handle case I broke - LASTNAME...
authorAdam Sjøgren <asjo@koldfront.dk>
Sun, 19 May 2013 18:59:23 +0000 (20:59 +0200)
committerAdam Sjøgren <asjo@koldfront.dk>
Sun, 19 May 2013 19:01:15 +0000 (21:01 +0200)
lisp/message.el

index 2374314..ca1a2e6 100644 (file)
@@ -3997,7 +3997,10 @@ See `message-citation-line-format'."
                         ((or (= count 2) (= count 3)) (setq fname (car names)
                                                             lname (mapconcat 'identity (cdr names) " ")))
                         ((> count 3) (setq fname (mapconcat 'identity (butlast names (- count 2)) " ")
                         ((or (= count 2) (= count 3)) (setq fname (car names)
                                                             lname (mapconcat 'identity (cdr names) " ")))
                         ((> count 3) (setq fname (mapconcat 'identity (butlast names (- count 2)) " ")
-                                           lname (mapconcat 'identity (nthcdr 2 names) " "))) )))
+                                           lname (mapconcat 'identity (nthcdr 2 names) " "))) )
+                  (when (string-match "\\(.*\\),\\'" fname)
+                    (let ((newlname (match-string 1 fname)))
+                      (setq fname lname lname newlname)))))
              ;; The following letters are not used in `format-time-string':
              (push ?E lst) (push "<E>" lst)
              (push ?F lst) (push fname lst)
              ;; The following letters are not used in `format-time-string':
              (push ?E lst) (push "<E>" lst)
              (push ?F lst) (push fname lst)