aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1999-03-13 05:04:24 +0000
committerKarl Heuer1999-03-13 05:04:24 +0000
commit2c4eea90f8917aa374e1ce0a217badc767742118 (patch)
tree228ee1beda6953e048c88b19ded7e98e06dd5315
parent70e0041366321c49823ae1508f3e4ade3f672553 (diff)
downloademacs-2c4eea90f8917aa374e1ce0a217badc767742118.tar.gz
emacs-2c4eea90f8917aa374e1ce0a217badc767742118.zip
(vc-delete-logbuf-window): New var.
(vc-finish-logentry): Use it.
-rw-r--r--lisp/vc.el23
1 files changed, 17 insertions, 6 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index f22e2544aed..91a12255483 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;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de> 6;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de>
7 7
8;; $Id: vc.el,v 1.242 1999/01/02 21:54:32 rms Exp spiegel $ 8;; $Id: vc.el,v 1.243 1999/01/22 16:28:12 spiegel Exp kwzh $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -107,6 +107,14 @@ If FORM3 is `RCS', use FORM2 for CVS as well as RCS.
107 :type 'boolean 107 :type 'boolean
108 :group 'vc) 108 :group 'vc)
109 109
110(defcustom vc-delete-logbuf-window t
111 "*If non-nil, delete the *VC-log* buffer and window after each logical action.
112If nil, bury that buffer instead.
113This is most useful if you have multiple windows on a frame and would like to
114preserve the setting."
115 :type 'boolean
116 :group 'vc)
117
110(defcustom vc-initial-comment nil 118(defcustom vc-initial-comment nil
111 "*If non-nil, prompt for initial comment when a file is registered." 119 "*If non-nil, prompt for initial comment when a file is registered."
112 :type 'boolean 120 :type 'boolean
@@ -1242,7 +1250,6 @@ May be useful as a `vc-checkin-hook' to update change logs automatically."
1242 (or (eobp) (looking-at "\n\n") 1250 (or (eobp) (looking-at "\n\n")
1243 (insert "\n")))) 1251 (insert "\n"))))
1244 1252
1245
1246(defun vc-finish-logentry (&optional nocomment) 1253(defun vc-finish-logentry (&optional nocomment)
1247 "Complete the operation implied by the current log entry." 1254 "Complete the operation implied by the current log entry."
1248 (interactive) 1255 (interactive)
@@ -1266,7 +1273,8 @@ May be useful as a `vc-checkin-hook' to update change logs automatically."
1266 (log-file vc-log-file) 1273 (log-file vc-log-file)
1267 (log-version vc-log-version) 1274 (log-version vc-log-version)
1268 (log-entry (buffer-string)) 1275 (log-entry (buffer-string))
1269 (after-hook vc-log-after-operation-hook)) 1276 (after-hook vc-log-after-operation-hook)
1277 (tmp-vc-parent-buffer vc-parent-buffer))
1270 (pop-to-buffer vc-parent-buffer) 1278 (pop-to-buffer vc-parent-buffer)
1271 ;; OK, do it to it 1279 ;; OK, do it to it
1272 (save-excursion 1280 (save-excursion
@@ -1277,10 +1285,13 @@ May be useful as a `vc-checkin-hook' to update change logs automatically."
1277 ;; Remove checkin window (after the checkin so that if that fails 1285 ;; Remove checkin window (after the checkin so that if that fails
1278 ;; we don't zap the *VC-log* buffer and the typing therein). 1286 ;; we don't zap the *VC-log* buffer and the typing therein).
1279 (let ((logbuf (get-buffer "*VC-log*"))) 1287 (let ((logbuf (get-buffer "*VC-log*")))
1280 (cond (logbuf 1288 (cond ((and logbuf vc-delete-logbuf-window)
1281 (delete-windows-on logbuf (selected-frame)) 1289 (delete-windows-on logbuf (selected-frame))
1282 ;; Kill buffer and delete any other dedicated windows/frames. 1290 ;; Kill buffer and delete any other dedicated windows/frames.
1283 (kill-buffer logbuf)))) 1291 (kill-buffer logbuf))
1292 (t (pop-to-buffer "*VC-log*")
1293 (bury-buffer)
1294 (pop-to-buffer tmp-vc-parent-buffer))))
1284 ;; Now make sure we see the expanded headers 1295 ;; Now make sure we see the expanded headers
1285 (if buffer-file-name 1296 (if buffer-file-name
1286 (vc-resynch-window buffer-file-name vc-keep-workfiles t)) 1297 (vc-resynch-window buffer-file-name vc-keep-workfiles t))