diff options
| author | Xue Fuqiao | 2013-06-02 19:40:20 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-06-02 19:40:20 +0800 |
| commit | fe054b631715c00872fcda7c02f9483aec026916 (patch) | |
| tree | b3c3de0a1db08bc8a8c629a72402d6041a0e460d | |
| parent | 51b60f531ae3dee6454054c3c280e69db2084dad (diff) | |
| download | emacs-fe054b631715c00872fcda7c02f9483aec026916.tar.gz emacs-fe054b631715c00872fcda7c02f9483aec026916.zip | |
* vc/log-view.el: Doc fix.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/vc/log-view.el | 12 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 70e421286db..e37abcaf081 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | 2013-06-02 Xue Fuqiao <xfq.free@gmail.com> | 1 | 2013-06-02 Xue Fuqiao <xfq.free@gmail.com> |
| 2 | 2 | ||
| 3 | * vc/log-view.el: Header fix. | 3 | * vc/log-view.el: Doc fix. |
| 4 | 4 | ||
| 5 | 2013-06-02 Tassilo Horn <tsdh@gnu.org> | 5 | 2013-06-02 Tassilo Horn <tsdh@gnu.org> |
| 6 | 6 | ||
diff --git a/lisp/vc/log-view.el b/lisp/vc/log-view.el index 7475a4d7404..2c9a2c59cdd 100644 --- a/lisp/vc/log-view.el +++ b/lisp/vc/log-view.el | |||
| @@ -117,7 +117,7 @@ | |||
| 117 | (defvar cvs-force-command) | 117 | (defvar cvs-force-command) |
| 118 | 118 | ||
| 119 | (defgroup log-view nil | 119 | (defgroup log-view nil |
| 120 | "Major mode for browsing log output of RCS/CVS/SCCS." | 120 | "Major mode for browsing log output of revision log histories." |
| 121 | :group 'pcl-cvs | 121 | :group 'pcl-cvs |
| 122 | :prefix "log-view-") | 122 | :prefix "log-view-") |
| 123 | 123 | ||
| @@ -275,6 +275,7 @@ The match group number 1 should match the revision number itself.") | |||
| 275 | (easy-mmode-define-navigation log-view-file log-view-file-re "file") | 275 | (easy-mmode-define-navigation log-view-file log-view-file-re "file") |
| 276 | 276 | ||
| 277 | (defun log-view-goto-rev (rev) | 277 | (defun log-view-goto-rev (rev) |
| 278 | "Go to revision REV." | ||
| 278 | (goto-char (point-min)) | 279 | (goto-char (point-min)) |
| 279 | (ignore-errors | 280 | (ignore-errors |
| 280 | (while (not (equal rev (log-view-current-tag))) | 281 | (while (not (equal rev (log-view-current-tag))) |
| @@ -288,6 +289,7 @@ The match group number 1 should match the revision number itself.") | |||
| 288 | (defconst log-view-dir-re "^cvs[.ex]* [a-z]+: Logging \\(.+\\)$") | 289 | (defconst log-view-dir-re "^cvs[.ex]* [a-z]+: Logging \\(.+\\)$") |
| 289 | 290 | ||
| 290 | (defun log-view-current-file () | 291 | (defun log-view-current-file () |
| 292 | "Return the current file." | ||
| 291 | (save-excursion | 293 | (save-excursion |
| 292 | (forward-line 1) | 294 | (forward-line 1) |
| 293 | (or (re-search-backward log-view-file-re nil t) | 295 | (or (re-search-backward log-view-file-re nil t) |
| @@ -340,7 +342,7 @@ if POS is omitted or nil, it defaults to point." | |||
| 340 | 342 | ||
| 341 | (defun log-view-toggle-mark-entry () | 343 | (defun log-view-toggle-mark-entry () |
| 342 | "Toggle the marked state for the log entry at point. | 344 | "Toggle the marked state for the log entry at point. |
| 343 | Individual log entries can be marked and unmarked. The marked | 345 | Individual log entries can be marked and unmarked. The marked |
| 344 | entries are denoted by changing their background color. | 346 | entries are denoted by changing their background color. |
| 345 | `log-view-get-marked' returns the list of tags for the marked | 347 | `log-view-get-marked' returns the list of tags for the marked |
| 346 | log entries." | 348 | log entries." |
| @@ -479,7 +481,8 @@ It assumes that a log entry starts with a line matching | |||
| 479 | (funcall f)))) | 481 | (funcall f)))) |
| 480 | 482 | ||
| 481 | (defun log-view-find-revision (pos) | 483 | (defun log-view-find-revision (pos) |
| 482 | "Visit the version at point." | 484 | "Visit the version at POS. |
| 485 | If called interactively, visit the version at point." | ||
| 483 | (interactive "d") | 486 | (interactive "d") |
| 484 | (unless log-view-per-file-logs | 487 | (unless log-view-per-file-logs |
| 485 | (when (> (length log-view-vc-fileset) 1) | 488 | (when (> (length log-view-vc-fileset) 1) |
| @@ -521,7 +524,8 @@ It assumes that a log entry starts with a line matching | |||
| 521 | (log-view-extract-comment))) | 524 | (log-view-extract-comment))) |
| 522 | 525 | ||
| 523 | (defun log-view-annotate-version (pos) | 526 | (defun log-view-annotate-version (pos) |
| 524 | "Annotate the version at point." | 527 | "Annotate the version at POS. |
| 528 | If called interactively, annotate the version at point." | ||
| 525 | (interactive "d") | 529 | (interactive "d") |
| 526 | (unless log-view-per-file-logs | 530 | (unless log-view-per-file-logs |
| 527 | (when (> (length log-view-vc-fileset) 1) | 531 | (when (> (length log-view-vc-fileset) 1) |