##// END OF EJS Templates
Emacs: kill commit buffer once it's done with.
Bryan O'Sullivan -
r1000:3362b410 default
parent child Browse files
Show More
@@ -610,7 +610,9 b' With a prefix argument, prompt for the p'
610
610
611 (defun hg-commit-abort ()
611 (defun hg-commit-abort ()
612 (interactive)
612 (interactive)
613 (error "not implemented"))
613 (let ((buf hg-prev-buffer))
614 (kill-buffer nil)
615 (switch-to-buffer buf)))
614
616
615 (defun hg-commit-finish ()
617 (defun hg-commit-finish ()
616 (interactive)
618 (interactive)
@@ -637,7 +639,10 b' With a prefix argument, prompt for the p'
637 (not hg-commit-allow-empty-file-list))
639 (not hg-commit-allow-empty-file-list))
638 (error "Cannot proceed - no files to commit"))
640 (error "Cannot proceed - no files to commit"))
639 (setq message (concat message "\n"))
641 (setq message (concat message "\n"))
640 (apply 'hg-run0 "--cwd" hg-root "commit" "-m" message files)))
642 (apply 'hg-run0 "--cwd" hg-root "commit" "-m" message files)
643 (let ((buf hg-prev-buffer))
644 (kill-buffer nil)
645 (switch-to-buffer buf))))
641
646
642 (defun hg-commit-mode ()
647 (defun hg-commit-mode ()
643 "Mode for describing a commit of changes to a Mercurial repository.
648 "Mode for describing a commit of changes to a Mercurial repository.
General Comments 0
You need to be logged in to leave comments. Login now