[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[BUG] Declaring multiple hops in the file name and recentf
From: |
Jakub Narębski |
Subject: |
[BUG] Declaring multiple hops in the file name and recentf |
Date: |
Wed, 2 Sep 2015 15:51:08 +0200 |
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:address@hidden|ssh:address@hidden:~/.bashrc
2. See that Emacs uses un-proxified filename, e.g. with C-x C-w
/ssh:address@hidden:/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:address@hidden:/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 address@hidden
(setq-local
default-directory "/ssh:address@hidden:/"
)
--
Jakub Narębski
- [BUG] Declaring multiple hops in the file name and recentf,
Jakub Narębski <=