* lisp/shell.el (shell): Cease providing 'file-remote-p' as completion
predicate when reading remote shell file name. The completion predicate
in 'read-file-name' gets the non-directory part of the file name, which
in particular does not include the remote part, if any, so this
predicate always fail in these settings. Moreover, this predicate
didn't make a lot of sense to begin with.
(file-local-name
(expand-file-name
(read-file-name "Remote shell path: " default-directory
- shell-file-name t shell-file-name
- #'file-remote-p))))))))))
+ shell-file-name t shell-file-name))))))))))
(setq buffer (if (or buffer (not (derived-mode-p 'shell-mode))
(comint-check-proc (current-buffer)))