diff options
| author | Michael Albinus | 2009-12-26 20:04:43 +0000 |
|---|---|---|
| committer | Michael Albinus | 2009-12-26 20:04:43 +0000 |
| commit | 7f4d4a978d1c7357177494cb8297873f28bd73b1 (patch) | |
| tree | ddb733f3b02a084e274cc6d85caf73a39c880f55 /lisp | |
| parent | 2d20eee3179ef18a29a371bd3539e9df3392c8c7 (diff) | |
| download | emacs-7f4d4a978d1c7357177494cb8297873f28bd73b1.tar.gz emacs-7f4d4a978d1c7357177494cb8297873f28bd73b1.zip | |
* net/tramp.el (tramp-handle-insert-directory): Quote "'" in the
switches. Check also for //SUBDIRED// line.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c5b6c6a82f0..5783c211812 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-12-26 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-handle-insert-directory): Quote "'" in the | ||
| 4 | switches. Check also for //SUBDIRED// line. | ||
| 5 | |||
| 1 | 2009-12-23 Vinicius Jose Latorre <viniciusjl@ig.com.br> | 6 | 2009-12-23 Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 2 | 7 | ||
| 3 | * ps-print.el (ps-face-attributes): It was not returning the | 8 | * ps-print.el (ps-face-attributes): It was not returning the |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 8a5d1f8c413..017a55821af 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -38,7 +38,7 @@ | |||
| 38 | ;; | 38 | ;; |
| 39 | ;; This package only works for Emacs 21.1 and higher, and for XEmacs 21.4 | 39 | ;; This package only works for Emacs 21.1 and higher, and for XEmacs 21.4 |
| 40 | ;; and higher. For XEmacs 21, you need the package `fsf-compat' for | 40 | ;; and higher. For XEmacs 21, you need the package `fsf-compat' for |
| 41 | ;; the `with-timeout' macro.) | 41 | ;; the `with-timeout' macro. |
| 42 | ;; | 42 | ;; |
| 43 | ;; Also see the todo list at the bottom of this file. | 43 | ;; Also see the todo list at the bottom of this file. |
| 44 | ;; | 44 | ;; |
| @@ -4079,6 +4079,8 @@ This is like `dired-recursive-delete-directory' for Tramp files." | |||
| 4079 | (setq switches (concat "-d " switches))) | 4079 | (setq switches (concat "-d " switches))) |
| 4080 | (when wildcard | 4080 | (when wildcard |
| 4081 | (setq switches (concat switches " " wildcard))) | 4081 | (setq switches (concat switches " " wildcard))) |
| 4082 | (when (string-match "'" switches) | ||
| 4083 | (setq switches (replace-match "\\\\'" nil nil switches))) | ||
| 4082 | ;; If `full-directory-p', we just say `ls -l FILENAME'. | 4084 | ;; If `full-directory-p', we just say `ls -l FILENAME'. |
| 4083 | ;; Else we chdir to the parent directory, then say `ls -ld BASENAME'. | 4085 | ;; Else we chdir to the parent directory, then say `ls -ld BASENAME'. |
| 4084 | (if full-directory-p | 4086 | (if full-directory-p |
| @@ -4121,6 +4123,8 @@ This is like `dired-recursive-delete-directory' for Tramp files." | |||
| 4121 | 4123 | ||
| 4122 | ;; Check for "--dired" output. | 4124 | ;; Check for "--dired" output. |
| 4123 | (forward-line -2) | 4125 | (forward-line -2) |
| 4126 | (when (looking-at "//SUBDIRED//") | ||
| 4127 | (forward-line -1)) | ||
| 4124 | (when (looking-at "//DIRED//") | 4128 | (when (looking-at "//DIRED//") |
| 4125 | (let ((end (tramp-compat-line-end-position)) | 4129 | (let ((end (tramp-compat-line-end-position)) |
| 4126 | (linebeg (point))) | 4130 | (linebeg (point))) |