Hello,

The way declaring multiple hops in the file name is currently handled,
namely creating ad-hoc proxy and using un-proxified names interacts
badly with the list of recent files.  Recentf saves in the list the
un-proxified name, which because by default the proxy is ephemeral
and last only the lifetime of the Emacs session means that you
cannot use File / Open Recent to open file.

Steps to reproduce:
1. Use TRAMP to access file behind the gateway, for example
   /plink:[email protected]|ssh:[email protected]:~/.bashrc
2. See that Emacs uses un-proxified filename, e.g. with C-x C-w
   /ssh:[email protected]:/home/user/.bashrc
3. Just in case, save the list of opened files

Expected behavior:
1. I can open last accessed file from Recent Files list

Actual behavior:
1. Recent files stored /ssh:[email protected]:/home/user/.bashrc
   (un-proxified file name), which does not work without specifying
   gateway host as a proxy.

Workaround:
1. Add gateway to `tramp-default-proxies-alist` manually, or
2. Set `tramp-save-ad-hoc-proxies` custom option to true.


Emacs  : GNU Emacs 24.5.1 (x86_64-w64-mingw32)
 of 2015-05-16 on KAEL
Package: tramp (2.2.11-24.5)

current state:
==============
State could not be dumped due to the following error:

(error Multibyte character in data for base64 encoding)

You should still send this bug report.
local variables:
================
;; *tramp/ssh jnareb@teslabot*
(setq-local
 default-directory "/ssh:jnareb@teslabot:/"
 )

-- 
Jakub Narębski

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to