diff options
| author | Juri Linkov | 2020-04-14 02:24:51 +0300 |
|---|---|---|
| committer | Juri Linkov | 2020-04-14 02:24:51 +0300 |
| commit | 086faceb1c395d24487c20bcb32ca710291bee41 (patch) | |
| tree | 69e88b26ee151b2361cd4ccc5e6ba481f79d9577 | |
| parent | cdbb37f628aad1455af349d703c5838827bea8b3 (diff) | |
| download | emacs-086faceb1c395d24487c20bcb32ca710291bee41.tar.gz emacs-086faceb1c395d24487c20bcb32ca710291bee41.zip | |
* lisp/vc/vc.el (vc-deduce-fileset): Improve docstring (bug#34949).
| -rw-r--r-- | lisp/vc/vc.el | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index d4323d59eb3..c640ba0420e 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -1012,23 +1012,33 @@ Within directories, only files already under version control are noticed." | |||
| 1012 | allow-unregistered | 1012 | allow-unregistered |
| 1013 | state-model-only-files) | 1013 | state-model-only-files) |
| 1014 | "Deduce a set of files and a backend to which to apply an operation. | 1014 | "Deduce a set of files and a backend to which to apply an operation. |
| 1015 | Return (BACKEND FILESET FILESET-ONLY-FILES STATE CHECKOUT-MODEL). | 1015 | Return a list of the form: |
| 1016 | 1016 | ||
| 1017 | NOT-STATE-CHANGING if non-nil, means that the operation | 1017 | (BACKEND FILESET FILESET-ONLY-FILES STATE CHECKOUT-MODEL) |
| 1018 | requesting the fileset doesn't intend to change VC state, | ||
| 1019 | such as printing the log or showing the diff. | ||
| 1020 | 1018 | ||
| 1021 | If we're in VC-dir mode, FILESET is the list of marked files, | 1019 | where the last 3 members are optional, and must be present only if |
| 1022 | or the directory if no files are marked. | 1020 | STATE-MODEL-ONLY-FILES is non-nil. |
| 1023 | Otherwise, if in a buffer visiting a version-controlled file, | 1021 | |
| 1024 | FILESET is a single-file fileset containing that file. | 1022 | NOT-STATE-CHANGING, if non-nil, means that the operation |
| 1023 | requesting the fileset doesn't intend to change the VC state, | ||
| 1024 | such as when printing the log or showing the diffs. | ||
| 1025 | |||
| 1026 | If the current buffer is in `vc-dir' or Dired mode, FILESET is the | ||
| 1027 | list of marked files, or the current directory if no files are | ||
| 1028 | marked. | ||
| 1029 | Otherwise, if the current buffer is visiting a version-controlled | ||
| 1030 | file, FILESET is a single-file list containing that file's name. | ||
| 1025 | Otherwise, if ALLOW-UNREGISTERED is non-nil and the visited file | 1031 | Otherwise, if ALLOW-UNREGISTERED is non-nil and the visited file |
| 1026 | is unregistered, FILESET is a single-file fileset containing it. | 1032 | is unregistered, FILESET is a single-file list containing the |
| 1033 | name of the visited file. | ||
| 1027 | Otherwise, throw an error. | 1034 | Otherwise, throw an error. |
| 1028 | 1035 | ||
| 1029 | STATE-MODEL-ONLY-FILES if non-nil, means that the caller needs | 1036 | STATE-MODEL-ONLY-FILES, if non-nil, means that the caller needs |
| 1030 | the FILESET-ONLY-FILES STATE and MODEL info. Otherwise, that | 1037 | the FILESET-ONLY-FILES, STATE, and CHECKOUT-MODEL info, where |
| 1031 | part may be skipped. | 1038 | FILESET-ONLY-FILES means only files in similar VC states, |
| 1039 | possible values of STATE are explained in `vc-state', and MODEL in | ||
| 1040 | `vc-checkout-model'. Otherwise, these 3 members may be omitted from | ||
| 1041 | the returned list. | ||
| 1032 | 1042 | ||
| 1033 | BEWARE: this function may change the current buffer." | 1043 | BEWARE: this function may change the current buffer." |
| 1034 | (let (backend) | 1044 | (let (backend) |