在Emacs中,如何知道哪个包装正在加载流浪汉? [英] In Emacs, how do I figure out which package is loading tramp?

查看:173
本文介绍了在Emacs中,如何知道哪个包装正在加载流浪汉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的互动与流氓和cygwin-mount(我想: Emacs:文件名的Tab完成附加一个额外的i:\cygwin )。因此,我想禁用流浪汉。我无法在我的.emacs中找到任何明确加载tramp的内容。当我在查找文件minibuffer中打标签时,我可以看到加载流氓...。我想知道什么包导致加载流氓并禁用它。我该怎么做呢?我试图搜索(需要流浪汉,但找不到有趣的东西。我可以想到的唯一其他选择是逐一评论我的.emacs的一些,看看哪一个有效 - 但是这是非常强大的,我想要一个聪明(更容易)的方式。 p>

解决方案

有什么好问题!如果只是因为我没有察觉到函数(eval-after-load文件格式),这将使您能够编写如下代码,并将其放在.emacs文件中:



$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $
$ b

以暴力的形式,你会在你的窗口中呕吐一个回溯,并揭示违规图书馆。


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'm unable to find anything in my .emacs which is loading tramp explicitly. I can see "Loading tramp..." when I hit a tab in the find-file minibuffer. I'd like to figure out what package is causing the loading of tramp and disable that. How do I go about doing this? I tried searching for (require 'tramp) but couldn't find anything interesting. The only other option I can think of is to comment out bits of my .emacs one-by-one and see which one works - but this is so brute-force, I'd like a cleverer (and easier) way.

解决方案

What a great question! If only because I was not aware of the function (eval-after-load file form) which will enable you to write code like the following and put it in your .emacs file:

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

Which will, in brute force form, vomit a backtrace in your window and reveal the offending library.

这篇关于在Emacs中,如何知道哪个包装正在加载流浪汉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆