aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-01-07 06:10:11 +0000
committerDan Nicolaescu2008-01-07 06:10:11 +0000
commit698c8717155eff301f4249eaa45ed2ef78506a98 (patch)
tree7831b113cb11ea8f59fc9e8cbe59fbed8faa6fff
parent70b58c473e94f1f83aec422f9918068f4eeb75ad (diff)
downloademacs-698c8717155eff301f4249eaa45ed2ef78506a98.tar.gz
emacs-698c8717155eff301f4249eaa45ed2ef78506a98.zip
(vc-hg-log-view-mode): Handle the user field better.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/vc-hg.el11
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c56108ca020..3b8769bbe66 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -2,6 +2,7 @@
2 2
3 * vc-hg.el (vc-hg-dir-state, vc-hg-dir-status): Pass the dir 3 * vc-hg.el (vc-hg-dir-state, vc-hg-dir-status): Pass the dir
4 argument to vc-hg-command. 4 argument to vc-hg-command.
5 (vc-hg-log-view-mode): Handle the user field better.
5 6
62008-01-06 Stefan Monnier <monnier@iro.umontreal.ca> 72008-01-06 Stefan Monnier <monnier@iro.umontreal.ca>
7 8
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el
index 5d467a7018c..b636e2f9250 100644
--- a/lisp/vc-hg.el
+++ b/lisp/vc-hg.el
@@ -286,15 +286,18 @@
286 (set (make-local-variable 'log-view-font-lock-keywords) 286 (set (make-local-variable 'log-view-font-lock-keywords)
287 (append 287 (append
288 log-view-font-lock-keywords 288 log-view-font-lock-keywords
289 ;; Handle the case: 289 '(
290 ;; user: foo@bar
291 '(("^user:[ \t]+\\([A-Za-z0-9_.+-]+@[A-Za-z0-9_.-]+\\)"
292 (1 'change-log-email))
293 ;; Handle the case: 290 ;; Handle the case:
294 ;; user: FirstName LastName <foo@bar> 291 ;; user: FirstName LastName <foo@bar>
295 ("^user:[ \t]+\\([^<(]+?\\)[ \t]*[(<]\\([A-Za-z0-9_.+-]+@[A-Za-z0-9_.-]+\\)[>)]" 292 ("^user:[ \t]+\\([^<(]+?\\)[ \t]*[(<]\\([A-Za-z0-9_.+-]+@[A-Za-z0-9_.-]+\\)[>)]"
296 (1 'change-log-name) 293 (1 'change-log-name)
297 (2 'change-log-email)) 294 (2 'change-log-email))
295 ;; Handle the cases:
296 ;; user: foo@bar
297 ;; and
298 ;; user: foo
299 ("^user:[ \t]+\\([A-Za-z0-9_.+-]+\\(?:@[A-Za-z0-9_.-]+\\)?\\)"
300 (1 'change-log-email))
298 ("^date: \\(.+\\)" (1 'change-log-date)) 301 ("^date: \\(.+\\)" (1 'change-log-date))
299 ("^summary:[ \t]+\\(.+\\)" (1 'log-view-message)))))) 302 ("^summary:[ \t]+\\(.+\\)" (1 'log-view-message))))))
300 303