diff options
| author | Eli Zaretskii | 2025-09-16 19:24:18 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-09-16 19:24:18 +0300 |
| commit | e568f44b54f5d265d540eb72d116dcb64394e087 (patch) | |
| tree | 0af9d6d0f6a502adbe2b26edbcc409ab22e1ed8b | |
| parent | 2c7b08d417e10ca3512c0d6bebc853955e08c94b (diff) | |
| download | emacs-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.texi | 9 | ||||
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 2 |
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. | |||
| 400 | You apply the patch to that working tree using @w{@kbd{C-x v w a}} (see | 400 | You apply the patch to that working tree using @w{@kbd{C-x v w a}} (see |
| 401 | below), build and test it. Satisfied, you use @w{@kbd{C-x v P}} | 401 | below), 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 |
| 403 | testing the patch, you've realised that the bug exists in version 3 of | 403 | testing the patch, you've realized that the bug exists in version 3 of |
| 404 | the software, too. So you switch back to your first working tree, and | 404 | the software, too. So you switch back to your first working tree, and |
| 405 | use @kbd{C-x v m} (@pxref{Merging}) to merge the branch you have checked | 405 | use @kbd{C-x v m} (@pxref{Merging}) to merge the branch you have checked |
| 406 | out in the other working tree. Now your version of the trunk has all of | 406 | out 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 |
| 511 | The command @kbd{C-x v w a} (@code{vc-apply-to-other-working-tree}) | 511 | The command @kbd{C-x v w a} (@code{vc-apply-to-other-working-tree}) |
| 512 | prompts you to select a working tree, then copies changes from the | 512 | prompts you to select another working tree, then copies changes from the |
| 513 | current working tree to that other working tree. With a prefix | 513 | current working tree to that other working tree. With a prefix |
| 514 | argument, it moves changes instead of just copying them. Usually the | 514 | argument, it moves changes instead of just copying them. Usually the |
| 515 | command operates on local (uncommitted) changes to the current VC | 515 | command operates on local (uncommitted) changes to the current VC |
| 516 | fileset. When invoked in a Diff mode (@pxref{Diff Mode}) buffer, it | 516 | fileset. When invoked in a buffer under Diff mode (@pxref{Diff Mode}), it |
| 517 | operates on the changes specified by the contents of that buffer. The | 517 | operates on the changes specified by the contents of that buffer. The |
| 518 | command stops and does nothing if any of the changes don't apply. | 518 | command stops and does nothing if any of the changes don't apply to the |
| 519 | target 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 |
| 521 | order to test them. It is also useful to copy fixes back to your main | 522 | order to test them. It is also useful to copy fixes back to your main |
| @@ -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 | ||
| 2080 | The 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 | ||
| 2082 | between working trees. The default is to ask for confirmation. | ||
| 2083 | |||
| 2080 | In addition, Lisp programs that extend VC can invoke the new backend | 2084 | In addition, Lisp programs that extend VC can invoke the new backend |
| 2081 | functions to obtain a list of other working trees, and to add, remove | 2085 | functions to obtain a list of other working trees, and to add, remove |
| 2082 | and relocate them. | 2086 | and 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. |
| 4705 | Must be called from within an existing VC working tree. | 4705 | Must be called from within an existing VC working tree. |
| 4706 | When called interactively, prompts for DIRECTORY. | 4706 | When called interactively, prompts for DIRECTORY. |
| 4707 | With a prefix argument (when called from Lisp, with optional argument | 4707 | With a prefix argument (when called from Lisp, with optional argument |