[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change Tramp syntax

From: Michael Albinus
Subject: Re: Change Tramp syntax
Date: Tue, 14 Mar 2017 10:06:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

Hi Eli,

>> > I have a directory ~/data.  Is it expected that typing "C-x C-f ~/dat TAB"
>> > should load Tramp?  If that's expected, why is Tramp interested in
>> > completions of such file names?
>> Tramp shouldn't be interested. "~" is in the way. I wrote "/foo".
> Sorry, I don't think I understand what you meant.  Does this mean you
> think loading Tramp in the above case is unexpected, and will look
> into this?  Or does this mean the presence of "~" somehow explains why
> Tramp is loaded upon completion?  In the latter case, could you please
> elaborate?

I meant that Tramp shall not be loaded in that case. I tried to
reproduce, starting emacs -Q, being in ~/, and typing "C-x C-f d a <TAB>".

And indeed, Tramp is loaded. Backtrace:

--8<---------------cut here---------------start------------->8---
  tramp-completion-file-name-handler(file-name-completion "da" 
"/home/albinmic/" file-exists-p)
  file-name-completion("da" "~/" file-exists-p)
  completion-file-name-table("~/da" file-exists-p nil)
  try-completion("~/da" completion-file-name-table file-exists-p)
--8<---------------cut here---------------end--------------->8---

Neither "da" nor "/home/albinmic/" shall trigger this. I'll check.

> Thanks.

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]