aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Engdegård2020-02-28 17:02:00 +0100
committerMattias Engdegård2020-02-28 17:03:00 +0100
commit4dec693f703464bab68ec751f341927c5489d592 (patch)
treeb9f13da930c3a5fcac1939e2c2eb62fd7066a9d7
parent696ee02c3a40cf0e19f963cfaf8004ca42f7e897 (diff)
downloademacs-4dec693f703464bab68ec751f341927c5489d592.tar.gz
emacs-4dec693f703464bab68ec751f341927c5489d592.zip
* lisp/vc/vc-cvs.el (vc-cvs-ignore): Copy-edit doc string
-rw-r--r--lisp/vc/vc-cvs.el21
1 files changed, 11 insertions, 10 deletions
diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el
index b6afda69198..e8231ecb289 100644
--- a/lisp/vc/vc-cvs.el
+++ b/lisp/vc/vc-cvs.el
@@ -1222,23 +1222,24 @@ is non-nil."
1222 1222
1223(defun vc-cvs-ignore (file &optional directory _remove) 1223(defun vc-cvs-ignore (file &optional directory _remove)
1224 "Ignore FILE under CVS. 1224 "Ignore FILE under CVS.
1225FILE is either absolute or relative to DIRECTORY. The basename 1225FILE is either absolute or relative to DIRECTORY. The non-directory
1226of FILE is written unmodified into the ignore file and is 1226part of FILE is written unmodified into the ignore file and is
1227therefore evaluated by CVS as an ignore pattern which follows 1227therefore evaluated by CVS as an ignore pattern which follows
1228glob(7) syntax. If the pattern should match any of the special 1228glob(7) syntax. If the pattern should match any of the special
1229characters ?*[\\\’ literally, they must be escaped with a 1229characters `?*[\\' literally, they must be escaped with a
1230backslash. 1230backslash.
1231 1231
1232CVS processes one ignore file for each subdirectory. Patterns 1232CVS processes one ignore file for each subdirectory. Patterns
1233are separated by whitespace and only match files in the same 1233are separated by whitespace and only match files in the same
1234directory. Since FILE can be a relative filename with leading 1234directory. Since FILE can be a relative filename with leading
1235diretories, FILE is expanded against DIRECTORY to determine the 1235directories, FILE is expanded against DIRECTORY to determine the
1236correct absolute filename. The directory name of this path is 1236correct absolute filename. The directory part of the resulting name
1237then used to determine the location of the ignore file. The base 1237is then used to determine the location of the ignore file. The
1238name of this path is used as pattern for the ignore file. 1238non-directory part of the name is used as pattern for the ignore file.
1239 1239
1240Since patterns are whitespace sparated, it is usually better to 1240Since patterns are whitespace-separated, filenames containing spaces
1241replace spaces in filenames with question marks ‘?’." 1241cannot be represented directly. A work-around is to replace such
1242spaces with question marks."
1242 (setq file (directory-file-name (expand-file-name file directory))) 1243 (setq file (directory-file-name (expand-file-name file directory)))
1243 (vc-cvs-append-to-ignore (file-name-directory file) (file-name-nondirectory file))) 1244 (vc-cvs-append-to-ignore (file-name-directory file) (file-name-nondirectory file)))
1244 1245