]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix remote shell file name selection
authorEshel Yaron <me@eshelyaron.com>
Sun, 4 Feb 2024 12:57:06 +0000 (13:57 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 4 Feb 2024 14:02:57 +0000 (15:02 +0100)
* 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.

lisp/shell.el

index c5cfbd985ed8e3fa91e8d1b987701bf96b3e37a7..b02f5f117a979539aed0ad3e37b15b7566c31c7d 100644 (file)
@@ -905,8 +905,7 @@ Make the shell buffer the current buffer, and return it.
             (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)))