Function: tramp-sudoedit-handle-file-name-all-completions

tramp-sudoedit-handle-file-name-all-completions is a byte-compiled function defined in tramp-sudoedit.el.gz.

Signature

(tramp-sudoedit-handle-file-name-all-completions FILENAME DIRECTORY)

Documentation

Like file-name-all-completions for Tramp files.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sudoedit.el.gz
(defun tramp-sudoedit-handle-file-name-all-completions (filename directory)
  "Like `file-name-all-completions' for Tramp files."
  (tramp-skeleton-file-name-all-completions filename directory
    (with-parsed-tramp-file-name (expand-file-name directory) nil
      (tramp-sudoedit-send-command
       v "ls" "-a1" "--quoting-style=literal" "--show-control-chars"
       (if (tramp-string-empty-or-nil-p localname)
	   "" (file-name-unquote localname)))
      (mapcar
       (lambda (l) (and (not (string-match-p (rx bol (* blank) eol) l)) l))
       (split-string
	(tramp-get-buffer-string (tramp-get-connection-buffer v))
	"\n" 'omit)))))