diff options
| author | Thien-Thi Nguyen | 2007-03-24 11:33:42 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2007-03-24 11:33:42 +0000 |
| commit | 53cc5b9c5723b9593ca80b8a984dbedb829ba2c4 (patch) | |
| tree | e1a610c6fa9ddc0c7b6a3e9600912bc7cda36ecf | |
| parent | ae18604f6376c02ea825d810c047094e381a8dda (diff) | |
| download | emacs-53cc5b9c5723b9593ca80b8a984dbedb829ba2c4.tar.gz emacs-53cc5b9c5723b9593ca80b8a984dbedb829ba2c4.zip | |
(vc-rcs-annotate-command):
Set text property :vc-annotate-prefix on the annotation text.
(vc-rcs-annotate-time): Instead of searching for ": ",
search for end of text propertized with :vc-annotate-prefix.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/vc-rcs.el | 9 |
2 files changed, 13 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 51caf6213a9..603c30d373e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,14 @@ | |||
| 1 | 2007-03-24 Thien-Thi Nguyen <ttn@gnu.org> | ||
| 2 | |||
| 3 | * vc-rcs.el (vc-rcs-annotate-command): | ||
| 4 | Set text property :vc-annotate-prefix on the annotation text. | ||
| 5 | (vc-rcs-annotate-time): Instead of searching for ": ", | ||
| 6 | search for end of text propertized with :vc-annotate-prefix. | ||
| 7 | |||
| 1 | 2007-03-24 Martin Rudalics <rudalics@gmx.at> | 8 | 2007-03-24 Martin Rudalics <rudalics@gmx.at> |
| 2 | 9 | ||
| 3 | * whitespace.el (top level): Remove calls putting | 10 | * whitespace.el (top level): Remove calls putting |
| 4 | permanent-local nil property since these are no-ops. | 11 | permanent-local nil property since these are no-ops. |
| 5 | 12 | ||
| 6 | * man.el (Man-support-local-filenames): Assure that | 13 | * man.el (Man-support-local-filenames): Assure that |
| 7 | default-directory exists when doing call-process. | 14 | default-directory exists when doing call-process. |
diff --git a/lisp/vc-rcs.el b/lisp/vc-rcs.el index ae4758169f4..a4b3b11301e 100644 --- a/lisp/vc-rcs.el +++ b/lisp/vc-rcs.el | |||
| @@ -666,6 +666,7 @@ Optional arg REVISION is a revision to annotate from." | |||
| 666 | " " | 666 | " " |
| 667 | (aref rda 0) | 667 | (aref rda 0) |
| 668 | ls) | 668 | ls) |
| 669 | :vc-annotate-prefix t | ||
| 669 | :vc-rcs-r/d/a rda))) | 670 | :vc-rcs-r/d/a rda))) |
| 670 | (maphash | 671 | (maphash |
| 671 | (if all-me | 672 | (if all-me |
| @@ -688,9 +689,9 @@ encoded as fractional days." | |||
| 688 | "Return the time of the next annotation (as fraction of days) | 689 | "Return the time of the next annotation (as fraction of days) |
| 689 | systime, or nil if there is none. Also, reposition point." | 690 | systime, or nil if there is none. Also, reposition point." |
| 690 | (unless (eobp) | 691 | (unless (eobp) |
| 691 | (search-forward ": ") | 692 | (prog1 (vc-annotate-convert-time |
| 692 | (vc-annotate-convert-time | 693 | (aref (get-text-property (point) :vc-rcs-r/d/a) 1)) |
| 693 | (aref (get-text-property (point) :vc-rcs-r/d/a) 1)))) | 694 | (goto-char (next-single-property-change (point) :vc-annotate-prefix))))) |
| 694 | 695 | ||
| 695 | (defun vc-rcs-annotate-extract-revision-at-line () | 696 | (defun vc-rcs-annotate-extract-revision-at-line () |
| 696 | (aref (get-text-property (point) :vc-rcs-r/d/a) 0)) | 697 | (aref (get-text-property (point) :vc-rcs-r/d/a) 0)) |
| @@ -907,7 +908,7 @@ Returns: nil if no headers were found | |||
| 907 | (vc-file-setprop file 'vc-state | 908 | (vc-file-setprop file 'vc-state |
| 908 | (cond | 909 | (cond |
| 909 | ((eq locking-user 'none) 'up-to-date) | 910 | ((eq locking-user 'none) 'up-to-date) |
| 910 | ((string= locking-user (vc-user-login-name file)) | 911 | ((string= locking-user (vc-user-login-name file)) |
| 911 | 'edited) | 912 | 'edited) |
| 912 | (t locking-user))) | 913 | (t locking-user))) |
| 913 | ;; If the file has headers, we don't want to query the | 914 | ;; If the file has headers, we don't want to query the |