contrib/mq.el
changeset 4427 b59611e9dd64
parent 4426 807c7b99ff13
child 4428 fa51e66117b4
--- a/contrib/mq.el
+++ b/contrib/mq.el
@@ -36,6 +36,11 @@
   :type 'sexp
   :group 'mercurial)
 
+(defcustom mq-edit-finish-hook nil
+  "Hook run before a patch description is finished up with."
+  :type 'sexp
+  :group 'mercurial)
+
 
 ;;; Internal variables.
 
@@ -237,6 +242,7 @@ This would become the active patch if po
   (unless (equal (mq-patch-info "qtop") mq-top)
     (error "Topmost patch has changed!"))
   (hg-sync-buffers hg-root)
+  (run-hooks 'mq-edit-finish-hook)
   (mq-refresh-internal hg-root "-m" (buffer-substring (point-min) (point-max)))
   (let ((buf mq-prev-buffer))
     (kill-buffer nil)