aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2003-07-14 15:53:56 +0000
committerRichard M. Stallman2003-07-14 15:53:56 +0000
commite598a60dc3f957b685eb26dbb83b4e544261e412 (patch)
tree28b0a5130d494b8d705a996bd22b1ca4a8af1f4e
parent14bd0b09da49c02ff59971d99b355c18efc2224c (diff)
downloademacs-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.texi9
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
1278This command copies the file @var{oldname} to @var{newname}. An 1278This command copies the file @var{oldname} to @var{newname}. An
1279error is signaled if @var{oldname} does not exist. 1279error is signaled if @var{oldname} does not exist. If @var{newname}
1280names a directory, it copies @var{oldname} into that directory,
1281preserving its final name component.
1280 1282
1281If @var{time} is non-@code{nil}, then this function gives the new file 1283If @var{time} is non-@code{nil}, then this function gives the new file
1282the same last-modified time that the old one has. (This works on only 1284the same last-modified time that the old one has. (This works on only
@@ -2295,6 +2297,11 @@ this:
2295The @var{handler} then needs to figure out whether to handle 2297The @var{handler} then needs to figure out whether to handle
2296@var{filename} or @var{dirname}. 2298@var{filename} or @var{dirname}.
2297 2299
2300If the specified file name matches more than one handler, the one
2301whose match starts last in the file name gets precedence. This rule
2302is chosen so that handlers for jobs such as uncompression are handled
2303first, before handlers for jobs such as remote file access.
2304
2298Here are the operations that a magic file name handler gets to handle: 2305Here are the operations that a magic file name handler gets to handle:
2299 2306
2300@ifnottex 2307@ifnottex