From: Michael Albinus Date: Mon, 16 Oct 2017 09:35:02 +0000 (+0200) Subject: Fix error in tramp-smb-handle-insert-directory X-Git-Tag: emacs-26.0.91~541 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=16e85456e7;p=emacs.git Fix error in tramp-smb-handle-insert-directory * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory): Insert size information only when FULL-DIRECTORY-P is non-nil. --- diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index 620c93828da..f35c10b58ab 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el @@ -1073,10 +1073,11 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." entries)) ;; Insert size information. - (insert - (if avail - (format "total used in directory %s available %s\n" used avail) - (format "total %s\n" used))) + (when full-directory-p + (insert + (if avail + (format "total used in directory %s available %s\n" used avail) + (format "total %s\n" used)))) ;; Print entries. (mapc