diff options
| author | Karl Heuer | 1998-01-18 03:27:05 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-01-18 03:27:05 +0000 |
| commit | df1e7b91207aa141d7c1ddc0dad8ac342cd46065 (patch) | |
| tree | d2700a860048371165c5a98f2ff365a3893deebb | |
| parent | 798f4b0a3ec77e980677351b3d4a03fac49e08a9 (diff) | |
| download | emacs-df1e7b91207aa141d7c1ddc0dad8ac342cd46065.tar.gz emacs-df1e7b91207aa141d7c1ddc0dad8ac342cd46065.zip | |
(vc-finish-logentry): Move killing the log buffer after
the operation in case that fails.
| -rw-r--r-- | lisp/vc.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index a5f0295e14f..0f85e31b1e7 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1182,17 +1182,18 @@ If nil, uses `change-log-default-name'." | |||
| 1182 | (log-version vc-log-version) | 1182 | (log-version vc-log-version) |
| 1183 | (log-entry (buffer-string)) | 1183 | (log-entry (buffer-string)) |
| 1184 | (after-hook vc-log-after-operation-hook)) | 1184 | (after-hook vc-log-after-operation-hook)) |
| 1185 | ;; Return to "parent" buffer of this checkin and remove checkin window | ||
| 1186 | (pop-to-buffer vc-parent-buffer) | 1185 | (pop-to-buffer vc-parent-buffer) |
| 1187 | (let ((logbuf (get-buffer "*VC-log*"))) | ||
| 1188 | (delete-windows-on logbuf) | ||
| 1189 | (kill-buffer logbuf)) | ||
| 1190 | ;; OK, do it to it | 1186 | ;; OK, do it to it |
| 1191 | (save-excursion | 1187 | (save-excursion |
| 1192 | (funcall log-operation | 1188 | (funcall log-operation |
| 1193 | log-file | 1189 | log-file |
| 1194 | log-version | 1190 | log-version |
| 1195 | log-entry)) | 1191 | log-entry)) |
| 1192 | ;; Remove checkin window (after the checkin so that if that fails | ||
| 1193 | ;; we don't zap the *VC-log* buffer and the typing therein). | ||
| 1194 | (let ((logbuf (get-buffer "*VC-log*"))) | ||
| 1195 | (delete-windows-on logbuf) | ||
| 1196 | (kill-buffer logbuf)) | ||
| 1196 | ;; Now make sure we see the expanded headers | 1197 | ;; Now make sure we see the expanded headers |
| 1197 | (if buffer-file-name | 1198 | (if buffer-file-name |
| 1198 | (vc-resynch-window buffer-file-name vc-keep-workfiles t)) | 1199 | (vc-resynch-window buffer-file-name vc-keep-workfiles t)) |