mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-15 04:51:24 +00:00
Merge branch 'master' of /Volumes/HD2/build/emacs-git-ssh
This commit is contained in:
commit
1e2ed2687a
1 changed files with 5 additions and 2 deletions
|
|
@ -649,7 +649,8 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored."
|
|||
(directory &optional full match nosort)
|
||||
"Like `directory-files' for Tramp files."
|
||||
(let ((result (mapcar 'directory-file-name
|
||||
(file-name-all-completions "" directory))))
|
||||
(file-name-all-completions "" directory)))
|
||||
res)
|
||||
;; Discriminate with regexp.
|
||||
(when match
|
||||
(setq result
|
||||
|
|
@ -664,7 +665,9 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored."
|
|||
result)))
|
||||
;; Sort them if necessary.
|
||||
(unless nosort (setq result (sort result 'string-lessp)))
|
||||
(delete-dups result)))
|
||||
;; Remove double entries.
|
||||
(dolist (elt result res)
|
||||
(add-to-list 'res elt 'append))))
|
||||
|
||||
(defun tramp-smb-handle-expand-file-name (name &optional dir)
|
||||
"Like `expand-file-name' for Tramp files."
|
||||
|
|
|
|||
Loading…
Reference in a new issue