diff options
| author | Roland McGrath | 1993-04-05 23:52:16 +0000 |
|---|---|---|
| committer | Roland McGrath | 1993-04-05 23:52:16 +0000 |
| commit | 594be62efdff149ca16308e763bcf747b934d21f (patch) | |
| tree | b11fed11204758af8acb00a1e04e44387f67914a | |
| parent | 45a13f0da338254460e6b0875ae7578b4446b5bb (diff) | |
| download | emacs-594be62efdff149ca16308e763bcf747b934d21f.tar.gz emacs-594be62efdff149ca16308e763bcf747b934d21f.zip | |
(vc-comment-to-change-log): Renamed from vc-comment-to-changelog.
Take optional arg and pass it to find-change-log.
Added docstring and interactive spec.
| -rw-r--r-- | lisp/vc.el | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 62ac86890ff..9718df311b4 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> | 5 | ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> |
| 6 | ;; Version: 5.3 | 6 | ;; Version: 5.3 |
| 7 | 7 | ||
| 8 | ;; $Id: vc.el,v 1.29 1993/03/28 06:40:46 eric Exp eric $ | 8 | ;; $Id: vc.el,v 1.30 1993/03/29 15:38:31 eric Exp roland $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -42,7 +42,7 @@ | |||
| 42 | ;; to be installed somewhere on Emacs's path for executables. | 42 | ;; to be installed somewhere on Emacs's path for executables. |
| 43 | ;; | 43 | ;; |
| 44 | ;; If your site uses the ChangeLog convention supported by Emacs, the | 44 | ;; If your site uses the ChangeLog convention supported by Emacs, the |
| 45 | ;; function vc-comment-to-changelog should prove a useful checkin hook. | 45 | ;; function vc-comment-to-change-log should prove a useful checkin hook. |
| 46 | ;; | 46 | ;; |
| 47 | ;; This code depends on call-process passing back the subprocess exit | 47 | ;; This code depends on call-process passing back the subprocess exit |
| 48 | ;; status. Thus, you need Emacs 18.58 or later to run it. | 48 | ;; status. Thus, you need Emacs 18.58 or later to run it. |
| @@ -480,8 +480,13 @@ popped up to accept a comment." | |||
| 480 | 480 | ||
| 481 | ;;; Here is a checkin hook that may prove useful to sites using the | 481 | ;;; Here is a checkin hook that may prove useful to sites using the |
| 482 | ;;; ChangeLog facility supported by Emacs. | 482 | ;;; ChangeLog facility supported by Emacs. |
| 483 | (defun vc-comment-to-changelog () | 483 | (defun vc-comment-to-change-log (&optional file) |
| 484 | (let ((log (find-change-log))) | 484 | "\ |
| 485 | Update change log from comments entered into VC for the currently visited file. | ||
| 486 | Optional arg specifies the change log file name; see `find-change-log'. | ||
| 487 | See `vc-update-change-log'." | ||
| 488 | (interactive) | ||
| 489 | (let ((log (find-change-log file))) | ||
| 485 | (if log | 490 | (if log |
| 486 | (let ((default-directory (or (file-name-directory log) | 491 | (let ((default-directory (or (file-name-directory log) |
| 487 | default-directory))) | 492 | default-directory))) |
| @@ -904,7 +909,7 @@ From a program, any arguments are passed to the `rcs2log' script." | |||
| 904 | (goto-char (point-min)) | 909 | (goto-char (point-min)) |
| 905 | (push-mark) | 910 | (push-mark) |
| 906 | (message "Computing change log entries...") | 911 | (message "Computing change log entries...") |
| 907 | (message "Computing change log entries... %s" | 912 | (message "Computing change log entries...%s" |
| 908 | (if (eq 0 (apply 'call-process "rcs2log" nil t nil args)) | 913 | (if (eq 0 (apply 'call-process "rcs2log" nil t nil args)) |
| 909 | "done" "failed"))) | 914 | "done" "failed"))) |
| 910 | 915 | ||