comparison lisp/net/ange-ftp.el @ 91961:93cf29ed1d24

* net/ange-ftp.el (ange-ftp-quote-string): Return the null string when the argument is nil.
author Michael Albinus <michael.albinus@gmx.de>
date Tue, 19 Feb 2008 19:22:28 +0000
parents c1e1558393ba
children f991f10f15ec
comparison
equal deleted inserted replaced
91960:81890a88d53d 91961:93cf29ed1d24
1525 "Quote any characters in STRING that may confuse the ftp process." 1525 "Quote any characters in STRING that may confuse the ftp process."
1526 ;; This is said to be wrong; ftp is said to need quoting only for ", 1526 ;; This is said to be wrong; ftp is said to need quoting only for ",
1527 ;; and that by doubling it. But experiment says UNIX-style kind of 1527 ;; and that by doubling it. But experiment says UNIX-style kind of
1528 ;; quoting is correct when talking to ftp on GNU/Linux systems, and 1528 ;; quoting is correct when talking to ftp on GNU/Linux systems, and
1529 ;; W32-style kind of quoting on, yes, W32 systems. 1529 ;; W32-style kind of quoting on, yes, W32 systems.
1530 (when (stringp string) (shell-quote-argument string))) 1530 (if (stringp string)
1531 (shell-quote-argument string)
1532 ""))
1531 1533
1532 (defun ange-ftp-barf-if-not-directory (directory) 1534 (defun ange-ftp-barf-if-not-directory (directory)
1533 (or (file-directory-p directory) 1535 (or (file-directory-p directory)
1534 (signal 'file-error 1536 (signal 'file-error
1535 (list "Opening directory" 1537 (list "Opening directory"