* net/tramp-sh.el (tramp-sh-handle-insert-directory): Check,
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 13 Mar 2013 11:38:13 +0000 (12:38 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 13 Mar 2013 11:38:13 +0000 (12:38 +0100)
whether `default-file-name-coding-system' is bound.  It isn't in
XEmacs.

lisp/ChangeLog
lisp/net/tramp-sh.el

index def4770..e0eb300 100644 (file)
@@ -1,3 +1,9 @@
+2013-03-13  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-sh.el (tramp-sh-handle-insert-directory): Check,
+       whether `default-file-name-coding-system' is bound.  It isn't in
+       XEmacs.
+
 2013-03-13  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/byte-run.el (defun-declarations-alist): Don't use
        (tramp-gvfs-mount-spec): Use it.
        (tramp-gvfs-maybe-open-connection): Check, that in case of "smb"
        there is a share name.  Handle different names of the D-Bus
-       signals and methods.
-       (tramp-gvfs-maybe-open-connection): Set connection properties
-       needed for `tramp-check-cached-permissions'.
+       signals and methods.  Set connection properties needed for
+       `tramp-check-cached-permissions'.
        (tramp-gvfs-send-command): Apply `tramp-gvfs-maybe-open-connection'.
        Return t or nil.
 
        * net/tramp.el (tramp-backtrace): Move up.
-       (tramp-error): Apply a backtrace into the debug buffer when
+       (tramp-error): Dump a backtrace into the debug buffer when
        `tramp-verbose > 9.
        (tramp-file-mode-type-map, tramp-file-mode-from-int)
        (tramp-file-mode-permissions, tramp-get-local-uid)
index e429d17..d20fd6b 100644 (file)
@@ -2568,7 +2568,9 @@ This is like `dired-recursive-delete-directory' for Tramp files."
        ;; Decode the output, it could be multibyte.
        (decode-coding-region
         beg (point-max)
-        (or file-name-coding-system default-file-name-coding-system))
+        (or file-name-coding-system
+            (and (boundp 'default-file-name-coding-system)
+                 (symbolp 'default-file-name-coding-system))))
 
        ;; The inserted file could be from somewhere else.
        (when (and (not wildcard) (not full-directory-p))