diff options
| author | Michael Albinus | 2013-02-10 11:07:09 +0100 |
|---|---|---|
| committer | Michael Albinus | 2013-02-10 11:07:09 +0100 |
| commit | e08e7d915475863b8f4aa535df09a1a677ae1bb0 (patch) | |
| tree | 624572112b67ad572af159856c5a2d4589a2eeb8 | |
| parent | c4af1efc91cb57cc7dbaa1ee21b2d4b85fd3f87b (diff) | |
| download | emacs-e08e7d915475863b8f4aa535df09a1a677ae1bb0.tar.gz emacs-e08e7d915475863b8f4aa535df09a1a677ae1bb0.zip | |
* net/ange-ftp.el (ange-ftp-make-directory): Don't raise an error,
if DIR exists and PARENTS is non-nil.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/ange-ftp.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4e1f0ee09ab..580f9ea26be 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-02-10 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/ange-ftp.el (ange-ftp-make-directory): Don't raise an error, | ||
| 4 | if DIR exists and PARENTS is non-nil. | ||
| 5 | |||
| 1 | 2013-02-09 Chong Yidong <cyd@gnu.org> | 6 | 2013-02-09 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * mail/emacsbug.el (report-emacs-bug): Change binding of | 8 | * mail/emacsbug.el (report-emacs-bug): Change binding of |
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index bf6afae45da..1d910386403 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -4087,7 +4087,8 @@ directory, so that Emacs will know its current contents." | |||
| 4087 | (or (file-exists-p parent) | 4087 | (or (file-exists-p parent) |
| 4088 | (ange-ftp-make-directory parent parents)))) | 4088 | (ange-ftp-make-directory parent parents)))) |
| 4089 | (if (file-exists-p dir) | 4089 | (if (file-exists-p dir) |
| 4090 | (error "Cannot make directory %s: file already exists" dir) | 4090 | (unless parents |
| 4091 | (error "Cannot make directory %s: file already exists" dir)) | ||
| 4091 | (let ((parsed (ange-ftp-ftp-name dir))) | 4092 | (let ((parsed (ange-ftp-ftp-name dir))) |
| 4092 | (if parsed | 4093 | (if parsed |
| 4093 | (let* ((host (nth 0 parsed)) | 4094 | (let* ((host (nth 0 parsed)) |