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
120812a0
Commit
120812a0
authored
Sep 13, 2009
by
Chong Yidong
Browse files
* url-handlers.el (url-copy-file): Add fifth arg for compatibility
with 2005-06-25 change to copy-file (Bug#4410).
parent
1fc26e29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
lisp/url/ChangeLog
lisp/url/ChangeLog
+5
-0
lisp/url/url-handlers.el
lisp/url/url-handlers.el
+3
-1
No files found.
lisp/url/ChangeLog
View file @
120812a0
2009-09-13 Chong Yidong <cyd@stupidchicken.com>
* url-handlers.el (url-copy-file): Add fifth arg for compatibility
with 2005-06-25 change to copy-file (Bug#4410).
2009-09-13 Glenn Morris <rgm@gnu.org>
* url-file.el (url-file): Avoid assignment to free variable `filename'.
...
...
lisp/url/url-handlers.el
View file @
120812a0
...
...
@@ -215,7 +215,8 @@ the arguments that would have been passed to OPERATION."
;; The actual implementation
;;;###autoload
(
defun
url-copy-file
(
url
newname
&optional
ok-if-already-exists
keep-time
)
(
defun
url-copy-file
(
url
newname
&optional
ok-if-already-exists
keep-time
preserve-uid-gid
)
"Copy URL to NEWNAME. Both args must be strings.
Signals a `file-already-exists' error if file NEWNAME already exists,
unless a third argument OK-IF-ALREADY-EXISTS is supplied and non-nil.
...
...
@@ -223,6 +224,7 @@ A number as third arg means request confirmation if NEWNAME already exists.
This is what happens in interactive use with M-x.
Fourth arg KEEP-TIME non-nil means give the new file the same
last-modified time as the old one. (This works on only some systems.)
Fifth arg PRESERVE-UID-GID is ignored.
A prefix arg makes KEEP-TIME non-nil."
(
if
(
and
(
file-exists-p
newname
)
(
not
ok-if-already-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