aboutsummaryrefslogtreecommitdiffstats
path: root/java/org
diff options
context:
space:
mode:
authorSean Whitton2025-07-07 15:44:34 +0100
committerSean Whitton2025-07-07 15:44:34 +0100
commit6c0c985cee4e1ce4798a4ab192e8ca36013e7fa1 (patch)
tree8597f23b78dc36785f78fd7051f0a28868cca6ee /java/org
parentf85f3c30ddc986e6d6c6ae738cee578556cc0eac (diff)
downloademacs-6c0c985cee4e1ce4798a4ab192e8ca36013e7fa1.tar.gz
emacs-6c0c985cee4e1ce4798a4ab192e8ca36013e7fa1.zip
Resolve FIXME regarding running vc-checkin-hook
Running vc-checkin-hook needs to be delayed in the case of an async checkin. As a quick fix we had been relying on the backend checkin functions to run the hook in the async case. This restores handling running the hook in generic code even for the async case. * lisp/vc/vc.el (vc-checkin): Always pass vc-checkin-hook to vc-start-logentry. Return the result of calling the backend 'checkin-patch' or 'checkin' function to vc-finish-logentry. * lisp/vc/vc-dispatcher.el (vc-finish-logentry): If the log operation returns a cons of the form (async . #<process ...>), use vc-exec-after to delay vc-resynch-buffer and hooks until the async process completes. Approach suggested by Dmitry Gutov. * lisp/vc/vc-git.el (vc-git-checkin): * lisp/vc/vc-hg.el (vc-hg-checkin): For an async checkin, return a cons (async . #<process ...>) containing the async checkin process. No longer run vc-checkin-hook. * lisp/vc/vc.el (with-vc-properties): Return the result of evaluating FORM. * lisp/vc/vc-dispatcher.el (vc-exec-after): Change to PROC's buffer before calling vc-set-mode-line-busy-indicator.
Diffstat (limited to 'java/org')
0 files changed, 0 insertions, 0 deletions