Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e4b3f22f
Commit
e4b3f22f
authored
May 27, 2006
by
Chong Yidong
Browse files
* files.texi (Changing Files): Document updated argument list for
copy-file.
parent
9c2d888b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
lispref/ChangeLog
lispref/ChangeLog
+5
-0
lispref/files.texi
lispref/files.texi
+10
-8
No files found.
lispref/ChangeLog
View file @
e4b3f22f
2006
-
05
-
27
Chong
Yidong
<
cyd
@
stupidchicken
.
com
>
*
files
.
texi
(
Changing
Files
):
Document
updated
argument
list
for
copy
-
file
.
2006
-
05
-
27
Thien
-
Thi
Nguyen
<
ttn
@
gnu
.
org
>
*
processes
.
texi
(
Bindat
Functions
):
Explain
term
"total length"
.
...
...
lispref/files.texi
View file @
e4b3f22f
...
...
@@ -1431,7 +1431,7 @@ with @code{add-name-to-file} and then deleting @var{filename} has the
same effect as renaming, aside from momentary intermediate states.
@end deffn
@deffn Command copy-file oldname newname &optional ok-if-exists time
mustbenew
@deffn Command copy-file oldname newname &optional ok-if-exists time
preserve-uid-gid
This command copies the file @var{oldname} to @var{newname}. An
error is signaled if @var{oldname} does not exist. If @var{newname}
names a directory, it copies @var{oldname} into that directory,
...
...
@@ -1440,16 +1440,18 @@ preserving its final name component.
If @var{time} is non-@code{nil}, then this function gives the new file
the same last-modified time that the old one has. (This works on only
some operating systems.) If setting the time gets an error,
@code{copy-file} signals a @code{file-date-error} error.
@code{copy-file} signals a @code{file-date-error} error. In an
interactive call, a prefix argument specifies a non-@code{nil} value
for @var{time}.
This function copies the file modes, too.
I
n an interactive call, a prefix argument specifies a non-@code{nil}
value for @var{time}.
The argument @var{mustbenew} controls whether an existing file can b
e
overwritten. It works like the similarly-named argument of
@code{write-region} (@pxref{Writing to Files, mustbenew})
.
I
f argument @var{preserve-uid-gid} is @code{nil}, we let the operating
system decide the user and group ownership of the new file (this is
usually set to the user running Emacs). If @var{preserve-uid-gid} is
non-@code{nil}, we attempt to copy the user and group ownership of th
e
file. This works only on some operating systems, and only if you have
the correct permissions to do so
.
@end deffn
@deffn Command make-symbolic-link filename newname &optional ok-if-exists
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment