Mercurial > emacs
comparison man/files.texi @ 29107:203ba1f77b7b
*** empty log message ***
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 23 May 2000 11:12:04 +0000 |
parents | 678e1643ac82 |
children | f973bf66d321 |
comparison
equal
deleted
inserted
replaced
29106:a0dc7fa92f5d | 29107:203ba1f77b7b |
---|---|
96 first slash in the double slash; the result is @samp{/x1/rms/foo}. | 96 first slash in the double slash; the result is @samp{/x1/rms/foo}. |
97 @xref{Minibuffer File}. | 97 @xref{Minibuffer File}. |
98 | 98 |
99 @samp{$} in a file name is used to substitute environment variables. | 99 @samp{$} in a file name is used to substitute environment variables. |
100 For example, if you have used the shell command @samp{export | 100 For example, if you have used the shell command @samp{export |
101 FOO=rms/hacks} to set up an environment variable named @code{FOO}, then | 101 FOO=rms/hacks} to set up an environment variable named @env{FOO}, then |
102 you can use @file{/u/$FOO/test.c} or @file{/u/$@{FOO@}/test.c} as an | 102 you can use @file{/u/$FOO/test.c} or @file{/u/$@{FOO@}/test.c} as an |
103 abbreviation for @file{/u/rms/hacks/test.c}. The environment variable | 103 abbreviation for @file{/u/rms/hacks/test.c}. The environment variable |
104 name consists of all the alphanumeric characters after the @samp{$}; | 104 name consists of all the alphanumeric characters after the @samp{$}; |
105 alternatively, it may be enclosed in braces after the @samp{$}. Note | 105 alternatively, it may be enclosed in braces after the @samp{$}. Note |
106 that shell commands to set environment variables affect Emacs only if | 106 that shell commands to set environment variables affect Emacs only if |
541 You can set @code{version-control} locally in an individual buffer to | 541 You can set @code{version-control} locally in an individual buffer to |
542 control the making of backups for that buffer's file. For example, | 542 control the making of backups for that buffer's file. For example, |
543 Rmail mode locally sets @code{version-control} to @code{never} to make sure | 543 Rmail mode locally sets @code{version-control} to @code{never} to make sure |
544 that there is only one backup for an Rmail file. @xref{Locals}. | 544 that there is only one backup for an Rmail file. @xref{Locals}. |
545 | 545 |
546 @cindex @code{VERSION_CONTROL} environment variable | 546 @cindex @env{VERSION_CONTROL} environment variable |
547 If you set the environment variable @code{VERSION_CONTROL}, to tell | 547 If you set the environment variable @env{VERSION_CONTROL}, to tell |
548 various GNU utilities what to do with backup files, Emacs also obeys the | 548 various GNU utilities what to do with backup files, Emacs also obeys the |
549 environment variable by setting the Lisp variable @code{version-control} | 549 environment variable by setting the Lisp variable @code{version-control} |
550 accordingly at startup. If the environment variable's value is @samp{t} | 550 accordingly at startup. If the environment variable's value is @samp{t} |
551 or @samp{numbered}, then @code{version-control} becomes @code{t}; if the | 551 or @samp{numbered}, then @code{version-control} becomes @code{t}; if the |
552 value is @samp{nil} or @samp{existing}, then @code{version-control} | 552 value is @samp{nil} or @samp{existing}, then @code{version-control} |
2077 Under CVS, the default is not to use locking; anyone can change a work | 2077 Under CVS, the default is not to use locking; anyone can change a work |
2078 file at any time. However, there are ways to restrict this, resulting | 2078 file at any time. However, there are ways to restrict this, resulting |
2079 in behavior that resembles locking. | 2079 in behavior that resembles locking. |
2080 | 2080 |
2081 @cindex CVSREAD environment variable (CVS) | 2081 @cindex CVSREAD environment variable (CVS) |
2082 For one thing, you can set the @code{CVSREAD} environment variable to | 2082 For one thing, you can set the @env{CVSREAD} environment variable to |
2083 an arbitrary value. If this variable is defined, CVS makes your work | 2083 an arbitrary value. If this variable is defined, CVS makes your work |
2084 files read-only by default. In Emacs, you must type @kbd{C-x C-q} to | 2084 files read-only by default. In Emacs, you must type @kbd{C-x C-q} to |
2085 make the file writeable, so that editing works in fact similar as if | 2085 make the file writeable, so that editing works in fact similar as if |
2086 locking was used. Note however, that no actual locking is performed, so | 2086 locking was used. Note however, that no actual locking is performed, so |
2087 several users can make their files writeable at the same time. When | 2087 several users can make their files writeable at the same time. When |
2088 setting @code{CVSREAD} for the first time, make sure to check out all | 2088 setting @env{CVSREAD} for the first time, make sure to check out all |
2089 your modules anew, so that the file protections are set correctly. | 2089 your modules anew, so that the file protections are set correctly. |
2090 | 2090 |
2091 @cindex cvs watch feature | 2091 @cindex cvs watch feature |
2092 @cindex watching files (CVS) | 2092 @cindex watching files (CVS) |
2093 Another way to achieve something similar to locking is to use the | 2093 Another way to achieve something similar to locking is to use the |