aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2005-08-09 21:00:39 +0000
committerMichael Albinus2005-08-09 21:00:39 +0000
commit8012c83504abeb354f9d3a906975b384593d0499 (patch)
treeeb156c5fd5be0a1a35bb999e9b4e7d8034ff182a
parente8bf834340819430b8115729842b6380ac223d8d (diff)
downloademacs-8012c83504abeb354f9d3a906975b384593d0499.tar.gz
emacs-8012c83504abeb354f9d3a906975b384593d0499.zip
* lisp/net/ange-ftp.el (ange-ftp-send-cmd): Make it work properly with
uploading files. (ange-ftp-canonize-filename): Handle file names beginning with ~ correctly.
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/net/ange-ftp.el17
2 files changed, 22 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5ddf15cceda..278a66be229 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12005-08-09 Katsumi Yamaoka <yamaoka@jpl.org> (tiny change)
2
3 * net/ange-ftp.el (ange-ftp-send-cmd): Make it work properly with
4 uploading files.
5 (ange-ftp-canonize-filename): Handle file names beginning with ~
6 correctly.
7
12005-08-09 Juanma Barranquero <lekktu@gmail.com> 82005-08-09 Juanma Barranquero <lekktu@gmail.com>
2 9
3 * textmodes/fill.el (canonically-space-region) 10 * textmodes/fill.el (canonically-space-region)
@@ -23,7 +30,7 @@
232005-08-09 Magnus Henoch <mange@freemail.hu> 302005-08-09 Magnus Henoch <mange@freemail.hu>
24 31
25 * textmodes/ispell.el (ispell-find-aspell-dictionaries): New command. 32 * textmodes/ispell.el (ispell-find-aspell-dictionaries): New command.
26 (ispell-have-aspell-dictionaries): New variable. 33 (ispell-have-aspell-dictionaries): New variable.
27 (ispell-aspell-data-dir, ispell-aspell-dict-dir): New variables. 34 (ispell-aspell-data-dir, ispell-aspell-dict-dir): New variables.
28 (ispell-get-aspell-config-value): New function. 35 (ispell-get-aspell-config-value): New function.
29 (ispell-aspell-find-dictionary): New function. 36 (ispell-aspell-find-dictionary): New function.
@@ -31,7 +38,7 @@
31 (ispell-valid-dictionary-list): Call ispell-find-aspell-dictionaries if 38 (ispell-valid-dictionary-list): Call ispell-find-aspell-dictionaries if
32 appropriate. Don't look for ispell dictionaries if we use aspell. 39 appropriate. Don't look for ispell dictionaries if we use aspell.
33 (ispell-menu-map): Don't build a submenu of dictionaries. 40 (ispell-menu-map): Don't build a submenu of dictionaries.
34 41
352005-08-09 Richard M. Stallman <rms@gnu.org> 422005-08-09 Richard M. Stallman <rms@gnu.org>
36 43
37 * progmodes/sql.el (sql-interactive-mode-map): Use fboundp. 44 * progmodes/sql.el (sql-interactive-mode-map): Use fboundp.
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 59d24e4e591..d4b48323e4c 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -2328,8 +2328,13 @@ and NOWAIT."
2328 ;; We cd and then use `ls' with no directory argument. 2328 ;; We cd and then use `ls' with no directory argument.
2329 ;; This works around a misfeature of some versions of netbsd ftpd. 2329 ;; This works around a misfeature of some versions of netbsd ftpd.
2330 (unless (equal cmd1 ".") 2330 (unless (equal cmd1 ".")
2331 (setq result (ange-ftp-cd host user (nth 1 cmd) 'noerror))) 2331 (setq result (ange-ftp-cd host user
2332 (setq cmd1 cmd3))) 2332 ;; Make sure the target to which
2333 ;; `cd' is performed is a directory.
2334 (file-name-directory (nth 1 cmd))
2335 'noerror)))
2336 ;; Concatenate the switches and the target to be used with `ls'.
2337 (setq cmd1 (concat "\"" cmd3 " " cmd1 "\""))))
2333 2338
2334 ;; First argument is the remote name 2339 ;; First argument is the remote name
2335 ((progn 2340 ((progn
@@ -3122,8 +3127,12 @@ logged in as user USER and cd'd to directory DIR."
3122 (rest (substring name (match-end 0))) 3127 (rest (substring name (match-end 0)))
3123 (dir (ange-ftp-expand-dir host user tilda))) 3128 (dir (ange-ftp-expand-dir host user tilda)))
3124 (if dir 3129 (if dir
3125 (setq name (if (string-equal dir "/") 3130 (setq name (cond ((string-equal rest "")
3126 rest (concat dir rest))) 3131 dir)
3132 ((string-equal dir "/")
3133 rest)
3134 (t
3135 (concat dir rest))))
3127 (error "User \"%s\" is not known" 3136 (error "User \"%s\" is not known"
3128 (substring tilda 1))))) 3137 (substring tilda 1)))))
3129 3138