aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-09-13 21:21:40 +0000
committerChong Yidong2009-09-13 21:21:40 +0000
commit120812a0ba503879347d81d8ea367f90a394a7e7 (patch)
treec48099f67987673573939368a74c59db02952c37
parent1fc26e29ba1383a2daeb5321ed03d04bc1a7669b (diff)
downloademacs-120812a0ba503879347d81d8ea367f90a394a7e7.tar.gz
emacs-120812a0ba503879347d81d8ea367f90a394a7e7.zip
* url-handlers.el (url-copy-file): Add fifth arg for compatibility
with 2005-06-25 change to copy-file (Bug#4410).
-rw-r--r--lisp/url/ChangeLog5
-rw-r--r--lisp/url/url-handlers.el4
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index fa6ce1945b1..7b38fb7ed11 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,8 @@
12009-09-13 Chong Yidong <cyd@stupidchicken.com>
2
3 * url-handlers.el (url-copy-file): Add fifth arg for compatibility
4 with 2005-06-25 change to copy-file (Bug#4410).
5
12009-09-13 Glenn Morris <rgm@gnu.org> 62009-09-13 Glenn Morris <rgm@gnu.org>
2 7
3 * url-file.el (url-file): Avoid assignment to free variable `filename'. 8 * url-file.el (url-file): Avoid assignment to free variable `filename'.
diff --git a/lisp/url/url-handlers.el b/lisp/url/url-handlers.el
index c06e841b2c8..2cf88e8f202 100644
--- a/lisp/url/url-handlers.el
+++ b/lisp/url/url-handlers.el
@@ -215,7 +215,8 @@ the arguments that would have been passed to OPERATION."
215 215
216;; The actual implementation 216;; The actual implementation
217;;;###autoload 217;;;###autoload
218(defun url-copy-file (url newname &optional ok-if-already-exists keep-time) 218(defun url-copy-file (url newname &optional ok-if-already-exists
219 keep-time preserve-uid-gid)
219 "Copy URL to NEWNAME. Both args must be strings. 220 "Copy URL to NEWNAME. Both args must be strings.
220Signals a `file-already-exists' error if file NEWNAME already exists, 221Signals a `file-already-exists' error if file NEWNAME already exists,
221unless a third argument OK-IF-ALREADY-EXISTS is supplied and non-nil. 222unless 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.
223This is what happens in interactive use with M-x. 224This is what happens in interactive use with M-x.
224Fourth arg KEEP-TIME non-nil means give the new file the same 225Fourth arg KEEP-TIME non-nil means give the new file the same
225last-modified time as the old one. (This works on only some systems.) 226last-modified time as the old one. (This works on only some systems.)
227Fifth arg PRESERVE-UID-GID is ignored.
226A prefix arg makes KEEP-TIME non-nil." 228A prefix arg makes KEEP-TIME non-nil."
227 (if (and (file-exists-p newname) 229 (if (and (file-exists-p newname)
228 (not ok-if-already-exists)) 230 (not ok-if-already-exists))