In Emacs, how do I figure out which package is loading tramp?

前端 未结 4 1944
我寻月下人不归
我寻月下人不归 2021-02-09 12:11

I have a strange interaction with tramp and cygwin-mount (I think: Emacs: Tab completion of file name appends an extra i:\\cygwin). Because of this, I want to disable tramp. I\'

4条回答
  •  孤城傲影
    2021-02-09 12:46

    I had a similar problem with tramp, when one day I found "/C:\...\debuglog.txt" on my system. Because of that file, auto-complete was invoking tramp each time I entered "/". And tramp was of course giving an error. auto-complete was calling

    (expand-file-name ...)
    

    which, because of the current file-name-handler-alist, was calling tramp. My solution was:

    (delete-if
     (lambda (x)
       (or (eq (cdr x) 'tramp-completion-file-name-handler)
           (eq (cdr x) 'tramp-file-name-handler)))
     file-name-handler-alist)
    

提交回复
热议问题