Mercurial > emacs
diff lisp/vc-hg.el @ 87605:7ca7e531270c
(vc-hg-log-view-mode): Handle the user field better.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Mon, 07 Jan 2008 06:10:11 +0000 |
parents | 26665fb0f604 |
children | 107ccd98fa12 |
line wrap: on
line diff
--- a/lisp/vc-hg.el Mon Jan 07 03:04:01 2008 +0000 +++ b/lisp/vc-hg.el Mon Jan 07 06:10:11 2008 +0000 @@ -286,15 +286,18 @@ (set (make-local-variable 'log-view-font-lock-keywords) (append log-view-font-lock-keywords - ;; Handle the case: - ;; user: foo@bar - '(("^user:[ \t]+\\([A-Za-z0-9_.+-]+@[A-Za-z0-9_.-]+\\)" - (1 'change-log-email)) + '( ;; Handle the case: ;; user: FirstName LastName <foo@bar> ("^user:[ \t]+\\([^<(]+?\\)[ \t]*[(<]\\([A-Za-z0-9_.+-]+@[A-Za-z0-9_.-]+\\)[>)]" (1 'change-log-name) (2 'change-log-email)) + ;; Handle the cases: + ;; user: foo@bar + ;; and + ;; user: foo + ("^user:[ \t]+\\([A-Za-z0-9_.+-]+\\(?:@[A-Za-z0-9_.-]+\\)?\\)" + (1 'change-log-email)) ("^date: \\(.+\\)" (1 'change-log-date)) ("^summary:[ \t]+\\(.+\\)" (1 'log-view-message))))))