In Emacs, how can I determine which package loads the stroller?

I have a weird interaction with tramp and cygwin-mount (I think: Emacs: The file name completion tab adds an extra i: \ cygwin ). Because of this, I want to disable the tramp. I cannot find anything in my .emacs that explicitly loads tramp. I see "Loading tramp ..." when I click on a tab in the find mini-buffer of the file. I would like to find out which package causes the tramp to load and disable it. How can I do it? I tried searching (requires "tramp"), but did not find anything interesting. The only other option I can think of is to comment out fragments of my .emacs one by one and see which one works, but it is so rude, I would like a smarter (and simpler) way.

+7
emacs elisp tramp
source share
4 answers

What a wonderful question! If only due to the fact that I did not know about a function (the form of the file after the download is completed) that will allow you to write the code as follows and put it in the .emacs file:

(eval-after-load "tramp" '(debug)) 

Which will be in the form of brute force to tear the return line in your window and detect the violating library.

+18
source share

I think you will find that tramp is enabled by default. If you do:

 Mx customize-apropos Customize (regexp): tramp 

('Customize (regexp):' this is an invitation from emacs), you will see the two variables listed (at least I do in emacs 23), something like:

alt text

If you set the tramp mode to "off", save for future sessions and restart emacs. tramp will no longer load. I believe that you can simply disconnect it in the current session so that you can check it, but this does not always work with setting variables, although it should do something like tramp included in the standard emacs distribution.

I no longer have emacs 22, but something like this should work for this as well.

+3
source share

I had a similar problem with a tramp when one day I found "/C:\...\debuglog.txt" on my system. Because of this file, autocomplete caused a stroller every time I entered "/". And the tramp, of course, made a mistake. autofill caused

 (expand-file-name ...) 

which, due to the current alist-handler file, caused 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) 
+2
source share

The find-file tool for debugging and / or the tool of your initialization file for debugging. Then you can download and see where the material of the strollers is loaded.

+1
source share

All Articles