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

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

问题描述

我目前在Windows Vista SP1中使用GNU Emacs 23.0.93.1。在我的.emacs文件中,我打电话给(server-start),这会导致消息错误目录〜/ .emacs.d / server不安全。有没有人看到这个,知道一个修复或解决方法? ...除了离开服务器关闭;)

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上的鼠标,选择属性(菜单中的最后一项) )。从属性中选择安全选项卡,然后选择高级按钮。然后选择所有者选项卡,将所有者从管理员(< your-pc-name> \Administrators)更改为< your-登录-名称> (< 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.

WKR Reutfleut

W.K.R. Reutefleut"

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

It definitely works on Vista, with Emacs 23.2.1.

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

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