diff options
| author | Karl Heuer | 1997-02-27 01:21:24 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-02-27 01:21:24 +0000 |
| commit | 37667a5cd2979af92ef28e7b9c799da1c4c05fa6 (patch) | |
| tree | 2afb7ec11deef93124b0b145b69138c12a3f7b5c | |
| parent | 57647d099987d46e965c1ddb7b45297a5d162eaa (diff) | |
| download | emacs-37667a5cd2979af92ef28e7b9c799da1c4c05fa6.tar.gz emacs-37667a5cd2979af92ef28e7b9c799da1c4c05fa6.zip | |
(vc-log-mode): New optional arg FILE. Set vc-log-file here.
(vc-start-entry): Not here.
(vc-finish-logentry): Run vc-finish-logentry-hook.
| -rw-r--r-- | lisp/vc.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 8f85f887538..9bf87070165 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -864,12 +864,11 @@ merge in the changes into your working copy." | |||
| 864 | (set (make-local-variable 'vc-parent-buffer-name) | 864 | (set (make-local-variable 'vc-parent-buffer-name) |
| 865 | (concat " from " (buffer-name vc-parent-buffer))) | 865 | (concat " from " (buffer-name vc-parent-buffer))) |
| 866 | (if file (vc-mode-line file)) | 866 | (if file (vc-mode-line file)) |
| 867 | (vc-log-mode) | 867 | (vc-log-mode file) |
| 868 | (make-local-variable 'vc-log-after-operation-hook) | 868 | (make-local-variable 'vc-log-after-operation-hook) |
| 869 | (if after-hook | 869 | (if after-hook |
| 870 | (setq vc-log-after-operation-hook after-hook)) | 870 | (setq vc-log-after-operation-hook after-hook)) |
| 871 | (setq vc-log-operation action) | 871 | (setq vc-log-operation action) |
| 872 | (setq vc-log-file file) | ||
| 873 | (setq vc-log-version rev) | 872 | (setq vc-log-version rev) |
| 874 | (if comment | 873 | (if comment |
| 875 | (progn | 874 | (progn |
| @@ -1032,7 +1031,7 @@ If nil, uses `change-log-default-name'." | |||
| 1032 | ;; Now make sure we see the expanded headers | 1031 | ;; Now make sure we see the expanded headers |
| 1033 | (if buffer-file-name | 1032 | (if buffer-file-name |
| 1034 | (vc-resynch-window buffer-file-name vc-keep-workfiles t)) | 1033 | (vc-resynch-window buffer-file-name vc-keep-workfiles t)) |
| 1035 | (run-hooks after-hook))) | 1034 | (run-hooks after-hook 'vc-finish-logentry-hook))) |
| 1036 | 1035 | ||
| 1037 | ;; Code for access to the comment ring | 1036 | ;; Code for access to the comment ring |
| 1038 | 1037 | ||
| @@ -2334,7 +2333,7 @@ default directory." | |||
| 2334 | 2333 | ||
| 2335 | ;; Set up key bindings for use while editing log messages | 2334 | ;; Set up key bindings for use while editing log messages |
| 2336 | 2335 | ||
| 2337 | (defun vc-log-mode () | 2336 | (defun vc-log-mode (&optional file) |
| 2338 | "Minor mode for driving version-control tools. | 2337 | "Minor mode for driving version-control tools. |
| 2339 | These bindings are added to the global keymap when you enter this mode: | 2338 | These bindings are added to the global keymap when you enter this mode: |
| 2340 | \\[vc-next-action] perform next logical version-control operation on current file | 2339 | \\[vc-next-action] perform next logical version-control operation on current file |
| @@ -2399,6 +2398,7 @@ Global user options: | |||
| 2399 | (setq major-mode 'vc-log-mode) | 2398 | (setq major-mode 'vc-log-mode) |
| 2400 | (setq mode-name "VC-Log") | 2399 | (setq mode-name "VC-Log") |
| 2401 | (make-local-variable 'vc-log-file) | 2400 | (make-local-variable 'vc-log-file) |
| 2401 | (setq vc-log-file file) | ||
| 2402 | (make-local-variable 'vc-log-version) | 2402 | (make-local-variable 'vc-log-version) |
| 2403 | (make-local-variable 'vc-comment-ring-index) | 2403 | (make-local-variable 'vc-comment-ring-index) |
| 2404 | (set-buffer-modified-p nil) | 2404 | (set-buffer-modified-p nil) |