diff options
| author | Richard M. Stallman | 1994-03-30 02:14:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-03-30 02:14:11 +0000 |
| commit | 61446fe76ff516eb13ee79cdc3bd4966659fa100 (patch) | |
| tree | dafb9b64993dd22ac083dff3a345de1ed344b5f4 | |
| parent | 2fc9d9f46216e0aeb6a2c0a07c1ad740e4f2b31c (diff) | |
| download | emacs-61446fe76ff516eb13ee79cdc3bd4966659fa100.tar.gz emacs-61446fe76ff516eb13ee79cdc3bd4966659fa100.zip | |
(vc-checkin): Undo previous change.
| -rw-r--r-- | lisp/vc.el | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index b6a2731b522..7e7e6412139 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -605,15 +605,9 @@ The optional argument REV may be a string specifying the new version level | |||
| 605 | permissions zeroed, or deleted (according to the value of `vc-keep-workfiles'). | 605 | permissions zeroed, or deleted (according to the value of `vc-keep-workfiles'). |
| 606 | COMMENT is a comment string; if omitted, a buffer is | 606 | COMMENT is a comment string; if omitted, a buffer is |
| 607 | popped up to accept a comment." | 607 | popped up to accept a comment." |
| 608 | ;; If we will pop up a buffer to edit the comment, and we are in a buffer | 608 | (setq vc-log-after-operation-hook 'vc-checkin-hook) |
| 609 | ;; on the file being checked in, insert a default header into the comment | 609 | (vc-start-entry file rev comment |
| 610 | ;; buffer based on the defun point is currently in. | 610 | "Enter a change comment." 'vc-backend-checkin)) |
| 611 | (let ((defun (and (null comment) (string= file buffer-file-name) | ||
| 612 | (add-log-current-defun)))) | ||
| 613 | (setq vc-log-after-operation-hook 'vc-checkin-hook) | ||
| 614 | (prog1 (vc-start-entry file rev comment "Enter a change comment." | ||
| 615 | 'vc-backend-checkin) | ||
| 616 | (if defun (insert "(" defun "): "))))) | ||
| 617 | 611 | ||
| 618 | ;;; Here is a checkin hook that may prove useful to sites using the | 612 | ;;; Here is a checkin hook that may prove useful to sites using the |
| 619 | ;;; ChangeLog facility supported by Emacs. | 613 | ;;; ChangeLog facility supported by Emacs. |