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
bffcee0a
Commit
bffcee0a
authored
Dec 23, 2011
by
Michael Albinus
Browse files
* net/ange-ftp.el (ange-ftp-copy-file-internal): Check for
existence of source file. (Bug#10325)
parent
9022ae07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/net/ange-ftp.el
lisp/net/ange-ftp.el
+4
-0
No files found.
lisp/ChangeLog
View file @
bffcee0a
2011-12-23 Michael Albinus <michael.albinus@gmx.de>
* net/ange-ftp.el (ange-ftp-copy-file-internal): Check for
existence of source file. (Bug#10325)
2011-12-23 Alan Mackenzie <acm@muc.de>
Fix unstable fontification inside templates.
...
...
lisp/net/ange-ftp.el
View file @
bffcee0a
...
...
@@ -3637,6 +3637,10 @@ so return the size on the remote host exactly. See RFC 3659."
(
setq
filename
(
expand-file-name
filename
)
newname
(
expand-file-name
newname
))
(
or
(
file-exists-p
filename
)
(
signal
'file-error
(
list
"Copy file"
"no such file or directory"
filename
)))
;; canonicalize newname if a directory.
(
if
(
file-directory-p
newname
)
(
setq
newname
(
expand-file-name
(
file-name-nondirectory
filename
)
newname
)))
...
...
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