Subject: 24.0.50; tramp-handle-substitute-in-file-name is missing?
From: Katsumi Yamaoka <[email-masked]>
To: [email-masked]
Date: Mon, 04 Oct 2010 11:52:59 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

If I have `(setq tramp-default-method "ftp")' in my ~/.emacs file
ftp doesn't work.  You can reproduce this as follows:

$ emacs -Q -eval '(setq tramp-default-method "ftp")'

And try to perform dired as: `C-x d /USER@localhost:~/'

Debugger entered--Lisp error: (void-function tramp-handle-substitute-in-file-name)
  signal(void-function (tramp-handle-substitute-in-file-name))
  byte-code(...
  tramp-file-name-handler(substitute-in-file-name "/yamaoka@localhost:~/")
  substitute-in-file-name("/yamaoka@localhost:~/")
  read-file-name("Dired (directory): " nil "~/" nil)
  dired-read-dir-and-switches("")
  call-interactively(dired nil nil)

Loading tramp-sh manually solves this problem.