Emacs - 调用时出错(服务器启动) [英] Emacs - Error when calling (server-start)

查看:15
本文介绍了Emacs - 调用时出错(服务器启动)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在 Windows Vista SP1 中使用 GNU Emacs 23.0.93.1.在我的 .emacs 文件中,我调用了 (server-start) 并导致错误消息 The directory ~/.emacs.d/server is unsafe.有没有人看到这个并知道修复或解决方法?...除了关闭服务器;)

I am currently using GNU Emacs 23.0.93.1 in Windows Vista SP1. In my .emacs file I make a call to (server-start) and that is causing an error with the message The directory ~/.emacs.d/server is unsafe. Has anyone seen this and know a fix or workaround? ... other than leaving server turned off ;)

这是堆栈跟踪:

Debugger entered--Lisp error: (error "The directory ~/.emacs.d/server is unsafe")
  signal(error ("The directory ~/.emacs.d/server is unsafe"))
  error("The directory %s is unsafe" "~/.emacs.d/server")
  server-ensure-safe-dir("~\.emacs.d\server\")
  server-start(nil)
  call-interactively(server-start t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

推荐答案

我在 EmacsWiki 上找到了这个解决方案:

I found this solution on EmacsWiki:

问题是目录~/.emacs.d/server的所有权,当你的账户也有管理员"权限时.创建目录~/.emacs.d/server并设置该目录的所有者到您的登录名,问题就解决了.由于我使用的是荷兰语"版本的 Windows 7,我不完全了解英文术语,但过程如下:

"The problem is the ownership of the directory ~/.emacs.d/server when you also have "Administrators" rights on your account. Create the directory ~/.emacs.d/server and set the owner of this directory to your login name and the problem is gone. As I have a "Dutch" version of Windows 7 I don’t know the English terms exactly but here’s the procedure:

在 ~/.emacs.d/server 上单击 R 鼠标并选择属性"(菜单中的最后一项).从属性"中选择安全"选项卡,然后选择高级"按钮.然后选择选项卡所有者"并将所有者从 Administrators (Administrators) 更改为 (<your-pc-name><your-login-name>.现在服务器代码将接受此目录为安全目录,因为您是所有者.

Click R-mouse on ~/.emacs.d/server and select "Properties" (last item in menu). From Properties select the Tab "Security" and then select the button "Advanced". Then select the Tab "Owner" and change the owner from Administrators (<your-pc-name>Administrators) into <your-login-name> (<your-pc-name><your-login-name>. Now the server code will accept this directory as secure because you are the owner.

希望这对你们所有人都有帮助,无论如何它为我解决了问题.

Hope this helps for all you guys, it solved the problem for me anyway.

W.K.R.路透社"

它绝对适用于 Vista,使用 Emacs 23.2.1.

It definitely works on Vista, with Emacs 23.2.1.

这篇关于Emacs - 调用时出错(服务器启动)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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