]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp.el (tramp-handle-insert-directory): Suppress error messages.
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 9 Dec 2009 10:23:00 +0000 (10:23 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 9 Dec 2009 10:23:00 +0000 (10:23 +0000)
lisp/ChangeLog
lisp/net/tramp.el

index bb86c82846d7213a05f43f251d0eaaf403aa31f9..c91f8786d2888918403e6dde1f1a7db4d52e5d79 100644 (file)
@@ -1,3 +1,7 @@
+2009-12-09  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-handle-insert-directory): Suppress error messages.
+
 2009-12-09  Dan Nicolaescu  <dann@ics.uci.edu>
 
        Fix short log parsing and fontification.
index d50b885955b9648cc62d8587fe99f48cfa8cec17..8bc010d29b22a9aa384bded4e3114f85ec37b5d7 100644 (file)
@@ -4077,7 +4077,7 @@ This is like `dired-recursive-delete-directory' for Tramp files."
       (if full-directory-p
          (tramp-send-command
           v
-          (format "%s %s %s"
+          (format "%s %s %s 2>/dev/null"
                   (tramp-get-ls-command v)
                   switches
                   (if wildcard
@@ -4126,13 +4126,13 @@ This is like `dired-recursive-delete-directory' for Tramp files."
                    (end (+ beg (read (current-buffer)))))
                (if (memq (char-after end) '(?\n ?\ ))
                    ;; End is followed by \n or by " -> ".
-                   (put-text-property start end 'dired-filename t)))))
-         ;; Remove trailing lines.
-         (goto-char (tramp-compat-line-beginning-position))
-         (while (looking-at "//")
-           (forward-line 1)
-           (delete-region (match-beginning 0) (point)))))
-      (goto-char (point-max)))))
+                   (put-text-property start end 'dired-filename t))))))
+       ;; Remove trailing lines.
+       (goto-char (tramp-compat-line-beginning-position))
+       (while (looking-at "//")
+         (forward-line 1)
+         (delete-region (match-beginning 0) (point)))
+       (goto-char (point-max))))))
 
 (defun tramp-handle-unhandled-file-name-directory (filename)
   "Like `unhandled-file-name-directory' for Tramp files."