comparison lisp/vc.el @ 4817:4c49473fbfd4

(vc-next-action) Fix (throw ... ) invocation to work with 19; this allows vc-next-action on all marked files in a dired buffer to work. (vc-finish-logentry) There isn't necessarily a *VC-log-entry* buffer to remove if this function was called from within a dired buffer. Fix its handling of this case.
author Eric S. Raymond <esr@snark.thyrsus.com>
date Mon, 04 Oct 1993 20:51:01 +0000
parents 3544f3a41ae6
children a964061ab350
comparison
equal deleted inserted replaced
4816:2a5085c32935 4817:4c49473fbfd4
449 (if (= (length files) 1) 449 (if (= (length files) 1)
450 (find-file-other-window (dired-get-filename)) 450 (find-file-other-window (dired-get-filename))
451 (vc-start-entry nil nil nil 451 (vc-start-entry nil nil nil
452 "Enter a change comment for the marked files." 452 "Enter a change comment for the marked files."
453 'vc-next-action-dired) 453 'vc-next-action-dired)
454 (throw 'nogo)))) 454 (throw 'nogo nil))))
455 (while vc-parent-buffer 455 (while vc-parent-buffer
456 (pop-to-buffer vc-parent-buffer)) 456 (pop-to-buffer vc-parent-buffer))
457 (if buffer-file-name 457 (if buffer-file-name
458 (vc-next-action-on-file buffer-file-name verbose) 458 (vc-next-action-on-file buffer-file-name verbose)
459 (vc-registration-error nil)))) 459 (vc-registration-error nil))))
651 vc-log-version 651 vc-log-version
652 (buffer-string))) 652 (buffer-string)))
653 (error "No log operation is pending")) 653 (error "No log operation is pending"))
654 ;; Return to "parent" buffer of this checkin and remove checkin window 654 ;; Return to "parent" buffer of this checkin and remove checkin window
655 (pop-to-buffer vc-parent-buffer) 655 (pop-to-buffer vc-parent-buffer)
656 (delete-windows-on (get-buffer "*VC-log*")) 656 (let ((logbuf (get-buffer "*VC-log*")))
657 (kill-buffer "*VC-log*") 657 (delete-windows-on logbuf)
658 (kill-buffer logbuf))
658 ;; Now make sure we see the expanded headers 659 ;; Now make sure we see the expanded headers
659 (if buffer-file-name 660 (if buffer-file-name
660 (vc-resynch-window buffer-file-name vc-keep-workfiles t)) 661 (vc-resynch-window buffer-file-name vc-keep-workfiles t))
661 (run-hooks vc-log-after-operation-hook)) 662 (run-hooks vc-log-after-operation-hook))
662 663