diff options
| author | Richard M. Stallman | 2003-07-14 15:53:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-07-14 15:53:56 +0000 |
| commit | e598a60dc3f957b685eb26dbb83b4e544261e412 (patch) | |
| tree | 28b0a5130d494b8d705a996bd22b1ca4a8af1f4e | |
| parent | 14bd0b09da49c02ff59971d99b355c18efc2224c (diff) | |
| download | emacs-e598a60dc3f957b685eb26dbb83b4e544261e412.tar.gz emacs-e598a60dc3f957b685eb26dbb83b4e544261e412.zip | |
(Changing Files): copy-file allows dir as NEWNAME.
(Magic File Names): Specify precedence order of handlers.
| -rw-r--r-- | lispref/files.texi | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lispref/files.texi b/lispref/files.texi index 4082268cd83..c61c9ad11d2 100644 --- a/lispref/files.texi +++ b/lispref/files.texi | |||
| @@ -1276,7 +1276,9 @@ In an interactive call, this function prompts for @var{filename} and | |||
| 1276 | 1276 | ||
| 1277 | @deffn Command copy-file oldname newname &optional ok-if-exists time | 1277 | @deffn Command copy-file oldname newname &optional ok-if-exists time |
| 1278 | This command copies the file @var{oldname} to @var{newname}. An | 1278 | This command copies the file @var{oldname} to @var{newname}. An |
| 1279 | error is signaled if @var{oldname} does not exist. | 1279 | error is signaled if @var{oldname} does not exist. If @var{newname} |
| 1280 | names a directory, it copies @var{oldname} into that directory, | ||
| 1281 | preserving its final name component. | ||
| 1280 | 1282 | ||
| 1281 | If @var{time} is non-@code{nil}, then this function gives the new file | 1283 | If @var{time} is non-@code{nil}, then this function gives the new file |
| 1282 | the same last-modified time that the old one has. (This works on only | 1284 | the same last-modified time that the old one has. (This works on only |
| @@ -2295,6 +2297,11 @@ this: | |||
| 2295 | The @var{handler} then needs to figure out whether to handle | 2297 | The @var{handler} then needs to figure out whether to handle |
| 2296 | @var{filename} or @var{dirname}. | 2298 | @var{filename} or @var{dirname}. |
| 2297 | 2299 | ||
| 2300 | If the specified file name matches more than one handler, the one | ||
| 2301 | whose match starts last in the file name gets precedence. This rule | ||
| 2302 | is chosen so that handlers for jobs such as uncompression are handled | ||
| 2303 | first, before handlers for jobs such as remote file access. | ||
| 2304 | |||
| 2298 | Here are the operations that a magic file name handler gets to handle: | 2305 | Here are the operations that a magic file name handler gets to handle: |
| 2299 | 2306 | ||
| 2300 | @ifnottex | 2307 | @ifnottex |