Emacs开始令人难以置信的长久 [英] Emacs takes unbelievably long to start

查看:224
本文介绍了Emacs开始令人难以置信的长久的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天,我:q 'd Vim尝试Emacs一段时间。我已经开始使用Elisp(比VimScript好一百倍),但即使我第一次安装它(通过 yum ),也没有改变, 30秒开始,仍然(GUI和 -nw )。



我查了 *消息* 缓冲区:

 加载/ usr / share / emacs / site-lisp /site-start.d/desktop-entry-mode-init.el(source)... done 
加载/usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (来源)...完成

这些文件似乎是我安装的RPM包的特定。我尝试改变他们的名字,但没有区别。它仍然需要30秒。



我已经解决了它,从不退出emacs(我只是暂停它),并试图做所有的事情,但它会很好偶尔打开两个Emacs,特别是因为我倾向于使用我的终端模拟器的拆分功能,而不是像 tmux



我意识到Emacs会比Vim加载速度更慢,但是对于新的安装来说这显然是荒谬的。有没有人知道发生了什么?



谢谢!

解决方案

Emacs的PROBLEM文件说:

  *** GNU / Linux系统(以及其他系统)上的Emacs启动速度很慢。 

如果系统配置错误,Emacs无法获取
全限定域名FQDN,则可能会发生这种情况。您应该在
/ etc / hosts文件中使用您的FQDN,如下所示:

127.0.0.1 localhost
129.187.137.82 nuc04.t30.physik.tu-muenchen。 de nuc04

设置此项的方式可能因非GNU系统而异。

这个慢启动通常来自于一个超时,30秒钟的声音就是正确的。

作为附注:导致此减慢的DNS查找在所有机器(几乎)具有静态IP地址的日子被认为是重要/有用的。现在以这种方式收集的信息并不足以证明这一点,所以从Emacs-25开始,Emacs不会执行这个DNS查找,所以这个问题根本就不再存在了。


Yesterday, I :q'd Vim to try Emacs for a while. I've started using Elisp (which is a hundred times better than VimScript), but even when I first installed it (via yum), and had changed nothing, it took about 30 seconds to start, and still does (both GUI and -nw).

I checked the *Messages* buffer:

Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)...done

The files seem to be specific to the RPM package I installed. I tried changing their names, yet there was no difference. It still takes 30 seconds.

I've solved it partially by never exiting emacs (I only suspend it) and trying to do everything in it, but it would be nice to occasionally open two Emacs's, especially since I have a tendency to use my terminal emulator's split function rather than something like tmux.

I realized that Emacs would load slower than Vim, but this seems ridiculous for a fresh install. Has anybody got any idea what's going on?

Thanks!

解决方案

Emacs's PROBLEM file says:

*** Emacs startup on GNU/Linux systems (and possibly other systems) is slow.

This can happen if the system is misconfigured and Emacs can't get the
full qualified domain name, FQDN.  You should have your FQDN in the
/etc/hosts file, something like this:

127.0.0.1   localhost
129.187.137.82  nuc04.t30.physik.tu-muenchen.de nuc04

The way to set this up may vary on non-GNU systems.

This "slow startup" typically comes from a timeout, and 30s sounds about right.

As a side note: the DNS lookup that causes this slow down was considered important/useful back in the days where (almost) all machines had a static IP address. Nowadays the info gathered this way does not justify the effort, so starting with Emacs-25, Emacs does not perform this DNS lookup, so this problem should simply not exist any more.

这篇关于Emacs开始令人难以置信的长久的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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