aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2025-09-16 19:24:18 +0300
committerEli Zaretskii2025-09-16 19:24:18 +0300
commite568f44b54f5d265d540eb72d116dcb64394e087 (patch)
tree0af9d6d0f6a502adbe2b26edbcc409ab22e1ed8b
parent2c7b08d417e10ca3512c0d6bebc853955e08c94b (diff)
downloademacs-e568f44b54f5d265d540eb72d116dcb64394e087.tar.gz
emacs-e568f44b54f5d265d540eb72d116dcb64394e087.zip
; Improve recently-added documentation
* etc/NEWS: * lisp/vc/vc.el (vc-apply-root-to-other-working-tree): * doc/emacs/vc1-xtra.texi (Other Working Trees): Fix spelling and wording of documentation of recent changes to VC.
-rw-r--r--doc/emacs/vc1-xtra.texi9
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/vc/vc.el2
3 files changed, 10 insertions, 5 deletions
diff --git a/doc/emacs/vc1-xtra.texi b/doc/emacs/vc1-xtra.texi
index 15b7a73e5d7..1a7d65937c0 100644
--- a/doc/emacs/vc1-xtra.texi
+++ b/doc/emacs/vc1-xtra.texi
@@ -400,7 +400,7 @@ branch there.
400You apply the patch to that working tree using @w{@kbd{C-x v w a}} (see 400You apply the patch to that working tree using @w{@kbd{C-x v w a}} (see
401below), build and test it. Satisfied, you use @w{@kbd{C-x v P}} 401below), build and test it. Satisfied, you use @w{@kbd{C-x v P}}
402(@pxref{Pulling / Pushing}) in the other working tree. In the course of 402(@pxref{Pulling / Pushing}) in the other working tree. In the course of
403testing the patch, you've realised that the bug exists in version 3 of 403testing the patch, you've realized that the bug exists in version 3 of
404the software, too. So you switch back to your first working tree, and 404the software, too. So you switch back to your first working tree, and
405use @kbd{C-x v m} (@pxref{Merging}) to merge the branch you have checked 405use @kbd{C-x v m} (@pxref{Merging}) to merge the branch you have checked
406out in the other working tree. Now your version of the trunk has all of 406out in the other working tree. Now your version of the trunk has all of
@@ -509,13 +509,14 @@ working tree as a whole, independent project.
509@kindex C-x v w a 509@kindex C-x v w a
510@findex vc-apply-to-other-working-tree 510@findex vc-apply-to-other-working-tree
511The command @kbd{C-x v w a} (@code{vc-apply-to-other-working-tree}) 511The command @kbd{C-x v w a} (@code{vc-apply-to-other-working-tree})
512prompts you to select a working tree, then copies changes from the 512prompts you to select another working tree, then copies changes from the
513current working tree to that other working tree. With a prefix 513current working tree to that other working tree. With a prefix
514argument, it moves changes instead of just copying them. Usually the 514argument, it moves changes instead of just copying them. Usually the
515command operates on local (uncommitted) changes to the current VC 515command operates on local (uncommitted) changes to the current VC
516fileset. When invoked in a Diff mode (@pxref{Diff Mode}) buffer, it 516fileset. When invoked in a buffer under Diff mode (@pxref{Diff Mode}), it
517operates on the changes specified by the contents of that buffer. The 517operates on the changes specified by the contents of that buffer. The
518command stops and does nothing if any of the changes don't apply. 518command stops and does nothing if any of the changes don't apply to the
519target working tree.
519 520
520@kbd{C-x v w a} is useful to copy changes to a temporary working tree in 521@kbd{C-x v w a} is useful to copy changes to a temporary working tree in
521order to test them. It is also useful to copy fixes back to your main 522order to test them. It is also useful to copy fixes back to your main
diff --git a/etc/NEWS b/etc/NEWS
index 736874c1a0a..62755a433cc 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2077,6 +2077,10 @@ other working trees:
2077- 'C-x v w x': Delete a working tree you no longer need. 2077- 'C-x v w x': Delete a working tree you no longer need.
2078- 'C-x v w R': Relocate a working tree to another file name. 2078- 'C-x v w R': Relocate a working tree to another file name.
2079 2079
2080The new user option 'vc-no-confirm-moving-changes' controls whether
2081'C-x v w a' and 'C-x v w A' ask for confirmation when moving changes
2082between working trees. The default is to ask for confirmation.
2083
2080In addition, Lisp programs that extend VC can invoke the new backend 2084In addition, Lisp programs that extend VC can invoke the new backend
2081functions to obtain a list of other working trees, and to add, remove 2085functions to obtain a list of other working trees, and to add, remove
2082and relocate them. 2086and relocate them.
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 07b9ea8b951..ce950b18caf 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -4701,7 +4701,7 @@ tree, it is an error, and no changes are moved."
4701 4701
4702;;;###autoload 4702;;;###autoload
4703(defun vc-apply-root-to-other-working-tree (directory &optional move preview) 4703(defun vc-apply-root-to-other-working-tree (directory &optional move preview)
4704 "Apply all local changes to this working tree to the one under DIRECTORY. 4704 "Apply all local changes in this working tree to the tree under DIRECTORY.
4705Must be called from within an existing VC working tree. 4705Must be called from within an existing VC working tree.
4706When called interactively, prompts for DIRECTORY. 4706When called interactively, prompts for DIRECTORY.
4707With a prefix argument (when called from Lisp, with optional argument 4707With a prefix argument (when called from Lisp, with optional argument