# HG changeset patch # User Stefan Monnier # Date 1294329839 18000 # Node ID 6de29881faa67d9a745b95fdbbac0554a1104ee0 # Parent 98276eb8b0ed1dfe3d5c42238db30921ba9705dc * vc-bzr.el (vc-bzr-annotate-command, vc-bzr-annotate-time): Author names can have spaces. diff -r 98276eb8b0ed -r 6de29881faa6 lisp/ChangeLog --- a/lisp/ChangeLog Tue Jan 04 16:10:30 2011 +0900 +++ b/lisp/ChangeLog Thu Jan 06 11:03:59 2011 -0500 @@ -1,3 +1,8 @@ +2011-01-06 Stefan Monnier + + * vc-bzr.el (vc-bzr-annotate-command, vc-bzr-annotate-time): + Author names can have spaces (bug#7792). + 2011-01-04 Kenichi Handa * mail/rmailmm.el (rmail-mime-insert-bulk): Display an unknown diff -r 98276eb8b0ed -r 6de29881faa6 lisp/vc-bzr.el --- a/lisp/vc-bzr.el Tue Jan 04 16:10:30 2011 +0900 +++ b/lisp/vc-bzr.el Thu Jan 06 11:03:59 2011 -0500 @@ -605,7 +605,7 @@ (when (process-buffer proc) (with-current-buffer (process-buffer proc) (setq string (concat (process-get proc :vc-left-over) string)) - (while (string-match "^\\( *[0-9.]+ *\\) \\([^\n ]+\\) +\\([0-9]\\{8\\}\\)\\( |.*\n\\)" string) + (while (string-match "^\\( *[0-9.]+ *\\) \\(.+?\\) +\\([0-9]\\{8\\}\\)\\( |.*\n\\)" string) (let* ((rev (match-string 1 string)) (author (match-string 2 string)) (date (match-string 3 string)) @@ -632,7 +632,7 @@ (declare-function vc-annotate-convert-time "vc-annotate" (time)) (defun vc-bzr-annotate-time () - (when (re-search-forward "^ *[0-9.]+ +[^\n ]* +|" nil t) + (when (re-search-forward "^ *[0-9.]+ +.+? +|" nil t) (let ((prop (get-text-property (line-beginning-position) 'help-echo))) (string-match "[0-9]+\\'" prop) (let ((str (match-string-no-properties 0 prop)))