diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-09-24 15:17:23 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-09-24 15:19:03 +0200 |
commit | 8dacd8cd914fdbe0f6f17ca57915611d48e9124d (patch) | |
tree | 287c2bf8dd3d837962cbf09e0281be76a4454943 /lisp/obsolete/vc-arch.el | |
parent | 3ce322efef3c57b83d0f243c6f0d4f560d50fe7a (diff) | |
download | emacs-8dacd8cd914fdbe0f6f17ca57915611d48e9124d.tar.gz |
Add a new command vc-pull-and-push
* lisp/vc/vc-svn.el (vc-exec-after):
* lisp/vc/vc-hg.el (vc-exec-after):
* lisp/vc/vc-git.el (vc-exec-after):
* lisp/vc/vc-cvs.el (vc-exec-after):
* lisp/vc/vc-bzr.el (vc-exec-after):
* lisp/org/org-macro.el (vc-exec-after):
* lisp/obsolete/vc-mtn.el (vc-exec-after):
* lisp/obsolete/vc-arch.el (vc-exec-after): Update declaration.
* lisp/vc/vc-dispatcher.el (vc--process-sentinel): Allow running
code only on success.
(vc-exec-after): Ditto.
(vc--inhibit-change-window-start): New variable.
(vc-do-async-command): Use it to allow chaining commands without
moving window point. Return the process instead of the buffer,
since the process may have exited already, and then we can't get
at the process.
* lisp/vc/vc-git.el (vc-git--pushpull): Return the process object.
(vc-git-pull-and-push): New function.
* lisp/vc/vc.el (vc-pull-and-push): New command (bug#51964).
Diffstat (limited to 'lisp/obsolete/vc-arch.el')
-rw-r--r-- | lisp/obsolete/vc-arch.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/obsolete/vc-arch.el b/lisp/obsolete/vc-arch.el index 537d65c6587..20835a09d00 100644 --- a/lisp/obsolete/vc-arch.el +++ b/lisp/obsolete/vc-arch.el @@ -311,7 +311,7 @@ Only the value `maybe' can be trusted :-(." ;; dir-status-files called from vc-dir, which loads vc, ;; which loads vc-dispatcher. -(declare-function vc-exec-after "vc-dispatcher" (code)) +(declare-function vc-exec-after "vc-dispatcher" (code &optional success)) (defun vc-arch-dir-status-files (dir _files callback) "Run `tla inventory' for DIR and pass results to CALLBACK. |