Function: tramp-rfn-eshadow-setup-minibuffer

tramp-rfn-eshadow-setup-minibuffer is a byte-compiled function defined in tramp-integration.el.gz.

Signature

(tramp-rfn-eshadow-setup-minibuffer)

Documentation

Set up a minibuffer for file-name-shadow-mode(var)/file-name-shadow-mode(fun).

Adds another overlay hiding filename parts according to Tramp's special handling of substitute-in-file-name.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-integration.el.gz
(defun tramp-rfn-eshadow-setup-minibuffer ()
  "Set up a minibuffer for `file-name-shadow-mode'.
Adds another overlay hiding filename parts according to Tramp's
special handling of `substitute-in-file-name'."
  (declare (tramp-suppress-trace t))
  (when minibuffer-completing-file-name
    (setq tramp-rfn-eshadow-overlay
	  (make-overlay (minibuffer-prompt-end) (minibuffer-prompt-end)))
    ;; Copy `rfn-eshadow-overlay' properties.
    (let ((props (overlay-properties rfn-eshadow-overlay)))
      (while props
        ;; The `field' property prevents correct minibuffer
        ;; completion; we exclude it.
        (if (not (eq (car props) 'field))
            (overlay-put tramp-rfn-eshadow-overlay (pop props) (pop props))
          (pop props) (pop props))))))